-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Failed to get Node.js version #413
Comments
Same. |
I cannot reproduce this locally, but I added some logs in 0.12.1. If you have anything new in the "Output" channel, please share. |
Thank you, @sheremet-va
|
This should be fixed in 0.12.2 for everyone in 5e3f10d, we don't throw an error anymore if the version was not returned. |
@sheremet-va it looks like the error is not shown then any longer but does it actually fix the cause of the extension not finding the Node version? I noticed that when the error appears I am not able to use the extension via sidebar buttons on my test code files. |
You should be able to see the reason in the Output panel. You can open it via "Vitest: Show Output Channel" command. |
Describe the bug
On VS Code startup I am receiving an error from the "vitest.explorer" extension.
Screenshot:
When I run
/home/bennycode/.nvm/versions/node/v20.10.0/bin/node --version
on my Terminal it showsv20.10.0
.Reproduction
Output
[INFO 12:48:45 PM] [v0.12.0] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace. [Error 12:48:45 PM] [API] Failed to get Node.js version from /home/bennycode/.nvm/versions/node/v20.10.0/bin/node [Error 12:48:45 PM] [Error Error] Failed to get Node.js version Error: Failed to get Node.js version at wf (/home/bennycode/.vscode-server/extensions/vitest.explorer-0.12.0/dist/extension.js:18:4670) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _f (/home/bennycode/.vscode-server/extensions/vitest.explorer-0.12.0/dist/extension.js:20:569) at async /home/bennycode/.vscode-server/extensions/vitest.explorer-0.12.0/dist/extension.js:18:4126 at async Promise.all (index 0) at async no (/home/bennycode/.vscode-server/extensions/vitest.explorer-0.12.0/dist/extension.js:18:4161) at async wr.defineTestProfiles (/home/bennycode/.vscode-server/extensions/vitest.explorer-0.12.0/dist/extension.js:26:2671) at async wr.activate (/home/bennycode/.vscode-server/extensions/vitest.explorer-0.12.0/dist/extension.js:26:5698) at async od (/home/bennycode/.vscode-server/extensions/vitest.explorer-0.12.0/dist/extension.js:26:783) at async a.n (/home/bennycode/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/workbench/api/node/extensionHostProcess.js:145:6361) at async a.m (/home/bennycode/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/workbench/api/node/extensionHostProcess.js:145:6324) at async a.l (/home/bennycode/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/workbench/api/node/extensionHostProcess.js:145:5781) [Error 12:48:45 PM] [API] Failed to get Node.js version from /home/bennycode/.nvm/versions/node/v20.10.0/bin/node [Error 12:48:45 PM] [API] Failed to get Node.js version from /home/bennycode/.nvm/versions/node/v20.10.0/bin/node
Version
0.12.0
Validations
The text was updated successfully, but these errors were encountered: