Error in SonarLint for IntelliJ in Remote Development

Environment:

  • Java: JetBrains s.r.o. 17.0.5
  • OS: Windows 10 amd64
  • IDE: JetBrains Client 2022.3.2
  • SonarLint: 8.4.0.73538

SonarAnalyzeChangedFilesAction#update@SonarLint (org.sonarlint.intellij.actions.SonarAnalyzeChangedFilesAction), text=‘Analyze VCS Changed Files’

java.lang.NoClassDefFoundError: com/intellij/openapi/vcs/changes/ChangeListManager
	at o.sl.ij.actions.SonarAnalyzeChangedFilesAction.isEnabled(SonarAnalyzeChangedFilesAction.java:45)
	at o.sl.ij.actions.AbstractSonarAction.update(AbstractSonarAction.java:61)
	at c.ij.oa.actionSystem.ex.ActionUtil.lambda$performDumbAwareUpdate$0(ActionUtil.java:157)
	at c.ij.oa.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:180)
	at c.ij.oa.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:720)
	at c.ij.oa.actionSystem.impl.ActionUpdater.lambda$updateActionReal$4(ActionUpdater.java:136)
	at c.ij.oa.actionSystem.impl.ActionUpdater.lambda$callAction$5(ActionUpdater.java:186)
	at c.ij.diagnostic.telemetry.TraceKt.computeWithSpan(trace.kt:123)
	at c.ij.oa.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:182)
	at c.ij.oa.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:161)
	at c.ij.oa.actionSystem.impl.ActionUpdater.updateActionReal(ActionUpdater.java:137)
	at c.ij.oa.actionSystem.impl.ActionUpdater.lambda$new$0(ActionUpdater.java:124)
	at c.ij.oa.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:705)
	at c.ij.oa.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:556)
	at c.ij.oa.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$23(ActionUpdater.java:529)

Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.vcs.changes.ChangeListManager PluginClassLoader(plugin=PluginDescriptor(name=SonarLint, id=org.sonarlint.idea, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\JetBrainsClient223.8617.56\plugins\sonarlint-intellij, version=8.4.0.73538, package=null, isBundled=false), packagePrefix=null, instanceId=6, state=active)
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:217)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)

Hello @prasath_A,

thanks for reporting the issue. Just to be sure, when you say you’re using JetBrains Client you mean connecting with JetBrains Gateway to an external server?

If that is the case: We are currently not fully supporting JetBrains Gateway as an IDE but we can check if and what we can do about it!

Best,
Tobias

Yes, We are connecting to an external Server and the plugin which i tried to install is 8.4 version of sonar lint by choosing to install from disk.

Is there any possibilities like how can i approach to resolve this plugin issue?

we completely depend on JetBrains for our development in which sonar plugin is extremely necessary is there any work around how to make this working?

Hi @prasath_A,

for using JetBrains Gateway there is currently no solution, as it is not yet officially supported. If possible, can you switch to working completely locally with a full-fletched IDE like IntelliJ IDEA?

If this is not the case you’re bound to JetBrains Gateway and working on the remote machine only, there is no workaround or solution and I could only advise you to develop without SonarLint in that case.

At some point in the future, we might support JetBrains Gateway or change the behavior of SonarLint for IntelliJ to work in this environment as well, where you only have a limited subset of the IntelliJ platform features (like JetBrains Gateway thin client offers) available.

Best,
Tobias