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

Extension Fails to Install #510

Open
4 tasks done
jwalkerinterpres opened this issue Oct 24, 2024 · 1 comment
Open
4 tasks done

Extension Fails to Install #510

jwalkerinterpres opened this issue Oct 24, 2024 · 1 comment

Comments

@jwalkerinterpres
Copy link

Describe the bug

After I installed the extension, a little pop-up appeared in the lower-right:

There was an error during Vitest startup. Check the output for more details.

When I clicked the "See Error" button below it, I went to the "Output" tab, where I saw see "Output" below.

The testing tab showed no sign of the extension being installed:
image

However, Vite Test itself runs just fine for this project, when run at the command line:

image

This seems similar to #383, but that issue has a very different stack trace vs. this one. It also seems similar to #381 (and I am using NVM) ... but that issue is closed.

Reproduction

I only know two steps:

  1. Install the extension (I had installed it previously, but removed it; not sure if that's relevant)
  2. Get the error

I'd be happy to provide further reproduction info if you can instruct me on what log file (or whatever) would be useful to provide.

Output

[INFO 4:39:54 PM] [v1.6.1] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 4:39:54 PM] [API] Using user root config: /Users/me/project/project/vite.config.ts
[INFO 4:39:54 PM] [API] Running Vitest v2.1.2 (project/vite.config.ts) with [email protected]: /Users/me/.nvm/versions/node/v18.20.4/bin/node 
[Error 4:39:54 PM] [API] [Error Error] spawn /Users/me/.nvm/versions/node/v18.20.4/bin/node ENOENT
Error: spawn /Users/me/.nvm/versions/node/v18.20.4/bin/node ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:286:19)
	at onErrorNT (node:internal/child_process:484:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[Error 4:39:54 PM] [Error Error] spawn /Users/me/.nvm/versions/node/v18.20.4/bin/node ENOENT
Error: spawn /Users/me/.nvm/versions/node/v18.20.4/bin/node ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:286:19)
	at onErrorNT (node:internal/child_process:484:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Version

1.6.1

Validations

@sheremet-va
Copy link
Member

I don't really know why it fails, it cannot spawn a node process for some reason. You can try using the vitest.shellType: terminal option instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants