Closed bennycode closed 1 month ago
Same. It worked fine for VSCode v1.89 but started to drop the same error with the latest v1.90 update. I also use nvm.
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 With the update of Vitest extension to v0.12.1 it started working. I also updated the latest node LTS version, v20.14.0 (previous was v20.13.1), so it might be the case when some paths were updated or something. There are output logs for the updated Vitest extension:
[INFO 5:03:33 PM] [v0.12.1] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 5:03:47 PM] [API] Running Vitest v1.6.0 (dashboard/vitest.config.ts) with Node.js: /home/***/.nvm/versions/node/v20.14.0/bin/node
[Worker] Running with compatibility version `4`
[INFO 5:04:32 PM] [API] Vitest v1.6.0 (dashboard/vitest.config.ts) process 38056 created
[INFO 5:07:46 PM] Running 1 file(s): tests/unit/init.test.ts
This should be fixed in 0.12.2 for everyone in https://github.com/vitest-dev/vscode/commit/5e3f10d7a309fa383d956c2e554f290f776e12d3, 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.
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
Version
0.12.0
Validations