Error in SonarLint for IntelliJ: ResponseErrorException: Could not find rule

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Linux amd64
  • IDE: IntelliJ IDEA 2023.3.4
  • SonarLint: 10.4.0.77904

Unable to run check class org.sonar.java.checks.naming.BadPackageNameCheck - S120 on file ‘[uri=file:///home/…java]’, To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'java:S120' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195) ```
1 Like

Hello Anna,

Could you please enable verbose logging and post them here to the topic?
Sorry that you have this issue. If it consistently fails you can downgrade to SonarLint version 10.3 for now.

Best,

Thank you for your prompt reply Kirill. Error happened once, the first time I reopen IDE after upgrading sonar lint plugin. Second and third reopening didn’t show any further error, I’ll let you know if it happens again.

Thank you for your feedback.

Also maybe you can remember what was the state at the moment of the error.

  1. Did you have Connected mode configured before the update?
  2. Or maybe you agreed to bind the project right when it reopened?
  3. Were any files already pre-opened in IDE at the moment of this first restart?

Best,

  1. yes, I did have “Connected mode” configured and running before update
  2. I had no messages from sonar plugin upon reopening
  3. I had some files already pre-opened in IDE, one of them is the one where the error occured.

Thanks

Thank you, Anna, that helps a lot.
I have created the ticket based on your report. You can track progress by this link if you are interested.

Thanks for your very valuable and structured feedback.

Best,

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.4
  • SonarLint: 10.4.0.77904

Unable to run check class org.sonar.java.checks.DiamondOperatorCheck - S2293 on file ‘[uri=file:///C:/Developpement/IdeaProjects/core/WeBank-commons-ws/src/main/java/fr/efs/commons/ws/dao/WsCreditorDao.java]’, To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'java:S2293' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195)
	at o.ss.sl.core.analysis.sonarapi.DefaultStorable.save(DefaultStorable.java:42)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.4
  • SonarLint: 10.4.0.77904
Unable to run check class org.sonar.java.checks.StaticMemberAccessCheck - S3252 on file '[uri=file:///C:/DEV/PROJECTS/repo2/wexvs-services/custom-services-_STD/src/main/java/com/wexlog/wexvs/customservices/worklet/tax/revenue/WsCoRevenueHelper.java]', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'java:S3252' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195)

I get this error after updating the SonarLint to the latest version. Does anyone know, how to fix this?

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.4
  • SonarLint: 10.4.0.77904

Failure during analysis

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'typescript:S6582' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195)
	at o.ss.sl.core.analysis.sonarapi.DefaultStorable.save(DefaultStorable.java:42)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssue(AnalysisProcessor.java:317)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssues(AnalysisProcessor.java:192)
	at o.s.pl.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:116)
	at o.s.pl.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:157)
´´´

A ticket has been opened (see previous comments) and yesterday has been marked as resolved and closed. Probably next plugin update will fix it.

For people encountering this problem, we made a custom build that should fix the problem. Could somebody in this thread install it and verify the fix works? This will help us prepare the bugfix release.

Thank you!

I can test it, but cannot download from the link you stated

Sorry for the inconvenience, the link should be fixed.

Plugin installed, I get back to you after few hours usage. Thanks!

1 Like

Custom build seems that have fixed the problem. After 3 hours usage, no error showed up!

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Linux amd64
  • IDE: PhpStorm 2023.3.5
  • SonarLint: 10.4.0.77904

Failure during analysis

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'javascript:S6660' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195)
	at o.ss.sl.core.analysis.sonarapi.DefaultStorable.save(DefaultStorable.java:42)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssue(AnalysisProcessor.java:317)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssues(AnalysisProcessor.java:192)
	at o.s.pl.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:116)
	at o.s.pl.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:157)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Linux amd64
  • IDE: WebStorm 2023.3.4
  • SonarLint: 10.4.0.77904

Failure during analysis

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'typescript:S2004' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195)
	at o.ss.sl.core.analysis.sonarapi.DefaultStorable.save(DefaultStorable.java:42)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssue(AnalysisProcessor.java:317)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssues(AnalysisProcessor.java:192)
	at o.s.pl.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:116)
	at o.s.pl.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:157)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.3.5
  • SonarLint: 10.4.0.77904

Failure during analysis

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'typescript:S6676' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195)
	at o.ss.sl.core.analysis.sonarapi.DefaultStorable.save(DefaultStorable.java:42)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssue(AnalysisProcessor.java:317)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssues(AnalysisProcessor.java:192)
	at o.s.pl.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:116)
	at o.s.pl.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:157)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.5
  • SonarLint: 10.4.0.77904

Unable to run check class org.sonar.java.checks.UselessImportCheck - S1128 on file ‘*****’, To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'java:S1128' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1740)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195)
	at o.ss.sl.core.analysis.sonarapi.DefaultStorable.save(DefaultStorable.java:42)

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.3.2
  • SonarLint: 10.4.0.77904

Failure during analysis

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Could not find rule 'typescript:S1854' in active rules
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$streamIssue$5(SonarLintAnalysisEngine.java:215)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.streamIssue(SonarLintAnalysisEngine.java:215)
	at o.ss.sl.core.client.legacy.analysis.SonarLintAnalysisEngine.lambda$doAnalyze$4(SonarLintAnalysisEngine.java:202)
	at o.ss.sl.core.analysis.container.analysis.IssueListenerHolder.handle(IssueListenerHolder.java:37)
	at o.ss.sl.core.analysis.container.analysis.sensor.SonarLintSensorStorage.store(SonarLintSensorStorage.java:98)
	at o.ss.sl.core.analysis.sonarapi.DefaultSonarLintIssue.doSave(DefaultSonarLintIssue.java:195)
	at o.ss.sl.core.analysis.sonarapi.DefaultStorable.save(DefaultStorable.java:42)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssue(AnalysisProcessor.java:317)
	at o.s.pl.javascript.bridge.AnalysisProcessor.saveIssues(AnalysisProcessor.java:192)
	at o.s.pl.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:116)
	at o.s.pl.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:157)