You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to the latest release 2.21.0, I noticed that none of the 'Go To Definition' actions seem to work anymore.
After checking the logs, it looks like the update to this version caused this somewhere in the language server that is used from the VSCode plugin
Apr 03, 2025 9:07:05 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError
SEVERE: Internal error: java.lang.NullPointerException: Cannot invoke "com.semmle.frontend.ast.ASTNode.getPosition()" because "node" is null
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "com.semmle.frontend.ast.ASTNode.getPosition()" because "node" is null
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "com.semmle.frontend.ast.ASTNode.getPosition()" because "node" is null
at com.semmle.frontend.search.EditorPositionTransformer$EditorPositionNodeFinder.process(EditorPositionTransformer.java:129)
at com.semmle.frontend.search.EditorPositionTransformer$EditorPositionNodeFinder.visit(EditorPositionTransformer.java:243)
at com.semmle.frontend.search.EditorPositionTransformer.transform(EditorPositionTransformer.java:70)
at com.semmle.frontend.search.DefinitionPositionTransformer.transform(DefinitionPositionTransformer.java:20)
at com.semmle.frontend.project.QlLspImplementations.definition(QlLspImplementations.java:153)
at com.semmle.frontend.server.QLLanguageServer$QLTextDocumentService.lambda$definition$2(QLLanguageServer.java:394)
... 4 more
Content-Length: 1565
{"jsonrpc":"2.0","id":45,"error":{"code":-32603,"message":"Internal error.","data":"java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke \"com.semmle.frontend.ast.ASTNode.getPosition()\" because \"node\" is null\n\tat java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)\n\tat java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)\n\tat java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n\tat java.base/java.lang.Thread.run(Unknown Source)\nCaused by: java.lang.NullPointerException: Cannot invoke \"com.semmle.frontend.ast.ASTNode.getPosition()\" because \"node\" is null\n\tat com.semmle.frontend.search.EditorPositionTransformer$EditorPositionNodeFinder.process(EditorPositionTransformer.java:129)\n\tat com.semmle.frontend.search.EditorPositionTransformer$EditorPositionNodeFinder.visit(EditorPositionTransformer.java:243)\n\tat com.semmle.frontend.search.EditorPositionTransformer.transform(EditorPositionTransformer.java:70)\n\tat com.semmle.frontend.search.DefinitionPositionTransformer.transform(DefinitionPositionTransformer.java:20)\n\tat com.semmle.frontend.project.QlLspImplementations.definition(QlLspImplementations.java:153)\n\tat com.semmle.frontend.server.QLLanguageServer$QLTextDocumentService.lambda$definition$2(QLLanguageServer.java:394)\n\t... 4 more\n"}}[Error - 21:07:05] Request textDocument/definition failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "com.semmle.frontend.ast.ASTNode.getPosition()" because "node" is null
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "com.semmle.frontend.ast.ASTNode.getPosition()" because "node" is null
at com.semmle.frontend.search.EditorPositionTransformer$EditorPositionNodeFinder.process(EditorPositionTransformer.java:129)
at com.semmle.frontend.search.EditorPositionTransformer$EditorPositionNodeFinder.visit(EditorPositionTransformer.java:243)
at com.semmle.frontend.search.EditorPositionTransformer.transform(EditorPositionTransformer.java:70)
at com.semmle.frontend.search.DefinitionPositionTransformer.transform(DefinitionPositionTransformer.java:20)
at com.semmle.frontend.project.QlLspImplementations.definition(QlLspImplementations.java:153)
at com.semmle.frontend.server.QLLanguageServer$QLTextDocumentService.lambda$definition$2(QLLanguageServer.java:394)
... 4 more
The text was updated successfully, but these errors were encountered:
After upgrading to the latest release 2.21.0, I noticed that none of the 'Go To Definition' actions seem to work anymore.
After checking the logs, it looks like the update to this version caused this somewhere in the language server that is used from the VSCode plugin
The text was updated successfully, but these errors were encountered: