KEMBAR78
DAP sources are case sensitive on insensitive filesystems · Issue #106382 · microsoft/vscode · GitHub
Skip to content

DAP sources are case sensitive on insensitive filesystems #106382

@connor4312

Description

@connor4312

From #102493 (comment)

In this case:

  1. The user had Node.js importing a different casing of their file (socks5udp) than what was actually on their disk (socks5UDP).
{
  "source": {
    "name": "socks5UDP.js",
    "path": "c:\\Users\\Rohit Kapoor\\source\\sockem\\lib\\socks5UDP.js"
  },
  1. They set breakpoints, VS Code set in socks5UDP
  2. We set the breakpoint, and V8 resolved it. V8 used the imported casing socks5udp
  3. Then js-debug sent back that the breakpoint in the source, using the casing/path from Chrome
{
  "name": "lib/socks5udp.js",
  "path": "c:\\Users\\Rohit Kapoor\\source\\sockem\\lib\\socks5udp.js",
  "sourceReference": 0
}
  1. This caused the breakpoint to move out of its correct file in VS Code

What should be the proper behavior here? Who should canonicalize the path?

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions