Troubleshooting
Solutions for common issues with Dependi.
Table of contents
- LSP Server Not Starting
- LSP Server Crashes or Freezes
- Outdated Cache Data
- Registry Rate Limiting
- Network/Proxy Issues
- Configuration Not Applying
- “Unknown” Packages
- Vulnerability Scan Issues
- Performance Issues
- Debug Logging
- Reporting Bugs
LSP Server Not Starting
Symptoms:
- No inlay hints or diagnostics appear
- No completions for dependency versions
- Extension seems inactive
Solutions:
- Check Zed’s extension panel to verify Dependi is installed and enabled
- View Zed logs for errors:
zed --foreground - Reinstall the extension from Zed Extensions marketplace
- Check if firewall/proxy is blocking network requests to package registries
LSP Server Crashes or Freezes
Symptoms:
- Editor becomes unresponsive when opening dependency files
- LSP process repeatedly restarts
- High memory usage
Solutions:
- Clear the cache directory and restart Zed:
# Linux rm -rf ~/.cache/dependi/ # macOS rm -rf ~/Library/Caches/dependi/ # Windows rmdir /s %LOCALAPPDATA%\dependi - Update to the latest Dependi version
- Check if the issue occurs with a specific dependency file
- File a bug report with reproduction steps
Outdated Cache Data
Symptoms:
- Recently published packages not showing as latest
- Old version information displayed
- Known updates not appearing
Solutions:
- Cache automatically refreshes after 1 hour (default TTL)
- Clear cache manually to force refresh:
rm -rf ~/.cache/dependi/ - Restart Zed after clearing cache
- Verify the registry is accessible (try visiting crates.io, npmjs.com, etc.)
Registry Rate Limiting
Symptoms:
- Intermittent failures fetching package info
? Unknownhints appearing temporarily- Slow responses when opening files
Solutions:
- Wait a few minutes for rate limits to reset
- The cache reduces API calls - avoid clearing cache unnecessarily
- For npm, consider setting up authentication
- Large monorepos may trigger rate limits - be patient on first load
Network/Proxy Issues
Symptoms:
- All package lookups failing
- Timeout errors in logs
- Works on some networks but not others
Solutions:
- Configure system proxy settings (Dependi uses system proxy)
- Ensure registry URLs are allowed through corporate firewall:
https://crates.iohttps://registry.npmjs.orghttps://pypi.orghttps://proxy.golang.orghttps://packagist.orghttps://pub.devhttps://api.nuget.orghttps://rubygems.orghttps://api.osv.dev(vulnerability scanning)
- Check DNS resolution for registry domains
- Try temporarily disabling VPN if using one
Configuration Not Applying
Symptoms:
- Custom settings in
settings.jsonare ignored - Default behavior despite configuration changes
Solutions:
- Verify JSON syntax is valid in
settings.json - Ensure settings are under the correct path:
{ "lsp": { "dependi": { "initialization_options": { // your settings here } } } } - Restart Zed after configuration changes
- Check for typos in setting names
“Unknown” Packages
Symptoms:
? Unknownhint for packages that should exist- Some packages work, others don’t
Solutions:
- Check package name spelling
- Verify the package exists on its registry
- For scoped npm packages, ensure
@scope/nameformat - Network issues may cause temporary failures
- Check if package was recently unpublished/yanked
Vulnerability Scan Issues
Symptoms:
- No vulnerability warnings appearing
- Known vulnerabilities not showing
Solutions:
- Check
security.enabledistruein settings - Verify
min_severityisn’t filtering results - Ensure network access to
https://api.osv.dev - Vulnerability data is cached for 6 hours
- Not all packages have vulnerability data
Performance Issues
Symptoms:
- Slow editor startup
- Lag when opening dependency files
- High CPU usage
Solutions:
- Large dependency files take longer on first load
- Cache improves performance over time
- Consider increasing cache TTL
- Check network latency to registries
- Close other resource-intensive applications
Debug Logging
For detailed troubleshooting, enable debug logging:
RUST_LOG=debug zed --foreground
This shows:
- Registry requests and responses
- Cache hits/misses
- Configuration loading
- Error details
Reporting Bugs
If you can’t resolve an issue:
- Check existing issues
- Open a new issue with:
- Dependi version
- Zed version
- Operating system
- Steps to reproduce
- Expected vs actual behavior
- Relevant logs (
zed --foreground)