Error in SonarLint for IntelliJ for start PyCharm

Environment:

  • Java version=11.0.11
  • Java vendor=JetBrains s.r.o.
  • OS name=Linux
  • OS architecture=amd64
  • IDE=PyCharm 2021.1.3
  • SonarLint version=5.0.1.33703
java.lang.Throwable: Directory index is already disposed for Project(name=lorashen.ua, containerState=DISPOSE_COMPLETED, componentStore=/home/roman/PycharmProjects/lorashen.ua) (disposed)
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:161)
	at com.intellij.openapi.roots.impl.DirectoryIndexImpl.checkAvailability(DirectoryIndexImpl.java:234)
	at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getInfoForFile(DirectoryIndexImpl.java:179)
	at com.intellij.openapi.roots.impl.FileIndexBase.getInfoForFileOrDirectory(FileIndexBase.java:98)
	at com.intellij.openapi.roots.impl.ModuleFileIndexImpl.getInfoForFileOrDirectory(ModuleFileIndexImpl.java:20)
	at com.intellij.openapi.roots.impl.FileIndexBase$1.lambda$visitFileEx$0(FileIndexBase.java:45)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:848)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61)
	at com.intellij.openapi.roots.impl.FileIndexBase$1.visitFileEx(FileIndexBase.java:45)
	at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:293)
	at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:325)
	at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:325)
	at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:325)
	at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:325)
	at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:325)
	at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:325)
	at com.intellij.openapi.roots.impl.FileIndexBase.iterateContentUnderDirectory(FileIndexBase.java:41)
	at com.intellij.openapi.roots.impl.ModuleFileIndexImpl.iterateContentUnderDirectory(ModuleFileIndexImpl.java:20)
	at com.intellij.openapi.roots.impl.ModuleFileIndexImpl.iterateContent(ModuleFileIndexImpl.java:35)
	at com.intellij.openapi.roots.impl.FileIndexBase.iterateContent(FileIndexBase.java:33)
	at com.intellij.openapi.roots.impl.ModuleFileIndexImpl.iterateContent(ModuleFileIndexImpl.java:20)
	at org.sonarlint.intellij.module.ModuleFileSystem.files(ModuleFileSystem.kt:44)
	at org.sonarlint.intellij.module.ModuleFileSystem.files(ModuleFileSystem.kt:36)
	at org.sonarsource.sonarlint.core.container.module.SonarLintModuleFileSystem.files(SonarLintModuleFileSystem.java:39)
	at org.sonar.plugins.python.indexer.SonarLintPythonIndexer.getInputFiles(SonarLintPythonIndexer.java:82)
	at org.sonar.plugins.python.indexer.SonarLintPythonIndexer.buildOnce(SonarLintPythonIndexer.java:59)
	at org.sonar.plugins.python.PythonScanner.<init>(PythonScanner.java:83)
	at org.sonar.plugins.python.PythonSensor.execute(PythonSensor.java:106)
	at org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:80)
	at org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.execute(SensorsExecutor.java:71)
	at org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:133)
	at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:126)
	at org.sonarsource.sonarlint.core.container.ComponentContainer.execute(ComponentContainer.java:111)

Hello Roman,

Thanks for raising this issue. I created a ticket to resolve it, feel free to follow it

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