Skip to content
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

UNC path causes debugger to open file in new read only window #1148

Closed
miquelfire opened this issue Dec 1, 2021 · 2 comments · Fixed by #1415
Closed

UNC path causes debugger to open file in new read only window #1148

miquelfire opened this issue Dec 1, 2021 · 2 comments · Fixed by #1415
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@miquelfire
Copy link

Describe the bug
I recently started using VS Code on a recently reformatted machine at work, and noticed that when I set a break-point, it will open a new read-only window. The nature of the machine has the My Documents folder on a file share, so VS Code is displaying UNC paths (\\server\path to user\Documents\etc) instead of what is normally the standard C:\Users\username\Documents\etc

I'm going to assume the odd setup found an odd bug with path handling

Windows 10 20H2

To Reproduce
Steps to reproduce the behavior:

  1. Open a project that is on a UNC path \\server\share\pathToProject
    Any project should do, but Step 2 below is for this repo only: https://github.com/miquelfire/aoc2021
  2. Look at index.js and see what parameter is passed to the run command. Set it to 0 and create a dummy 00.txt
  3. Set a break-point in index.js on the run command
  4. Run the debugger
  5. A new read-only window for index.js should appear

VS Code Version: 1.62.3

@miquelfire miquelfire added the bug Issue identified by VS Code Team member as probable bug label Dec 1, 2021
@connor4312
Copy link
Member

I don't have ready access to a system with UNC paths, could you collect a trace log using the instructions in the issue template? Thanks 🙂

@connor4312 connor4312 added this to the October 2022 milestone Oct 5, 2022
connor4312 added a commit that referenced this issue Oct 5, 2022
connor4312 added a commit that referenced this issue Oct 5, 2022
@aeschli
Copy link

aeschli commented Oct 25, 2022

Verified with JavaScript Debugger (Nightly) v2022.10.1817

@aeschli aeschli added the verified Verification succeeded label Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants