-
Notifications
You must be signed in to change notification settings - Fork 61
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
Command 'mocha-maty.refreshExplorer' not found (again) #220
Comments
Update: it seems that this settings.json works around the issue:
After I put this file under /.vscode/settings.json, the Mocha Sidebar can detect the tests. But this is not a completely viable workaround because it only seems to work with fully qualified paths for nycPath and NODE_PATH. If I either try to use a relative path or ${workspaceFolder}, it breaks as before: |
I'm not familiar with VSCode extension development, but after checking your lib/config.js and sending a few debug messages to VSCode, it seems that mocha.xxx settings in settings.json do not support VSCode env variables. I was easily able to add such support for specific variables by changing lib/config.js as follows:
|
I got this BUG! |
I am also experiencing this bug though I cannot execute any of the mocha sidebar commands. I have tried to uninstall and reinstall the extension and my VSCode instance as well as use full paths. No luck on my end. I didn't have any special options added on. |
Description
'command 'mocha-maty.refreshExplorer' not found'
pops up when trying to refresh the test sidebar
I've read previous issues on the error message, which was supposed to be fixed in v0.20.x, however, I'm using a newer version
Thanks!
Steps to Reproduce
Expected Results
No error is shown and the tests appear
Actual Results
The refresh process should show the tests instead of the error message
Settings file
none
Versions
OS version
The text was updated successfully, but these errors were encountered: