-
Notifications
You must be signed in to change notification settings - Fork 196
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
Error displaying hover on self-written module/function documentation #932
Comments
That's a known (and harmless) issue. |
Not sure exactly what changed by the issue appeared to resolve itself. I wonder if the PLT simply hadn't fully generated? 🤷🏻 |
Reopening for visibility |
maybe caused by this commit 303dafb |
No. It was never supported and didn't crash by accident. Refactor to CodeFragment API exposed the crash |
Thanks for the info. But I'm confused when you say that it was never supported, as if this is expected behavior for an error to be thrown. EDIT: Okay I think I understand: the LSP does not/no longer supports querying for hover info on these types of values. |
It’s a feature that was never implemented. elixir_sense currently only provides docs from compiled modules that have doc chunks. For current file it used to return some dummy string and now it returns nil that is not handled. I plan to implement doc extraction from the current file for the next release |
Partially addressed in elixir-lsp/elixir_sense#253 |
The crash is fixed now. ElixirLS will return stub documentation on hover for current file. Providing full documentation is tracked in elixir-lsp/elixir_sense#261 |
Full local documentation will be released in v0.20 |
Environment
Current behavior
When I attempt to display a hover window for functions/module documentation in my project, the operation fails. Doing the same for externally defined documentation works as-expected, however.
In VSCode, I see the following error:
In NeoVim, this is what I see:
I was able to reproduce in both editors by generating a new default mix project (e.g.
mix new lsp_test
) and attempting to trigger hover documentation forLspTest.hello/0
viashift+K
in both VSCode and NeoVim.Expected behavior
Hover documentation displays properly.
The text was updated successfully, but these errors were encountered: