-
Notifications
You must be signed in to change notification settings - Fork 325
NullPointerException when using WorkspaceFolders in LSP initialization request #2697
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
Comments
Can you provide a reproducer unit test |
I try to. I don't have a working xtext workspace yet and have to set it up first. |
you should be able to create a test in a new mydsl project |
I created a sample project https://github.com/jnt0r/xtext-npe-reproducable I created multiple tests and figured out that it seems to depend on the name of the WorkspaceFolder. |
Xtext try’s to provide a project name from a folder name and currently we at lease need some name |
Reading |
I got the optional thing from the LSP4J documentation: https://www.javadoc.io/static/org.eclipse.lsp4j/org.eclipse.lsp4j/0.21.0/org/eclipse/lsp4j/WorkspaceFolder.html |
maybe should be fixed in lsp4j |
created eclipse-lsp4j/lsp4j#741 |
eclipse-lsp4j/lsp4j#741 has been fixed and closed. |
As soon as I set the WorkspaceFolders Property in the LSP initialization request, I get a NullPointerException in the xtext LSP server.
I tried different values for the property in different formats, but I always get the same exception.
The text was updated successfully, but these errors were encountered: