Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-264

IDE crashes with ConcurrentModificationException when all files of a module are excluded

    Details

      Description

      When all files of some module are configured to be excluded at server side, SonarLint may crash with a java.util.ConcurrentModificationException at startup, or during update bindings.

      java.util.ConcurrentModificationException
          at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)
          at java.util.HashMap$EntryIterator.next(HashMap.java:1471)
          at java.util.HashMap$EntryIterator.next(HashMap.java:1469)
          at com.google.common.collect.AbstractMapBasedMultimap$KeySet$1.next(AbstractMapBasedMultimap.java:960)
          at org.sonarlint.intellij.trigger.SonarLintSubmitter.filterAndgetByModule(SonarLintSubmitter.java:152)
          at org.sonarlint.intellij.trigger.SonarLintSubmitter.submitFiles(SonarLintSubmitter.java:113)
          at org.sonarlint.intellij.trigger.SonarLintSubmitter.submitFiles(SonarLintSubmitter.java:108)
          at org.sonarlint.intellij.trigger.SonarLintSubmitter.submitOpenFilesAuto(SonarLintSubmitter.java:74)
          at org.sonarlint.intellij.tasks.ServerUpdateTask.analyzeOpenFiles(ServerUpdateTask.java:197)
          at java.util.ArrayList.forEach(ArrayList.java:1251)
          at org.sonarlint.intellij.tasks.ServerUpdateTask.updateModule(ServerUpdateTask.java:175)
          at org.sonarlint.intellij.tasks.ServerUpdateTask.updateModules(ServerUpdateTask.java:153)
          at org.sonarlint.intellij.tasks.ServerUpdateTask.run(ServerUpdateTask.java:106)
          at org.sonarlint.intellij.tasks.ServerUpdateTask$2.run(ServerUpdateTask.java:81)
          at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
          at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
          at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
          at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
          at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
          at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
          at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
          at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
          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)
      

        Attachments

          Activity

            People

            • Assignee:
              janos.gyerik Janos Gyerik
              Reporter:
              janos.gyerik Janos Gyerik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: