-
Notifications
You must be signed in to change notification settings - Fork 23
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
Can not jump to definition when current opened buffer was belong to a package. (but VSCode can) #152
Comments
I can't repro this, but what I do is press |
In fact, this issue same as #146 , those error not displayed if pressing n to not treat package root as LSP root, but it not jumpable as VSCode does. as you mention in #128 (comment), VSCode must do some magic things which make jump to definition always happen even in package, maybe lsp-dart will work someday. |
it does work for me with lsp-dart jumping to multiple packages, it could be some corner case we are not aware of yet |
Yes, it can jumping to packages, but, then, ipressing |
Yeah, I need to repro to understand why it happens, can you repro on the flutter sample repo? |
No, it seem like in flutter_sample repo, there is no dart code use external package, so, there is no way to jump out to package? |
Hum, I thought jumping to flutter internal is considered a external package |
Sure no, haha, let us leave this issue for a moment, if i meet same issue again, i will do some research, and report here ASAP. |
Cool, thanks, that will be a big improvement, i am not use dart recent days, i will test it later and give feedback. |
this issue just copy from here
i fork
flutter_sample
project here, you can try reproduce on test_jump_to_definition branch.Following is reproduce:
test_jump_to_definition
branch~/.pub-cache/hosted/pub.flutter-io.cn/desktop_multi_window-0.0.1/lib/desktop_multi_window.dart:11
, it still works!I select to set root directory interactively, that is,
~/.pub-cache/hosted/pub.flutter-io.cn/desktop_multi_window-0.0.1
, i consider this is the correct option, right? please point out if this is not intended. from my point, if not set lsp root, there is no way to continue jump to next definition.~/.pub-cache/hosted/pub.flutter-io.cn/desktop_multi_window-0.0.1/lib/src/channels.dart
, it seem like sitll works, though, as you can see, many flycheck error on this file.The text was updated successfully, but these errors were encountered: