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

Unable to run tests with v0.1.13 #11

Closed
jtlapp opened this issue Mar 30, 2022 · 5 comments
Closed

Unable to run tests with v0.1.13 #11

jtlapp opened this issue Mar 30, 2022 · 5 comments

Comments

@jtlapp
Copy link

jtlapp commented Mar 30, 2022

I reloaded my VSCode window and lost the ability to run tests. I only have a "Go to Test" icon in the left testing pane, and when I right-click the symbol next to the test, I get this menu:

Screen Sharing Picture March 30, 2022 at 11 24 32 CDT

I tried setting the command line to npx vitest in the extension settings, but that didn't help.

I noticed that you posted a new version yesterday, so that version may be the problem.

VSCode v1.65.2

@zxch3n
Copy link
Member

zxch3n commented Mar 30, 2022

I just published v0.1.14. Can you check whether this is still happening?

@zxch3n
Copy link
Member

zxch3n commented Mar 30, 2022

What's your Vitest version? After updating the plugin, with Vitest version < 0.8.0 run & debug will be disabled. Because there is a breaking change in the Vitest JSON output format.

@jtlapp
Copy link
Author

jtlapp commented Mar 30, 2022

THANK YOU! I upgraded to vitest@0.8.1, and everything is working again, with v0.1.14.
I upgraded vitest before retesting, though.

And thanks for keeping up with bug fixes!

@jtlapp jtlapp closed this as completed Mar 30, 2022
@jtlapp
Copy link
Author

jtlapp commented Mar 30, 2022

Well, I came back to VSCode after lunch and now don't see vitest running at all. It doesn't show in the Testing pane, and there are no icons in the margin of the test code. The extension is enabled, and I tried reloading VSCode.

@calebboyd
Copy link

The brace-expansion dependency appears to be missing in 0.1.14

Here is a require stack

[2022-03-30 18:08:37.894] [exthost] [error] Activating extension ZixuanChen.vitest-explorer failed due to an error:
[2022-03-30 18:08:37.894] [exthost] [error] Error: Cannot find module 'brace-expansion'
Require stack:
- /Users/me/.vscode/extensions/zixuanchen.vitest-explorer-0.1.14/node_modules/minimatch/minimatch.js
- /Users/me/.vscode/extensions/zixuanchen.vitest-explorer-0.1.14/out/vscodeUtils.js
- /Users/me/.vscode/extensions/zixuanchen.vitest-explorer-0.1.14/out/TestData.js
- /Users/me/.vscode/extensions/zixuanchen.vitest-explorer-0.1.14/out/discover.js
- /Users/me/.vscode/extensions/zixuanchen.vitest-explorer-0.1.14/out/extension.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js

@github-actions github-actions bot locked and limited conversation to collaborators Feb 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants