-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Library dependencies are not resolved #50
Comments
It's because coc.nvim will add workspace change when go to the sdk directory, and there's no |
@iamcco thanks for the quick response. |
Use |
Can you give me an example of how to use it for a package in the Also, the option gives a warning that it expects type |
|
Also you can improve it if you have any good idea. |
If I understand correctly then the default should actually work for me since the default ignored path ends up being However, its still not finding those dependencies so I'm not sure that changing workspace folder is what is causing this issue although at least now files in the sdk don't have errors all over Don't have any ideas looking at the code how to fix it atm. |
Dart LSP use project debug at https://github.com/iamcco/coc-flutter/blob/master/src/server/lsp/index.ts#L97 |
Running pub get in the package's directory indeed resolves this. It is also still interesting that the vscode extensions does not need to do this even when running it using the LSP |
I don't have the issue, you can debug with above response. |
Encountered exactly the same problem. And SDK directory still show errors. |
1 similar comment
Encountered exactly the same problem. And SDK directory still show errors. |
I open a new issue, then I found the discuss here. Would you teach me how to solve this problem? Wish your help, thanks. Now I make a link to |
Describe the bug
Dependencies are not resolved when looking at library code.
This fills up the diagnostics list every time one takes a look at the implementation of some Flutter widget for example.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should be able to resolve these dependencies
Using the LSP in VSCode this works just fine
Desktop (please complete the following information):
Output channel:
"flutter.trace.server": "verbose"
:CocList output
open output list and selectflutter
Log:
When trying to open the output of the log vim freezes
The text was updated successfully, but these errors were encountered: