question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Work around for VSC Bug - Fix Path Mappings to lowercase the drive letter

See original GitHub issue

When using path mappings on windows, ensure the drive letter is lower cased. I.e. when user uses the following setup, ${workspaceFolder} gets translated to a path with an upper case drive letter.

      "pathMappings": [
        {
          "localRoot": "${workspaceFolder}/modules/rfidreader/",
          "remoteRoot": "/app/"
        }
      ],

This is a work around for a VSC bug

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
karrtikrcommented, Jun 18, 2019

Suggestion

  • Check src\client\debugger\extension\hooks\childProcessAttachService.ts -> fixPathMappings(). Use similar logic to resolve localRoot
const systemVariables = new SystemVariables(config.workspaceFolder);
const localRoot = systemVariables.resolveAny(<localRootProvided>);
  • Then take the localRoot of path mappings and convert drive letter to lower case (on windows)
0reactions
karrtikrcommented, Jun 19, 2019

validated

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I disable or avoid webpack warnings about differently ...
What I did to fix it is was add a bash command to my webpack npm scripts to uppercase the drive letter before...
Read more >
felixfbecker/vscode-php-debug - Gitter
I have "mysite.eric" mapped to bring up the site. That works when I type it in the Chrome. How do I get breakpoints...
Read more >
User and Workspace Settings - Visual Studio Code
json file with the Preferences: Open Settings (JSON) command and you should see the error highlighted with red squiggles. How can I reset...
Read more >
Fixing two small bugs in Visual Studio Code | Worth Doing Badly
VSCode is my favorite editor, and I wanted to contribute back to this ... paths, so my fix must explicitly uppercase the drive...
Read more >
X-Ways Forensics & WinHex Manual
A only if contained in path X plus files of type B if not deleted plus files ... WinHex traverses all cluster chains...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found