You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using VSCode 1.37.1 with CppTools 0.25.1 on Windows with mingw64-5.4.0. I have followed the VSCode C++ configuration tutorial at https://code.visualstudio.com/docs/cpp/config-mingw but I have a problem resolving header file locations. In the code editor, if I put the cursor on "<iostream>", then press F12, I go to that file. But if I put the cursor on "<vector>" and press F12, I get a little "peek" pop-up showing three different possible resolutions. See screenshot below.
VSCode has already detected the correct include paths, and the correct file only exists in one of them, so it should already have all of the required information. Therefore, I expect VSCode to simply go to the proper file, and think it is a bug that instead it prompts me to make a choice.
I believe the only steps necessary to reproduce this are to follow the tutorial up to the Exploring IntelliSense step, then put the cursor on "<vector>" and press F12.
I have already used "C/C++: Reset IntelliSense Database"; the symptom described is as it happens right after a reset.
I searched for existing bugs on this topic. The only one I found is Issue #3461, but that was solved by resetting the database, and my problem is not.
I normally have several other extensions running, but I have confirmed that the symptom happens with only the CppTools extension enabled.
Screenshot:
By using the "C/C++: Log Diagnostics" palette command, I see that VSCode has detected the proper include paths (comparing to "g++ -v empty.c" at a command prompt). The complete diagnostics are: cpp-diagnostics.txt.
Type: LanguageService
I am using VSCode 1.37.1 with CppTools 0.25.1 on Windows with mingw64-5.4.0. I have followed the VSCode C++ configuration tutorial at https://code.visualstudio.com/docs/cpp/config-mingw but I have a problem resolving header file locations. In the code editor, if I put the cursor on "<iostream>", then press F12, I go to that file. But if I put the cursor on "<vector>" and press F12, I get a little "peek" pop-up showing three different possible resolutions. See screenshot below.
VSCode has already detected the correct include paths, and the correct file only exists in one of them, so it should already have all of the required information. Therefore, I expect VSCode to simply go to the proper file, and think it is a bug that instead it prompts me to make a choice.
I believe the only steps necessary to reproduce this are to follow the tutorial up to the Exploring IntelliSense step, then put the cursor on "<vector>" and press F12.
I have already used "C/C++: Reset IntelliSense Database"; the symptom described is as it happens right after a reset.
I asked about this on Stack Overflow a few days ago but no one has answered.
I searched for existing bugs on this topic. The only one I found is Issue #3461, but that was solved by resetting the database, and my problem is not.
I normally have several other extensions running, but I have confirmed that the symptom happens with only the CppTools extension enabled.
Screenshot:
By using the "C/C++: Log Diagnostics" palette command, I see that VSCode has detected the proper include paths (comparing to "g++ -v empty.c" at a command prompt). The complete diagnostics are: cpp-diagnostics.txt.
I also enabled logging for the language server. That log is: debug-log.txt
The text was updated successfully, but these errors were encountered: