Trying to run sonarlint on c code but it always shows up found 0 issues

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version: v3.16.0
  • Programming language you’re coding in: c
  • Is connected mode used: no
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question:
Iam trying to run sonarlint on c code but it always shows up found 0 issues and Error executing sensor: ‘CFamily’ java.lang.IllegalStateException: unexpanded response file, so what do i fix that?

Hi @Mohamed_Abdelaziz,

I guess you are generating a compilation database using cmake.
We don’t support unexpanded files in the compilation database.

You can fix this issue by setting these two CMAKE variables and cleanly regenerating the compilation database:

set(CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES 0)
set(CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES 0)

Thanks,

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