-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Duplicate file tab during debugging on Windows #4166
Comments
This is perhaps a duplicate of #3185 but I'll leave it open as it describes a situation where we see the duplicate tabs without remote debugging. I cannot seem to reproduce on my Windows 10 machines, but since this is windows 7 I am wondering if there is some discrepancy in how Python specifies its platform there. @SimoPk could you please provide a bit more information for us? We are having a tough time reproducing this behaviour ourselves.
|
Lets keep this opened, to ensure we do not forget about the fact that users have issues with mixed casings in folder names. |
Upstream issue microsoft/vscode#12448 |
I'll provide the data you need later, but in the meantime I can tell you that I think the problem is that the path was maybe generated (by our IT department) as D:\users (with the lowercase u) and the through the desktop.ini it gets the localized folder name "Users" with the capital U. I can't confirm that now (maybe I'll try in a virtual machine), but I suspect that the problem could arise also if, for example, a folder named "aaa" was localized through the desktop.ini to "Users". Maybe somewhere in the codebase the localized path is compared with the physical one... just guessing... In the meantime I've moved all my files to another folder outside D:\Users and it all works fine, so the problem is just with this particular path. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@mmanatane @Spitfirech** @erwanjolivet What you're experiencing is identical to #5049 |
@SimoPk Apologies for getting back so late, but would like to check whether this is still an issue for you.
|
This is an issue for me in Windows 10. Here is folder structure (with names changed for hiding project info) where issue is present:
Note: Example folder is all small. Here are folder structure where issue could not be reproduced
I tried to add one more layer of capitalized folder to check if issue can be reproduced, but could not. I tried further - opened the folder same way - right click Open in VScode from explorer still could not reproduce. |
Deleting .vscode folder did not help to resolve issue. |
I have the same problem using windows 10 pro build 17134 I attach an image showing the duplicate copies open with their own tabs It happens when I am debugging and started a few weeks ago. On the lhs in the file window, you can see it's showing the open tabs and the 2nd copy of database functions is listed with its path and the path is all lower case. None of the other files have their path shown and the path of the folder according to windows has an upper case D in Documents |
@pbs-websuntangled @skbobade |
I've noticed that the issue does not present any more so looks like it's
fixed
Thanks very much
…On Tue, 14 May 2019, 22:21 Don Jayamanne, ***@***.***> wrote:
@pbs-websuntangled <https://github.com/pbs-websuntangled> @skbobade
<https://github.com/skbobade>
We've added a few fixes to this area of the debugger, please could you
test this with the latest version of the extension and let me know whether
the issues have been resolved.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4166?email_source=notifications&email_token=AC6OEMGW7CITHKFQCTOHXMTPVMUMNA5CNFSM4GSX3MUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVM2K4Q#issuecomment-492414322>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC6OEMHUMWUHNUTYMGA6BJTPVMUMNANCNFSM4GSX3MUA>
.
|
Environment data
Expected behaviour
When hitting a breakpoint during debug, the corresponding line in the already opened source file should be highlighted
Actual behaviour
A new tab is opened with the correct file, so I have two tabs with the same file.
This is before starting the debugger
This is with the debugger running
Two tabs with a.py are opened, and debugging starts in the second tab, (you can also see that the breakpoint is hit but the red dot indicating breakpoint is not there; it is in the other window and the breakpoints for the two windows are independent)
Reading from the internet, I think it's because somewhere the path of the file is treated as case-sensitive..
[EDIT] it is in fact something related to casing, because I noticed that somehow the path to my user folder (on which btw I kept all my source code) is D:\users<username> (notice the lowercase U), while VSCode opens the files on D:\Users<username><folder>\a.py. Doing the same test is a folder on another location (like D:_DEV\a.py) doesn't show this issue.
The text was updated successfully, but these errors were encountered: