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

Debugging fails on Windows with utf-8 characters in file path #563

Closed
connor4312 opened this issue Jul 10, 2020 · 4 comments
Closed

Debugging fails on Windows with utf-8 characters in file path #563

connor4312 opened this issue Jul 10, 2020 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug upstream verified Verification succeeded
Milestone

Comments

@connor4312
Copy link
Member

connor4312 commented Jul 10, 2020

As reported:

internal/modules/cjs/loader.js:969
  throw err;
  ^

Error: Cannot find module 'c:/Users/Jo�o Silva/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js'
@vvFiCKvv
Copy link

vvFiCKvv commented Jul 14, 2020

`internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module '"/snap/code/36/usr/share/code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js"'`

it seems it isn't a utf-8 problem.
the fie bootloader.bundle.js exists in the given location...
Linux #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 node v10.17.0

Version: 1.47.0
Commit: d5e9aa0227e057a60c82568bf31c04730dc15dcd
Date: 2020-07-09T08:30:34.302Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-53-generic snap

@connor4312
Copy link
Member Author

@vvFiCKvv you're hitting a version of microsoft/vscode#102035 (comment). The resolution steps in the comment will work for you (just ignore the electron part of it)

@connor4312
Copy link
Member Author

connor4312 commented Jul 16, 2020

This is an issue in Node.js, see nodejs/node#34399.

For now, you can get around this by using attachSimplePort with the nightly build. You miss out on some functionality, but it will unblock you.

Example launch.json:

{
  "type": "pwa-node",
  "request": "launch",
  "name": "Launch program",
  "attachSimplePort": 0,
  "program": "${workspaceFolder}/main.js",
},

@NikitaBelevich
Copy link

This is an issue in Node.js, see nodejs/node#34399.

For now, you can get around this by using attachSimplePort with the nightly build. You miss out on some functionality, but it will unblock you.

Example launch.json:

{
  "type": "pwa-node",
  "request": "launch",
  "name": "Launch program",
  "attachSimplePort": 0,
  "program": "${workspaceFolder}/main.js",
},

I had the same issue, this option of the launch.json helped out me. Thank you very much :)

image

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 upstream verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants