My question is whether using Vscode to write C/C++ code under the Ubuntu operating system can use the sonarlint plugin to analyze the C/C++ code written.
Also, I automatically generated compile_ commands.json file before I asked the question. However, the code cannot be parsed under the Ubuntu operating system. C/C++ code can be analyzed on windows operating systems.
My question is whether using Vscode to write C/C++ code under the Ubuntu operating system can use the sonarlint plugin to analyze the C/C++ code written.
Also, I automatically generated compile_ commands.json file before I asked the question. However, the code cannot be parsed under the Ubuntu operating system. C/C++ code can be analyzed on windows operating systems
I’m not sure I fully understand your question, sorry.
In your other thread, it seems that you were using VSCode on Windows to connect to a Linux remote. If it is still the case, I suggest that we continue the discussion on the other thread to try to understand what is going on.
Otherwise, I don’t see any a priori issue with analyzing C and C++ code with SonarLint for VSCode on Ubuntu, except maybe if you are running Ubuntu on an architecture not supported by the C/C++ analyzer (e.g, ARM).
Would it be possible for you to share your compile_commands.json, as well as the contents of the SonarLint Output in VSCode?
I did not manage to reproduce with the same setup on Ubuntu 20.04.
Could you please set sonarlint.output.showVerboseLogs to true in your user settings, re-analyze the file and post the SonarLint output? I believe we could get additional info from this.