Please provide
- Operating system: macOS 26.5.1
- SonarQube for IntelliJ plugin version: SonarQube for IDE 12.3.0.84775
- IntelliJ version: IntelliJ IDEA 2026.1.3 (Build #IU-261.25134.95, built on June 3, 2026)
- Programming language you’re coding in: Java
- Is connected mode used: Yes
- SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): SonarQube Server Enterprise Edition v2026.1.3 (123084)
And a thorough description of the problem / question:
I run my Java project with IntelliJ within a dev container. The IntelliJ setting “open devcontainer projects natively” is enabled. Inside the dev container the SonarQube plugin does not work and fails with an IllegalStateException.
Here is the short cause:
[2026-06-23T16:36:22.985] [sonarlint-analysis-scheduler] ERROR org.sonar.java.classpath.AbstractClasspath - Invalid value for 'sonar.java.binaries' property.
[2026-06-23T16:36:22.985] [sonarlint-analysis-scheduler] ERROR sonarlint - Error executing sensor: 'JavaSensor'
java.lang.IllegalStateException: No files nor directories matching '/$devcontainer.ij/95ff892a8403@u~var~run~docker.sock/home/<user>/<myApp>/target/classes'
at org.sonar.java.classpath.AbstractClasspath.getFilesFromProperty(AbstractClasspath.java:125)
The path is not correctly interpreted. At the beginning of the log is a warning with another exception regarding “git blame” caused by a similar problem.
[2026-06-23T16:36:22.951] [sonarlint-analysis-scheduler] WARN sonarlint - Could not execute command: [git blame --since='2025-06-23T14:36:22.946136Z' /%24devcontainer.ij/95ff892a8403%40u%7Evar%7Erun%7Edocker.sock/home/<user>/<myApp>/src/main/java/de/app/config/DatabaseResetListener.java --line-porcelain --encoding=UTF-8]
java.io.IOException: Cannot run program "git" (in directory "/$devcontainer.ij/95ff892a8403@u~var~run~docker.sock/home/<user>/<myApp>"): Exec failed, error: 2 (No such file or directory)
Inside the dev container I can execute following command successfully from an IntelliJ terminal:
git blame /home/<user>/<myApp>/src/main/java/de/<myApp>/config/DatabaseResetListener.java
I used <myApp> and <user> as placeholders for the actual names.
The (redacted) sonar log output is attached.
sonarLog.txt (122.6 KB)
Here is a screenshot from IntelliJ:
