Hello!
Every time I use my keyboard to copy and paste text in VSC, the openHAB VSC extension flips out and the following error message pops up:
A request has failed. See the output for more information.
And then the VSC console fills the bottom-half of my screen and gives the following error information:
[Error - 5:18:28 PM] Request textDocument/definition failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.RuntimeException: Cannot create a resource for 'java:/Objects/org.eclipse.smarthome.model.script.actions.BusEvent'; a registered resource factory is needed
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.ReadRequest.lambda$run$0(ReadRequest.java:43)
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:834)
Caused by: java.lang.RuntimeException: Cannot create a resource for 'java:/Objects/org.eclipse.smarthome.model.script.actions.BusEvent'; a registered resource factory is needed
at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:262)
at org.eclipse.xtext.ide.server.ProjectManager.getResource(ProjectManager.java:174)
at org.eclipse.xtext.ide.server.WorkspaceManager.doRead(WorkspaceManager.java:327)
at org.eclipse.xtext.ide.server.findReferences.WorkspaceResourceAccess.readOnly(WorkspaceResourceAccess.java:42)
at org.eclipse.xtext.ide.server.symbol.DocumentSymbolService.doRead(DocumentSymbolService.java:363)
at org.eclipse.xtext.ide.server.symbol.DocumentSymbolService.getDefinitions(DocumentSymbolService.java:125)
at org.eclipse.xtext.ide.server.symbol.DocumentSymbolService.getDefinitions(DocumentSymbolService.java:106)
at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$definition$37(LanguageServerImpl.java:623)
at org.eclipse.xtext.ide.server.WorkspaceManager.doRead(WorkspaceManager.java:334)
at org.eclipse.xtext.ide.server.LanguageServerImpl.definition(LanguageServerImpl.java:625)
at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$definition$36(LanguageServerImpl.java:606)
at org.eclipse.xtext.ide.server.concurrent.ReadRequest.lambda$run$0(ReadRequest.java:37)
... 4 more
This isn’t the end of the world, but it’s super annoying when I’m trying to code. I have looked online and in this forum but have not found a solution. Does anyone have any insight or a suggestion to resolve this? Thank you very much!
EDIT: I found the following link/github issue which seems similar, but there does not seem to be a resolution given?