Exception at SonarLint Inellij plugin

intellij
sonarlint

(Andrei) #1
  • versions used
    IntelliJ IDEA 2018.2.1 (Ultimate Edition)
    Build #IU-182.3911.36, built on August 6, 2018
    JRE: 1.8.0_152-release-1248-b8 amd64
    JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    Windows 10 10.0

Plugin: SonarLint 3.5.1.2759 updated 7/30/2018

SonarQube: Community Edition Version 7.2.1 (build 14109)

  • error observed
Details: Current thread: Thread[pool-4-thread-1,5,Idea Thread Group] 728545104
; dispatch thread: false; isDispatchThread(): false
SystemEventQueueThread: Thread[AWT-EventQueue-0 2018.2.1#IU-182.3911.36 IDEA, eap:false, os:Windows 10 10.0, java-version:JetBrains s.r.o 1.8.0_152-release-1248-b8,6,Idea Thread Group] 617041648

java.lang.Throwable: Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction())
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
	at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1083)
	at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.getDocument(FileDocumentManagerImpl.java:172)
	at com.intellij.openapi.editor.impl.RangeMarkerImpl.getDocument(RangeMarkerImpl.java:115)
	at com.intellij.openapi.editor.impl.RangeMarkerImpl.getDocument(RangeMarkerImpl.java:31)
	at org.sonarlint.intellij.issue.LiveIssue.getLine(LiveIssue.java:106)
	at org.sonarlint.intellij.issue.tracking.Tracker$LineAndTextRangeHashKey.<init>(Tracker.java:105)
	at org.sonarlint.intellij.issue.tracking.Tracker$LineAndTextRangeHashKeyFactory.apply(Tracker.java:141)
	at org.sonarlint.intellij.issue.tracking.Tracker.match(Tracker.java:77)
	at org.sonarlint.intellij.issue.tracking.Tracker.track(Tracker.java:38)
	at org.sonarlint.intellij.issue.IssueManager.updateTrackedIssues(IssueManager.java:156)
	at org.sonarlint.intellij.issue.IssueManager.matchWithServerIssues(IssueManager.java:147)
	at org.sonarlint.intellij.core.ServerIssueUpdater$IssueUpdater.matchFile(ServerIssueUpdater.java:223)
	at org.sonarlint.intellij.core.ServerIssueUpdater$IssueUpdater.downloadAndMatchFile(ServerIssueUpdater.java:205)
	at org.sonarlint.intellij.core.ServerIssueUpdater.lambda$fetchAndMatchServerIssues$0(ServerIssueUpdater.java:141)
	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)
  • steps to reproduce
    background task, no action steps