-
-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Labels
Description
Describe the bug
I'm trying to get out of the node environment and go full bun, but in vscode, vitest is currently reporting errors.
[INFO 14:32:55] [v1.44.1] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 14:32:55] [API] Resolving configs: 52pjhelper/vitest.config.ts
[INFO 14:32:55] [API] Running Vitest v4.0.18 (52pjhelper/vitest.config.ts) with "C:\Users\bddxg\.bun\bin\node.EXE C:/Users/bddxg/.vscode/extensions/vitest.explorer-1.44.1/dist/worker.js"
[Error 14:32:55] There were errors during config load.
[Error 14:32:55] [Error Error] Vitest process exited with code 1006
Error: Vitest process exited with code 1006
at e.u (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:1:60258)
at e.emit (node:events:531:35)
at e.emitClose (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\wrapper-DYgoE0-C.js:1:29328)
at e.o.t.exports.G (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\wrapper-DYgoE0-C.js:1:38426)
at e.o.t.exports.emit (node:events:519:28)
at finish (node:internal/streams/writable:955:10)
at node:internal/streams/writable:936:13
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
[Error 14:32:55] [Error Error] The extension could not load any config.
Error: The extension could not load any config.
at Ot (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:1:72081)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Yn._defineTestProfiles (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:12:2800)
at async Yn.defineTestProfiles (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:12:2119)
at async Yn.activate (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:12:9060)
at async qn (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:12:745)
at async mA.n (file:///c:/Users/bddxg/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:13398)
at async mA.m (file:///c:/Users/bddxg/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:13361)
at async mA.l (file:///c:/Users/bddxg/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:12817)
Expected behavior
I want the plugin to be able to read the bun, and function properly
Reproduction
- Make sure there is no node environment on the computer
- install bun, start vscode, install vitest plugin
- see the error message
Output
[INFO 14:32:55] [v1.44.1] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 14:32:55] [API] Resolving configs: 52pjhelper/vitest.config.ts
[INFO 14:32:55] [API] Running Vitest v4.0.18 (52pjhelper/vitest.config.ts) with "C:\Users\bddxg\.bun\bin\node.EXE C:/Users/bddxg/.vscode/extensions/vitest.explorer-1.44.1/dist/worker.js"
[Error 14:32:55] There were errors during config load.
[Error 14:32:55] [Error Error] Vitest process exited with code 1006
Error: Vitest process exited with code 1006
at e.u (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:1:60258)
at e.emit (node:events:531:35)
at e.emitClose (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\wrapper-DYgoE0-C.js:1:29328)
at e.o.t.exports.G (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\wrapper-DYgoE0-C.js:1:38426)
at e.o.t.exports.emit (node:events:519:28)
at finish (node:internal/streams/writable:955:10)
at node:internal/streams/writable:936:13
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
[Error 14:32:55] [Error Error] The extension could not load any config.
Error: The extension could not load any config.
at Ot (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:1:72081)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Yn._defineTestProfiles (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:12:2800)
at async Yn.defineTestProfiles (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:12:2119)
at async Yn.activate (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:12:9060)
at async qn (c:\Users\bddxg\.vscode\extensions\vitest.explorer-1.44.1\dist\extension.js:12:745)
at async mA.n (file:///c:/Users/bddxg/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:13398)
at async mA.m (file:///c:/Users/bddxg/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:13361)
at async mA.l (file:///c:/Users/bddxg/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:12817)
[INFO 14:38:24] [DECOR] Decorations for d:\code\front-end\52pjhelper\wxt.config.ts are already cached. Displaying them.
[INFO 14:38:43] [DECOR] Decorations for d:\code\front-end\52pjhelper\wxt.config.ts are already cached. Displaying them.Extension Version
1.44.1
Vitest Version
4.0.18
Validations
- Check that you are using the latest version of the extension
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable