-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Request textDocument/documentHighlight failed #678
Comments
Yeah exactly my case, fixed it locally with this updated line in a yard_map.rb:
|
Hopefully we'll have a fix in upcoming versions, so we don't need to have a patched version of the gem. |
Can anyone provide a reproducible example? I'm totally okay with making this change, but I'd like to have a better understanding of the root cause. |
I can share an example code, which didn't work with current Solargraph version until I fixed that myself.
And then I require any file in any part of the project this way:
That doesn't work with Solargraph because generated path looks like |
Released in v0.50.0. |
I am using the vscode-solargraph extension. When I hover over code in the editor, I receive the following error:
I also encountered an error when running
solargraph scan
Upon investigating the error message, I traced it back to this line in the Solargraph codebase: yard_map.rb#L285. It appears that the name becomes nil and causes the program to crash.
I've noticed that the issue occurs when requiring a path with a leading /, like so: require '/app/spec/hoge'.
environments
The text was updated successfully, but these errors were encountered: