-
Notifications
You must be signed in to change notification settings - Fork 672
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
psalm-language-server: Method Psalm\\Internal\\LanguageServer\\Server\\TextDocument::documentHighlight() does not exist #10397
Comments
Hey @hexmode, can you reproduce the issue on https://psalm.dev ? |
Repo that I used for this: https://github.com/hexmode/psalter-test. cursor was on line: https://github.com/hexmode/psalter-test/blob/2124a1bcf8dc759000bb81f07efd16f6f97f40b8/src/Test.php#L5 |
@tm1000 you may want to look at that |
These are just warnings added by @weirdan to let us know which functions to implement. Depending on the LSP client it could show it as an error because of how it's output but it's not an error and psalm should continue to work as intended Assign to me and I'll get it added |
Looking over the LSP specification we'd have to specifically tell the client we support which we don't (it is null, technically undefined) psalm/src/Psalm/Internal/LanguageServer/LanguageServer.php Lines 477 to 553 in b654545
Therefore this is an issue with whatever client you are using in emacs. It's not respecting the fact that we don't provide/supply I have authored #10408 which explicitly tells the client we do not support document highlighting however I believe this is still a client issue because loosely null == false in terms of the LSP |
Explicitly state that we do not support document highlighting.
|
@tm1000 I checked out your fork and ended up mistakenly filing this bug. |
I checked out master and applied the patch directly to master. Now 'm seeing
Results are in server-out.log. I'm prepared to file a new issue if you would prefer that. |
We don't actively develop against master. You need to use 5.x. That is also where my patch resides and is referenced against. |
Thanks, After struggling with dependencies (and washing the dishes ;) ), patch is working for me on 5.x. |
Yeah it's tripped me up a few times too. Master is our "@next" so technically 6.x but doesn't mean it's always working Thanks for your report and help! |
Installed in emacs, moving my cursor to a problematic line ends up with the following output in my eglot buffer:
Entire buffer:
The text was updated successfully, but these errors were encountered: