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
URI is not valid for textDocument/definition outside a package #660
Comments
Hiya, a couple questions to help me understand this.
|
client-notification Tue May 5 10:29:26 2020:
(:jsonrpc "2.0" :method "textDocument/didSave" :params
(:text "to_upper(x) = uppercase(x)\n\n" :textDocument
(:uri "file:///home/adam/tmp/utils.jl"))) |
As per the other issue, could you send me some logs from initialization through to the problem (maybe as a gist?) |
Here you go: https://gist.github.com/non-Jedi/fd8c9f5e31f9cac9e47d7a81d142a4b8 Thanks for taking a look. :) |
Per report on discourse this is still a problem on master. I haven't personally replicated it though. |
Ah, sorry, it looks like I have been too careless when doing tests: I can now confirm that this issue is indeed fixed. I'm very sorry for the noise. |
Thanks for reporting back! :) |
A file URI is required to be absolute as far as I can tell. Even if it isn't, the language-server client doesn't know what directory to resolve a relative file URI to.
If you create a file
main.jl
:and utils.jl:
And request
textDocument/definition
ofto_upper
from withinmain.jl
, the URI is given as "file://utils.jl" instead of the full path that it should be:Thanks to @prasannakog for the reproducer at gdkrmr/lsp-julia#25 (comment)
The text was updated successfully, but these errors were encountered: