-
Notifications
You must be signed in to change notification settings - Fork 94
[BUG] LSP cannot resolve packages in Flutter dependencies #463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I was able to reproduce the problem by commenting flutter_tools.setup {
lsp = {
settings = {
renameFilesWithClasses = "always",
analysisExcludedFolders = {
".dart_tool",
"/Users/ts/.pub-cache/",
"/Users/ts/fvm/",
},
},
},
|
Thanks for the reply @sidlatau, I still want to use the LSP to navigate within dependency codes. By exluding the .pub-cahce folder, I can't go to definition, reference, highlight type, etc. |
Hmm, for me LSP still works even if I disable analysis. I can go to definition, find references, etc. You may even try to remove |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Current Behavior
The LSP fails to resolve packages for all Flutter dependencies located in the pub-cache, making it impossible to properly navigate through dependency implementations (go to definition, go to reference, etc.).
Expected Behavior
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: