-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
WIP Fix 1996 - Add eclipse LSP support. #2121
WIP Fix 1996 - Add eclipse LSP support. #2121
Conversation
Should be good once this is ready to go. |
I opened an issue for supporting |
0958147
to
f34e663
Compare
This PR is blocked by #2132. |
f34e663
to
176d289
Compare
5876a14
to
93f5134
Compare
@hsanson I finished work on #2132 last night, so now you can replace the |
You might also want to try using the internal |
c293971
to
be484e0
Compare
@w0rp first let me say, great work. I did not think this refactoring could be done so fast. Have modified the Eclipse LSP to use the new async callback methods following as example the flake8 linter. Also with caching of versions similar to ale#semver#RunWithVersionCheck. But I have one test failing it travis CI that I am unable to pinpoint. I am sure I have listed the new LSP support everywhere it should (ale-supported-languages-and-tools.txt, ale.txt, and supported-tools.md). Also I don't see the LSP being invoked in ALEInfo as before. I can see version checking is being executed but no LSP. And since a while back I am unable to get auto-completion working with any LSP, including this one. When time allows it, please check this MR and let me know if you find what I am doing wrong. |
The test is failing because something isn't sorted correctly in the documentation. I don't know why the command isn't being run on your machine. I'll have to try this linter myself on my own machine, at some point. |
Fixed the sorting issue with the list of supported tools. Using the ch_logfile trick in vim it was easy to find the issue with the LSP server:
In ALEInfo there are no details of the LSP errors. Without the ch_logfile in vim is not possible to know if there are any errors. In neovim this is what I see:
Is there a way I can make any errors reported by LSP appear as part of ALEInfo output? Apart from the above I think this LSP can be used. |
bc54392
to
0119b3f
Compare
See #2137 for adding LSP debugging information. |
0119b3f
to
f02e2ec
Compare
Cheers! 🍻 Thank you for working on this, waiting for a few months for me to get the uniform asynchronous API done, and then coming back and finishing this. |
@hsanson maybe in the ALE documentation, it could be cool to explain shortly how to customize compiler warning / error preferences ? We should add customization under What do you think about that ? |
@JulioJu sounds interesting but I have not used this feature and cannot see it documented anywhere on the eclipe lsp repo. Is this a known feature? I do not want to document something that is internal and may change in the future. |
@hsanson you could check eclipse-jdtls/eclipse.jdt.ls#581 . See also for the future redhat-developer/vscode-java#507 |
From the issues linked above I see:
Once eclipse.jdt.ls has official way to add preferences that is documented I will be more than happy to add a note with a link to the official documentation explaining how to set them. Of course anyone is free to modify the documentation and submit a MR for review. |
Adds support for the eclipse language server that seems to work better than javalsp for gradle and maven projects.
Closes #1996