Integrate VSCode Extension C/C++ Clang Command Adapter

Hello, I try to integrate the VSCode Extension " C/C++ Clang Command Adapter" in my theia app to make the WebIDE able to detect the syntax error in C programes, but find some problem.
At first, I follow the Testing VS Code extension guid, download the .visx file and put it in the plugins folder. Now when I open the theia application locally, I can see the VSCode extension has been loaded successfully:
image
However, when I enter the WebIDE, an error notification poped up like this way:


it shows that the plugin cannot find the clang, I have install it in my computer previously(Windows 10). Then I open the detail page of this VSCode extension.

it shows that I need to configure the PATH environment of the clang, but I open the .visx that I put in the plugins folder, it shows nothing. Maybe only in the VSCode can I configure this environmet.
image
Is there a way to solve it? Thanks.

Try to set clang.executable in your settings.json file and let us know if it still does not work.

Thanks, It works.

1 Like