-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Error starting debugger when Vscode and Node are installed from Ubuntu Snapstore #102723
Comments
From command line |
It seems like one workaround is setting Interestingly I don't see this happen even if I use the VS Code electron instance to spawn the start script...
...it only seems to happen (on both the old and new debuggers) when started from the extension host. (Though maybe snap does extra sandboxing when launching the app which the CLI doesn't.) We can launch Node when it's installed via apt or nvm just fine, only snap node is busted. cc @joaomoreno / @deepak1556 if you have any idea what's going on here. Daniel isn't sure and I've no familiarity with snap internals. Leaning towards this being an upstream issue in snap or Node's snap image. |
@connor4312 - workaround Without |
@mwoz123 if you update to the most recent insiders or use the js-debug nightly build it should work without disabling preview. @joaomoreno quote possibly. There seem to be multiple 'weird' things about Node Snap. |
I don't think there's anything actionable from the VS Code side on this. |
Version: 1.48.0-insider
Commit: cb31fc6
Date: 2020-07-15T05:32:05.866Z
Electron: 8.3.3
Chrome: 80.0.3987.165
Node.js: 12.13.0
V8: 8.0.426.27-electron.0
OS: Linux x64 5.4.0-40-generic snap
Steps to Reproduce:
2.Create react app or clone my sample clear VSCode React project: https://github.com/mwoz123/test-vsc-snap-react (contains only files generated by
create-react-app
script + launch.json + settings.json -> see comits)run
npm i
Open in VSC folder test-vsc-snap-react
Try debugging react app in VSC using "Debug ReactJS Dev server" launch config.
Previously I'd
The node version in "/snap/bin/node" is outdated(version), we require atleast Node 8.x
but after applying (commited to repo) workaround:
#102355 (comment)
I've error:
Software installed from snapstore:
Does this issue occur when all extensions are disabled?:
Yes
Exactly same behaviour for non-insiders version:
Version: 1.47.1
Commit: 485c41f
Date: 2020-07-14T00:13:57.513Z
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.4.0-40-generic snap
The text was updated successfully, but these errors were encountered: