-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paths with incorrect casing in terminal output can cause the same file be opened twice. #984
Comments
@Schobers The bigger issue here is Windows is not case sensitive so we can get either |
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 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 #984 (comment). 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: microsoft/vscode#12448 |
The debugger casing issue on Windows is being tracked by #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: microsoft/vscode#12448 |
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:
Project.zip
Expected:
Actual:
Notes:
Notes on example:
The text was updated successfully, but these errors were encountered: