SonarLint 3.5.1.2759 plugin in IntelliJ IDEA throws org.sonarlint.intellij.editor.SonarExternalAnnotator

sonarlint

(Tomáš Langer) #1
  • versions used: SonarLint 3.5.1.2759 plugin in IntelliJ IDEA
  • error: ‘annotator: org.sonarlint.intellij.editor.SonarExternalAnnotator@55e67f73 (class org.sonarlint.intellij.editor.SonarExternalAnnotator)’
  • steps to reproduce: Unknown

Exception:
annotator: org.sonarlint.intellij.editor.SonarExternalAnnotator@55e67f73 (class org.sonarlint.intellij.editor.SonarExternalAnnotator)

com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.PsiJavaFileImpl #JAVA because: different providers: SingleRootFileViewProvider{myVirtualFile=file://C:/Projects/EPS/eps-g1/EpsCore/src/main/java/cz/wincor/eps/services/UpdatePackagesDownloader.java, content=VirtualFileContent{size=52007}}(9d47216); SingleRootFileViewProvider{myVirtualFile=file://C:/Projects/EPS/eps-g1/EpsCore/src/main/java/cz/wincor/eps/services/UpdatePackagesDownloader.java, content=VirtualFileContent{size=52007}}(659d7810)
invalidated at: see attachment
at com.intellij.psi.util.PsiUtilCore.ensureValid(PsiUtilCore.java:483)
at com.intellij.psi.impl.source.PsiFileImpl.getTextLength(PsiFileImpl.java:299)
at com.intellij.psi.impl.source.PsiFileImpl.getTextRange(PsiFileImpl.java:305)
at org.sonarlint.intellij.editor.SonarExternalAnnotator.addAnnotation(SonarExternalAnnotator.java:105)
at org.sonarlint.intellij.editor.SonarExternalAnnotator.lambda$apply$1(SonarExternalAnnotator.java:76)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1376)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.sonarlint.intellij.editor.SonarExternalAnnotator.apply(SonarExternalAnnotator.java:72)
at org.sonarlint.intellij.editor.SonarExternalAnnotator.apply(SonarExternalAnnotator.java:51)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doApply(ExternalToolPass.java:193)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.access$700(ExternalToolPass.java:38)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$0(ExternalToolPass.java:158)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:156)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)
at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:277)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:291)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:246)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:405)
at com.intellij.util.Alarm$Request.access$700(Alarm.java:330)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:371)
at com.intellij.util.Alarm$Request.run(Alarm.java:382)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:228)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:226)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
at com.intellij.util.concurrency.BoundedTaskExecutor$2$1.run(BoundedTaskExecutor.java:199)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:193)
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)


(Tomáš Langer) #2

I have updated the plugin to version 4.0.0.2916 and I will see… :slight_smile: