-
Hi, first of all thanks for your work, I'm using I'm currently having some issue with the C/C++ intellisense. I have quite a big project with lot of dependencies, that are cloned locally in the build folder when configuring the cmake target. The project is correctly built using the cmake extension and the only difference wrt yesterday is that I rebooted the machine used for development (Ubuntu 20.04). I'm wondering if given the size of the project, the intellisense may have some issues to parse correctly all the files. Any suggestion in this regard? Here is my current setup:
Thanks in advance for your help, let me know if I can provide any other information that could be useful to investigate this issue. Best regards, Mauro |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
While you have the file open with the errors in it, can you run the |
Beta Was this translation helpful? Give feedback.
-
In case anyone else hits this issue, the root cause is a discrepancy between how symlinks are handled. Refer to this discussion. cpptools sends CMake Tools the resolved paths to files ( The workaround for now is to launch VS Code from inside the linked path using |
Beta Was this translation helpful? Give feedback.
In case anyone else hits this issue, the root cause is a discrepancy between how symlinks are handled. Refer to this discussion. cpptools sends CMake Tools the resolved paths to files (
realpath
), but CMake Tools is matching them against the unresolved paths and fails.The workaround for now is to launch VS Code from inside the linked path using
code .
Currently VS Code will report the workspace folder as therealpath
in this case and CMake Tools won't get confused.