Windows 10 x64
Visual Studio Code 1.15.1 x64
C/C++ extension 0.12.3
CMake version 3.7.2 with Visual Studio 14 2015 Win64 generator
Reproduction:
Expected:
Actual:
Notes:
Notes on example:
@Schobers The bigger issue here is Windows is not case sensitive so we can get either c:\project\subfolder\file.h or C:\Project\SubFolder\file.h from the symbol and then we just pass it back to VSCode to open the document. VSCode's method of opening documents is case sensitive.
Should I duplicate this bug in the VSCode repository then?
@Schobers We have tried that and they have said "won't fix" and their suggestion is for us to find a way to figure out the correct casing of the file. I've marked it a bug and we'll look at addressing it.
Hi, I have the same kind of issue when debugging: if my project was built using file D:\Development\Foo\Bar.cpp, when I set a breakpoint in it, when the debugger hits it a second file named D:\development\foo\bar.cpp is opened.
This is really hurting when debugging complex projects: 10 breakpoints spread in 10 different files result in 20 files opened. And the worse thing is that the breakpoint was set on the correct cased file, but you actually break on the one with lowercase, where the breakpoints do not show ...
Anyway I hope this bug can be fixed quickly.
Hmm...I'm still reproing this bug. Is anyone else?
@sean-mcmanus Please provide logs or examples. I can't duplicate this.
It repros on Windows with the cppvsdbg debugger, not with gdb.
It reproduces with the scenario that @ix-dcourtois mentioned in https://github.com/Microsoft/vscode-cpptools/issues/984#issuecomment-327742752. So technically it's probably a different bug then the original report since the source of the path is different (task/compiler versus debugger).
The overall issue is: https://github.com/Microsoft/vscode/issues/12448
The debugger casing issue on Windows is being tracked by https://github.com/Microsoft/vscode-cpptools/issues/272 .
I'm still seeing something very like this issue. How/where was it fixed?
My specific scenario is:
@0xabu This is only fixed for debugging, and not for build.
For debugging, we are intercepting the filename from the debugger, checking the file system for the file and returning the right casing to VS Code so it will open the file with the correct disk casing.
For Build, you would need to send that over to VS Code to address since I think all that the problem matcher does is give you the build error (which in your case is the wrong case) and then they open the document. Here is the issue on their side: https://github.com/Microsoft/vscode/issues/12448
Most helpful comment
I'm still seeing something very like this issue. How/where was it fixed?
My specific scenario is: