Thanks for the update. Unfortunately it doesn’t work with WSL under windows
java.lang.IllegalStateException: java.io.IOException: Cannot run program "C:\usr\bin\arm-none-eabi-gcc" (in directory "--redacted--"): CreateProcess error=2, The system cannot find the file specified
Template for a good bug report, formatted with Markdown:
versions used (SonarQube, Scanner, Plugin, and any relevant extension)
4.15 Sonarlint with Clion 2021.1
error observed (wrap logs/code around triple quote ``` for proper formatting)
java.lang.IllegalStateException: java.io.IOException: Cannot run program "C:\usr\bin\arm-none-eabi-gcc" (in directory "--redacted--"): CreateProcess error=2, The system cannot find the file specified
Probably works fine under native linux but not on windows with WSL configured as toolchain. Dealbreaker for us
thank you for your report, WSL toolset is equivalent to a remote toolset, at first implementation we are skipping remote toolchains. I created a ticket to properly skip WSL toolchains the same way as remote ones: SLI-530.
We will keep that in mind, in first release we didn’t target remote toolchains, thank you for your report.
Whats the status here @mpaladin ? The ticket says fixed but I just tried version 5.2 and I still get: java.lang.IllegalStateException: java.io.IOException: Cannot run program "C:\usr\bin\arm-none-eabi-gcc"
SLI_530 has been merged and files should be properly excluded, I am surprised that you still see that exception. Could you make sure you have latest SonarLint version installed? What version of CLion are you on?
For the records, the issue came from the fact that CLion introduced support for remote/WSL toolchains for Makefile projects. Thank you @JSStabl for the help, SLI-559 has been updated to support remote/WSL toolchains for Makefile projects.