Repository navigation
Closed
Description
Sadly most of the time my IDE get stuck most of the time when looking for reference, it's due to those plugins :(
We really need to make sure we are more resilient!
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.Gson.fromJson(Gson.java:1238)
at com.google.gson.Gson.fromJson(Gson.java:1186)
at org.eclipse.lsp4j.jsonrpc.json.MessageJsonHandler.parseMessage(MessageJsonHandler.java:119)
at org.eclipse.lsp4j.jsonrpc.json.MessageJsonHandler.parseMessage(MessageJsonHandler.java:114)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:193)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:393)
at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.read(MessageTypeAdapter.java:93)
at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.read(MessageTypeAdapter.java:56)
at com.google.gson.Gson.fromJson(Gson.java:1227)
... 11 more
java.lang.IllegalStateException: Missing header Content-Length in input ",result":{"capabilities":{"textDocumentyc:,hvrrvider":as,diiionProvider:as,rfrnePoie"fle"ouetihihPoie"fle"ouetyblrvdr:as,rnmPoie"ikHnPoie"flse}}}{jorc:2.0","id""""eutte"{txDcyc:,hvdr:ase,"definitionPrvdr:as,rferencesProvide"fle"documentHighihPoie"SmoPoie":false,rnmPovider":false,"ikddtnRngeProvider":tre"naHnPovider":false}}}ontent-Length: 38
"
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:91)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Type
Projects
- StatusShow more project fieldsDone
Activity
angelozerr commentedon Sep 18, 2025
Duplicate of #1192 I need really to investigate this issue but unfortunately I don't know how to reproduce it.
ia3andy commentedon Sep 18, 2025
It seems to be wrongly assuming a file is JSON
angelozerr commentedon Sep 18, 2025
Yes sure, but it is a problem with start/stop language server and multi thread context. I need to revisit the full code to avoid having this problem which is not trivial, but I will work on this issue once Qute debugger will be merged.
fbricon commentedon Sep 18, 2025
no, it's the json response from a LS that's being mangled, becoming unparseable as json:
angelozerr commentedon Sep 30, 2025
@ia3andy please install https://github.com/redhat-developer/lsp4ij?tab=readme-ov-file#testing-nightly-builds and tell me if it fixes your issue. Thanks!
angelozerr commentedon Oct 1, 2025
It should be fixed with #1303