Skip to content
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/hover failed #295

Open
Alexaas opened this issue Jul 14, 2022 · 1 comment
Open

Request textDocument/hover failed #295

Alexaas opened this issue Jul 14, 2022 · 1 comment

Comments

@Alexaas
Copy link

Alexaas commented Jul 14, 2022

Hi,

when working on rules with the openhab extension for vscode the following error pops up all the time in the OUTPUT console:
[Error - 07:14:27] Request textDocument/hover failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.NullPointerException
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:704)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
at org.eclipse.xtext.ide.server.concurrent.AbstractRequest.logAndCompleteExceptionally(AbstractRequest.java:73)
at org.eclipse.xtext.ide.server.concurrent.ReadRequest.lambda$doRun$0(ReadRequest.java:69)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NullPointerException
at org.eclipse.xtext.ide.server.WorkspaceManager.getDocument(WorkspaceManager.java:455)
at org.eclipse.xtext.ide.server.WorkspaceManager.doRead(WorkspaceManager.java:437)
at org.eclipse.xtext.ide.server.LanguageServerImpl.hover(LanguageServerImpl.java:718)
at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$hover$30(LanguageServerImpl.java:705)
at org.eclipse.xtext.ide.server.concurrent.ReadRequest.lambda$doRun$0(ReadRequest.java:66)
... 5 more

openhab extension version 1.0.0
vscode: 1.69.1 on Windows 10

@Confectrician
Copy link
Collaborator

This is an error produced by the lsp server running on the openhab instance self.
See #274 or #269 for different other erros that are related with the lsp server.

Nothing we can really do on the client side here. (Except disabling the remote lsp via setting).
LSP would need a complete rewrite on both sides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants