Open GEOEGII555 opened 2 months ago
I've tried a couple of things, and it seems like the files which are specifically mentioned in CMakeLists.txt
have intellisense disabled. All other files work fine. Here's a video where I edit CMakeLists.txt
and show how the behavior changes: https://1drv.ms/v/s!As9AgYSaPCSsqn1JkngIrVQHJ-uB?e=iJrBom
After some testing, I also found a second condition: the file must be mentioned in CMakeLists.txt
, AND there should be an argument /DEBUG:FULL
added via add_compile_options
.
Somehow, /DEBUG:FULL
is breaking intellisense. This only happens when vscode-cmake-tools is configured as the config provider, so it's probably a bug in this extension.
@GEOEGII555 In order to better solve your problem, we need more information from you, such as a project that can reproduce this issue and some screenshots? Thank you!
Here: project.zip
Thank you very much for your reply, I still can't reproduce the problem using the program you provided!
Here are my steps:
The CMake configuration has failed (bottom right corner), probably because CMake wasn't able to find sockpp. The issue seems to happen only after a successful CMake configuration.
I removed sockpp from CMakeLists.txt (commented out) and the issue is still present after this. Here's a zip archive with the same project (but with sockpp dependency removed, the issue is still present)
https://1drv.ms/v/s!As9AgYSaPCSsqwn4Y980H5UCv2ud?e=xVcRbs here's a 0.5 GB 7 minute long video of me showing this issue and how it only happens with MSVC and not GCC
@GEOEGII555 Thank you very much for your reply, I watched the video you provided carefully and still not could not reproduce your problem after a successful configuration. Is it possible that I am not doing it correctly?
Here are my steps:
@GEOEGII555 Thank you very much for your reply, I watched the video you provided carefully and still not could not reproduce your problem after a successful configuration. Is it possible that I am not doing it correctly?
Here are my steps:
The other steps do seem correct, however, I see you have "clang (visual studio...)" and just "visual studio ...", and you chose the first one. Can you try choosing the other one which just says Visual Studio ...? because it's the way how it shows up for me
@gcampbell-msft I reproduced the issue based on the user's reply, and as the user said the issue only reproduces in certain files. It does not reproduce when my compiler of choice is clang.exe. Do we need to change the status of this issue to bug?
ENV: VS Code: 1.89.1 CMake tools: 1.18.38 C/C++:1.20.5
Repro steps recording:
Download the project: code.zip and open it in vscode. Run the "CMake: Select a Kit" command. Select "Visual studio xxx -amd64". Open broken.cpp file. On the eleventh line type “this ->”
Actual results:
Brief Issue Summary
When setting this extension as a configuration provider, Intellisense breaks in specific files, but works fine in other files.
CMake Tools Diagnostics
Debug Log
No response
Additional Information
https://github.com/microsoft/vscode-cmake-tools/assets/57674559/0fde08db-f8b2-4177-aefc-ed39837f971c