-
Notifications
You must be signed in to change notification settings - Fork 281
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
inject NODE_OPTIONS will cause Node 10.x crash when fork child process #769
Comments
We only will quote the path if we see Node 12 or higher on your PATH. I see that your Node binary is actually set to You can set |
FYI, related node issue nodejs/node#12971, vscode issue microsoft/vscode#103049 and StackOverflow question: https://stackoverflow.com/questions/62922875/vs-code-integrated-terminal-throws-cannot-find-module-nvm-is-not-compatible |
Change Node.js version lower than 12 in PATH without re-toggling the |
@connor4312 it just a showcase for us to report the issue. in our case, the user just open vscode terminal (when their global node version is 10.x), then exec it's not about something like debug and launch.json. |
When their global Node version is 10, we will detect that and format arguments correctly for Node 10. |
got, but at our use-case, the node version comes with the project itself. just using something like and when exec |
Thanks for the info. I think I will add some logic to our binary provider to try to detect that case. |
This will be fixed in the next nightly build; when running an npm script we will now prepend |
could you add |
Done 👍 |
@connor4312 I think there's still a problem after switching the node version to v10 without changing the autoAttachFilter flag. Do I need to open another issue for it? |
Auto attach is a separate issue... but I'm not sure there's any action we will want to take for that. The large majority of users are on Node 12 or higher, and those that aren't generally don't downgrade to 10. We are also not able to detect a downgrade without actively polling, which I would really want to avoid. |
The characters specified within NODE_OPTIONS can now be escaped, which is handy especially in conjunction with `--require` (where the file path might happen to contain spaces that shouldn't cause the option to be split into two). Fixes: #12971 PR-URL: #24065 Backport-PR-URL: #35342 Reviewed-By: Anna Henningsen <[email protected]> Refs: microsoft/vscode-js-debug#769
Paths containing spaces and double quotes are already supported in Node.js v10, Release PR: nodejs/node#35544 |
Describe the bug
some users of our project report an issue, when running
cnpm install
at vscode, it will crash.To Reproduce
Steps to reproduce the behavior:
after a long dig, we found it seems a bug of Node 10.x
see https://github.com/atian25/node-bug-report
just a notify for you, free to close this issue.
Log File
VS Code Version: Replace me!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: