Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.3.6
  • SonarLint: 10.5.0.78339

ECJ: Unable to parse file

java.lang.IllegalStateException: invalid environment settings
	at org.eclipse.jdt.core.dom.ASTParser.getClasspath(ASTParser.java:263)
	at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1248)
	at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
	at org.sonar.java.model.JParser.parse(JParser.java:158)
	at org.sonar.java.model.JParserConfig$FileByFile.parse(JParserConfig.java:268)
	at org.sonar.java.model.JParserConfig$FileByFile.parse(JParserConfig.java:249)
	at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:89)
	at org.sonar.java.JavaFrontend.scanAndMeasureTask(JavaFrontend.java:412)
	at org.sonar.java.JavaFrontend.scan(JavaFrontend.java:164)
	at o.s.pl.java.JavaSensor.execute(JavaSensor.java:113)
	at o.ss.sl.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:95)
	at o.ss.sl.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensors(SensorsExecutor.java:86)
	at o.ss.sl.core.analysis.container.analysis.sensor.SensorsExecutor.execute(SensorsExecutor.java:76)
	at o.ss.sl.core.analysis.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:122)
	at o.ss.sl.core.plugin.commons.container.SpringComponentContainer.startComponents(SpringComponentContainer.java:182)
	at o.ss.sl.core.plugin.commons.container.SpringComponentContainer.execute(SpringComponentContainer.java:161)
	at o.ss.sl.core.analysis.container.module.ModuleContainer.analyze(ModuleContainer.java:71)

Hey there.

Can you try upgrading to v10.6.2 of SonarLint for IntelliJ and see if the issue persists?