ERROR sonarlint - Error when handling a notification

  • Operating system: Windows 11
  • SonarLint plugin version:10.6.2.78685
  • Programming language you’re coding in: Java & Scala
  • Is connected mode used: No
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question:

SonarLint is not showing any output. Getting the following log:

[2024-06-04T16:32:42.2364146] [SonarLint Client RPC sequential executor] ERROR sonarlint - Error when handling a notification
java.lang.IllegalStateException: No log output configured
	at org.sonarsource.sonarlint.core.commons.log.LogOutputDelegator.lambda$log$0(LogOutputDelegator.java:40)
	at java.base/java.util.Optional.orElseThrow(Optional.java:403)
	at org.sonarsource.sonarlint.core.commons.log.LogOutputDelegator.log(LogOutputDelegator.java:39)
	at org.sonarsource.sonarlint.core.commons.log.LogOutputDelegator.log(LogOutputDelegator.java:58)
	at org.sonarsource.sonarlint.core.commons.log.SonarLintLogger.error(SonarLintLogger.java:123)
	at org.sonarlint.intellij.analysis.AnalysisState.addRawIssue(AnalysisState.java:105)
	at org.sonarlint.intellij.analysis.AnalysisState.addRawStreamingIssue(AnalysisState.java:90)
	at org.sonarlint.intellij.SonarLintIntelliJClient.didRaiseIssue(SonarLintIntelliJClient.kt:759)
	at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$didRaiseIssue$33(SonarLintRpcClientImpl.java:353)
	at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$notify$4(SonarLintRpcClientImpl.java:145)
	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)
1 Like

Hello @SnehasishChar, thank you for your report!

This is effectively not normal, and as a result I created this ticket. It will be fixed for the next release, sorry for the inconvenience :pray:

Is it resolved?

If yes then when it is gonna release?

Our next release is planned for the end of June.

Hello, same issue here on OS Ubuntu 22.04.4 LTS

Any news on the release?

The release is currently still planned for next week.

Hi, I just updated to version 2024.1.4 today and the problem still persisted. Please help.

Hi @kissmevn,

You’re waiting for a new release of SonarLint, which hasn’t happened yet.

 
HTH,
Ann

Any news when it is gonna release?

waiting with you

Any update still waiting for the new version.

Potential Fix

tl;dr:
Your working directory cannot contain any spaces. Remove them, and then SonarLint should work flawlessly.

Long Explanation:
I also have the exact same log output when I scan. However, I noticed that in the same log output, SonarLint was still working fine under the hood. It could analyze and detect issues (e.g. displays 300 issues in log), but the “Current File” tab in the SonarLint window was always showing “No issues to Display.” My working directory was named “playground workspace”, and so I made a new directory named “playground_workspace.” This seems to fix the problem. Hope this helps you guys as well.

Regards,
Igat

I have tried that but it didn’t work. Also currently it does not contain any space.

We had to delay the release a bit, so we will proceed with it today. This should fix the issue mentioned in this thread. Sorry for the inconvenience.

We just released SonarLint version 10.7. Could you please check that the issue is resolved?

Hi,

It has been fixed. Thanks.

1 Like