I've installed visual studio code on my Ubuntu VM and am using c++. I keep getting the following error covering the pages tab at the top which is really frustrating:
Please install clang or check configuration clang.executable
I have installed clang using apt-get install llvm. I have installed the c++ support from the packages so I'm not trying to do anything complicated here.
I have googled till I'm now blue in the face, has anyone else come across this and now how to get around this.
It seems clang is not installed properly on your ubuntu. Install clang by:
sudo apt-get install clang
clang -v //Now see installed version
Now, error should be fixed.
I too had the same problem and resolved it with the following steps.
Installed the llvm plus clang available with the following link http://releases.llvm.org/
Installed the c/c++ lang adapter (choose this one from the list of extensions in the visual studio code.
https://marketplace.visualstudio.com/items?itemName=mitaki28.vscode-clang
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With