Error in SonarLint for IntelliJ 10.4.2: IllegalStateException: Missing header Content-Length

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: PhpStorm 2023.3.6
  • SonarLint: 10.4.2.78113
java.lang.IllegalStateException: Missing header Content-Length in input " >  NX   Failed to parse pnpm lockfile

"
	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:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

Hello @Danish7520, thank you for your report!

Do you have more information to share about this error? Has it happened more than once, and is it reproducible?

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X x86_64
  • IDE: IntelliJ IDEA 2023.3.6
  • SonarLint: 10.4.2.78113
java.lang.IllegalStateException: Missing header Content-Length in input "Log file with the error: /Users/justinhandley/IdeaProjects/silvermousev2/.nx/cache/d/daemon-error.log
Please file an issue at https://github.com/nrwl/nx
Nx Daemon is going to be disabled until you run "nx reset".

"
	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:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

Hello, thank you for sharing this. This appears to come from nx-console and is not related to SonarLint.

They have this issue on their side, and apparently, a fix has been merged a few days ago. I would expect the fix to be included in the upcoming release of nx-console. In the meantime, I think you can safely ignore this error.