IntelliJ not starting due to sonarlint bug around TaintVulnerabilitiesLoader

Updated, then restarted, then IDE did not start. IntelliJ log:

    2021-02-16 08:59:43,988 [ 347993]  ERROR - ies.TaintVulnerabilitiesLoader - Filepath for file /mnt/data/workspaces/cluster/server/server.persistence/src/main/java/com/compuware/apm/server/persistence/ts2/lagtracker/TsMaintenanceLagTracker.java was not resolved. 
java.lang.Throwable: Filepath for file /mnt/data/workspaces/cluster/server/server.persistence/src/main/java/com/compuware/apm/server/persistence/ts2/lagtracker/TsMaintenanceLagTracker.java was not resolved.
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:159)
	at org.sonarlint.intellij.issue.vulnerabilities.TaintVulnerabilitiesLoader.loadServerTaintVulnerabilitiesForFile(TaintVulnerabilitiesLoader.kt:63)
	at org.sonarlint.intellij.issue.vulnerabilities.TaintVulnerabilitiesLoader.getLocalTaintVulnerabilitiesForFile(TaintVulnerabilitiesLoader.kt:52)
	at org.sonarlint.intellij.issue.vulnerabilities.TaintVulnerabilitiesLoader.getTaintVulnerabilitiesByOpenedFiles(TaintVulnerabilitiesLoader.kt:46)
	at org.sonarlint.intellij.editor.SonarExternalAnnotator.apply(SonarExternalAnnotator.java:80)
	at org.sonarlint.intellij.editor.SonarExternalAnnotator.apply(SonarExternalAnnotator.java:59)
	at com.intellij.codeInsight.daemon.impl.AnnotationHolderImpl.applyExternalAnnotatorWithContext(AnnotationHolderImpl.java:203)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doApply(ExternalToolPass.java:217)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$1(ExternalToolPass.java:184)
	at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:52)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:889)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61)
	at com.intellij.openapi.application.ReadAction.run(ReadAction.java:51)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$2(ExternalToolPass.java:181)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:254)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:179)
	at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:333)
	at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:323)
	at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:273)
	at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:287)
	at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:242)
	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
	at com.intellij.util.Alarm$Request.runSafely(Alarm.java:376)
	at com.intellij.util.Alarm$Request.run(Alarm.java:362)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:220)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:184)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:834)
2021-02-16 08:59:43,989 [ 347994]  ERROR - ies.TaintVulnerabilitiesLoader - IntelliJ IDEA 2020.3.2  Build #IU-203.7148.57 
2021-02-16 08:59:43,989 [ 347994]  ERROR - ies.TaintVulnerabilitiesLoader - JDK: 11.0.9.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2021-02-16 08:59:43,990 [ 347995]  ERROR - ies.TaintVulnerabilitiesLoader - OS: Linux 
2021-02-16 08:59:43,990 [ 347995]  ERROR - ies.TaintVulnerabilitiesLoader - Plugin to blame: SonarLint version: 4.14.0.27630 
2021-02-16 08:59:43,990 [ 347995]  ERROR - ies.TaintVulnerabilitiesLoader - Last Action: ShowLog

idea.log (1.5 MB)
full log

Hello Thomas,

Thanks for joining the community and for raising this issue.

I reproduced the error that you posted, we indeed throw an exception and we shouldn’t. I created a ticket and will provide a fix for that.

In my opinion this error should not prevent the IDE from starting. I have prepared a fix for the issue, would you mind testing it ? You will have to uninstall the plugin, download the fixed version here, and install it manually from file system. We can see if this fully resolves the issue.

Thanks
Damien

Right, could be unrelated to the startup issues. couldn’t quite reproduce what cause the startup things.
note that this stacktrace is seens quite often.
not sure I have time to try it out

I had a similar issue (not related to the startup) - IDE constantly was complaining about the plugin error with the same stack trace. The fixed plugin version resolved the issue for me.

1 Like

Hello,

The new version has been released. Could you please update and check that it fixed the issue ?

Thanks again
Damien

Updated and haven’t seen the issue since, looks fixed, thanks a bunch!

1 Like

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