Exception from SonarLint

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

IntelliJ IDEA 2022.2 EAP (IU-222.3153.4) << this is beta, so big caveat!!
SonarLint 6.7.0.45926

Configured the sonarlint plugin with a connection to sonarcloud.io & linked to a project where scans are running and being published.

In the SonarLint tool page I see ‘No analysis done on the current opened file’ seemingly on all files (typically java)

I tried going to report & scanning all files, but it completes very quickly (large project) with ‘no issues found’ I suspect nothing is working …

Added log below - there is an exception reported which may be crucial:

Unable to load plugin /Users/jonesn/Library/Application Support/JetBrains/IntelliJIdea2022.2/sonarlint/storage/6f6470692d656765726961/plugins/sonarlint-license-plugin-8.0.0.29861-all.jar
java.lang.NumberFormatException: For input string: "task ':private:sonarlint"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseInt(Integer.java:668)
	at java.base/java.lang.Integer.parseInt(Integer.java:786)
	at org.sonarsource.sonarlint.core.commons.Version.<init>(Version.java:44)
	at org.sonarsource.sonarlint.core.commons.Version.create(Version.java:139)
	at org.sonarsource.sonarlint.core.plugin.commons.loading.PluginInfo.create(PluginInfo.java:235)
	at org.sonarsource.sonarlint.core.plugin.commons.loading.PluginInfo.create(PluginInfo.java:223)
	at org.sonarsource.sonarlint.core.plugin.commons.loading.SonarPluginRequirementsChecker.checkRequirements(SonarPluginRequirementsChecker.java:66)
	at org.sonarsource.sonarlint.core.plugin.commons.PluginInstancesRepository.load(PluginInstancesRepository.java:76)
	at org.sonarsource.sonarlint.core.plugin.commons.PluginInstancesRepository.<init>(PluginInstancesRepository.java:71)
	at org.sonarsource.sonarlint.core.plugin.commons.PluginInstancesRepository.<init>(PluginInstancesRepository.java:66)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.createPluginInstanceRepository(ConnectedSonarLintEngineImpl.java:194)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.loadAnalysisContext(ConnectedSonarLintEngineImpl.java:167)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.start(ConnectedSonarLintEngineImpl.java:163)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.<init>(ConnectedSonarLintEngineImpl.java:153)
	at org.sonarlint.intellij.core.SonarLintEngineFactory.createEngine(SonarLintEngineFactory.java:96)
	at org.sonarlint.intellij.core.DefaultEngineManager.createConnectedEngine(DefaultEngineManager.java:144)
	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
	at org.sonarlint.intellij.core.DefaultEngineManager.getConnectedEngine(DefaultEngineManager.java:139)
	at org.sonarlint.intellij.core.ProjectBindingManager.getConnectedEngineSkipChecks(ProjectBindingManager.java:99)
	at org.sonarlint.intellij.core.ProjectBindingManager.getValidConnectedEngine(ProjectBindingManager.java:132)
	at org.sonarlint.intellij.vcs.DefaultVcsService.resolveServerBranchName(DefaultVcsService.kt:56)
	at org.sonarlint.intellij.vcs.DefaultVcsService.getServerBranchName(DefaultVcsService.kt:49)
	at org.sonarlint.intellij.ui.CurrentFileConnectedModePanel$ConnectedCard.updateTooltip(CurrentFileConnectedModePanel.java:148)
	at org.sonarlint.intellij.ui.CurrentFileConnectedModePanel.lambda$switchCards$2(CurrentFileConnectedModePanel.java:176)
	at java.base/java.util.Optional.ifPresentOrElse(Optional.java:196)
	at org.sonarlint.intellij.ui.CurrentFileConnectedModePanel.lambda$switchCards$4(CurrentFileConnectedModePanel.java:170)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:297)
	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.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)

Plugin 'secrets' embeds dependencies. This will be deprecated soon. Plugin should be updated.
Server started on 64120
Sync quality profiles...
Downloaded plugin list in 75ms
[SYNC] Synchronizing analyzer configuration for project 'odpi_egeria'
Downloaded settings in 47ms
[SYNC] Active rules for 'java' are up-to-date
[SYNC] Active rules for 'js' are up-to-date
[SYNC] Active rules for 'kotlin' are up-to-date
[SYNC] Active rules for 'php' are up-to-date
[SYNC] Active rules for 'py' are up-to-date
[SYNC] Active rules for 'ruby' are up-to-date
[SYNC] Active rules for 'scala' are up-to-date
[SYNC] Active rules for 'swift' are up-to-date
[SYNC] Active rules for 'ts' are up-to-date
[SYNC] Active rules for 'web' are up-to-date
[SYNC] Active rules for 'xml' are up-to-date
[SYNC] Synchronizing project branches for project 'odpi_egeria'

Hi @planetf1

Thanks for reporting this issue. This was reported to the SonarCloud team, and should be fixed soon.

1 Like

Good to hear. thanks!

Hi @planetf1

I was informed that the problem has been resolved. Let us know if you encounter other issues.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.