Error when running the latest version of the SonarLint for IntelliJ IDEA

849 views
Skip to first unread message

jordi....@befrank.nl

unread,
Jun 27, 2017, 5:17:11 AM6/27/17
to SonarLint
I would like to report an issue with the latest version of the SonarLint for IntelliJ IDEA plugin (2.10.0.1922)

I've tried using the release candidate mentioned here https://groups.google.com/forum/#!topic/sonarlint/Um2GaBBFUw0 but it's giving me the same error.

When using the previous version (2.9.0.1816) I'm not gettint this behaviour and everything works as expected.

When running an analysis in connected mode I'm getting the following error: 
Error running SonarLint analysis
java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList
at org.sonar.plugins.javascript.JavaScriptPlugin.getExtensions(JavaScriptPlugin.java:69)
at org.sonar.api.SonarPlugin.define(SonarPlugin.java:51)
at org.sonarsource.sonarlint.core.container.global.ExtensionInstaller.install(ExtensionInstaller.java:53)
at org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.addPluginExtensions(AnalysisContainer.java:133)
at org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.doBeforeStart(AnalysisContainer.java:68)
at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonarsource.sonarlint.core.container.ComponentContainer.execute(ComponentContainer.java:110)
at org.sonarsource.sonarlint.core.container.storage.StorageAnalyzer.analyze(StorageAnalyzer.java:72)
at org.sonarsource.sonarlint.core.container.storage.StorageContainerHandler.analyze(StorageContainerHandler.java:70)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$analyze$0(ConnectedSonarLintEngineImpl.java:159)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:343)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:333)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.analyze(ConnectedSonarLintEngineImpl.java:157)
at org.sonarlint.intellij.core.ConnectedSonarLintFacade.analyze(ConnectedSonarLintFacade.java:58)
at org.sonarlint.intellij.core.SonarLintFacade.startAnalysis(SonarLintFacade.java:57)
at org.sonarlint.intellij.analysis.SonarLintAnalyzer.analyzeModule(SonarLintAnalyzer.java:102)
at org.sonarlint.intellij.analysis.SonarLintTask.analyze(SonarLintTask.java:176)
at org.sonarlint.intellij.analysis.SonarLintTask.run(SonarLintTask.java:97)
at org.sonarlint.intellij.analysis.SonarLintUserTask.run(SonarLintUserTask.java:39)
at org.sonarlint.intellij.analysis.SonarLintJobManager.lambda$null$22(SonarLintJobManager.java:118)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at org.sonarlint.intellij.analysis.SonarLintJobManager.lambda$runTask$23(SonarLintJobManager.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Duarte Meneses

unread,
Jun 27, 2017, 5:19:46 AM6/27/17
to jordi....@befrank.nl, SonarLint
Hi,

Are you using the connected mode? If so, could you please tell us which version of SonarJS are you using (you can check in the SonarLint logs or in the SonarQube Server).

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/d830c621-d6d1-453a-8706-da7f62e61a23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Duarte Meneses | SonarSource
Software Engineer

Are you using SonarLint in your IDE?

jordi....@befrank.nl

unread,
Jun 27, 2017, 5:27:04 AM6/27/17
to SonarLint, jordi....@befrank.nl
Yes, as I've mentioned we are using connected mode. Our SonarQube server version is 5.6.6 (which is the LTS release) so it should have SonarJS version 3.1.

Op dinsdag 27 juni 2017 11:19:46 UTC+2 schreef duarte.meneses:
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.

duarte.meneses

unread,
Jun 27, 2017, 9:51:52 AM6/27/17
to SonarLint, jordi....@befrank.nl
Ok, thanks.
SonarJS 3.1 was released a few weeks ago. Could you please confirm the version of SonarJS that you use? 
It should be in the logs of SonarLint, on startup. Example:

Plugins:
  * SonarPHP 2.10.0.2087 (php)
  * Python 1.7.0.1195 (python)
  * SonarJava 4.9.0.9858 (java)
  * SonarJS 3.0.0.4962 (javascript)

jordi....@befrank.nl

unread,
Jun 29, 2017, 5:14:24 AM6/29/17
to SonarLint, jordi....@befrank.nl
We are using:
Plugins:
  * Python 1.7.0.1195 (python)
  * Java 4.3.0.7717 (java)
  * JavaScript 2.11 (javascript)

Op dinsdag 27 juni 2017 15:51:52 UTC+2 schreef duarte.meneses:

janos....@sonarsource.com

unread,
Jul 3, 2017, 4:05:21 AM7/3/17
to SonarLint, jordi....@befrank.nl
The minimum supported JavaScript version by SonarLint is 2.14. If you go to server configurations and update bindings, SonarLint will show a warning about this, and exclude the outdated plugin. This check + exclusion is a recent feature in SonarLint, but it's activated during the update binding step. Until this is done, the error you observe is expected to happen.

So the fix is to simply update your bindings.

Cheers,
Janos
Reply all
Reply to author
Forward
0 new messages