[WSL] Intellisense does not work without g++ (e.g. only with gcc installed) #2178
Labels
bug
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
Milestone
Type: LanguageService
Describe the bug
Probably documentation issue, as in the docs: vscode-cpptools/Documentation/LanguageServer/Windows Subsystem for Linux.md, there is no clear specification about what "Prerequisites" are required so that vscode-cpptools (at least the newer versions) which assume system includes paths from gcc, are.
As a side comment, this information is provided in vscode-cpptools/Documentation/Debugger/gdb/Windows Subsystem for Linux.md, but there is a catch, from document one could understand that he could install either g++ or gcc, and both work, but thats not the case. I've found that actually g++ is needed to run such command:
gcc -v -E -x c++ - < /dev/null
To Reproduce
Steps to reproduce the behavior:
e.g. #include <stdio.h> is not found in the system.
Expected behavior
I believe the documentation must be update to explicit this behaviour. This can even be copied from GDB section and updated accordingly
The text was updated successfully, but these errors were encountered: