Closed jpierson-at-riis closed 10 months ago
Hi, did you happen to have a jest.shell
setting? The stack trace seems to imply a possible incomplete jest.shell
setting that is missing the "args" property, which could trigger this error.
I will patch it to make it more fault-tolerant. Meanwhile, you can just add an empty array, such as:
"jest.shell": {
"path": "/bin/zsh",
"args": []
}
Thanks, I'll check my jest.shell
setting.
Ok, so I think the jest.shell
setting and perhaps some other things may have been related to why the problem was happening for me.
settings.json
file for Windows that I believe may have been causing some tools such as prettier to choke when trying to modify the file and may have also caused incorrect configuration as well. Removing these seemed to have some positive impact but I haven't tried the project on the Windows side yet to verify.My user setting had some windows specific paths to powershell which don't apply in WSL where I've been trying to get the project running lately to avoid several other unrelated problems with corporate bloatware interfering with development tools. Simply creating a WSL specific settings.json
file through VSCode and then overriding the jest.shell
property as shown below allowed the extension to load when VSCode is launched through WSL.
{
"jest.shell": ""
}
There may be some remaining tinkering necessary but it looks like I have the basic features now working and I can begin to once again iterate on the https://github.com/jest-community/vscode-jest/issues/1022 issue getting the debugger to launch.
Environment
vscode-jest version
: v6.1.0 pre-releasenode -v
: v18.12.0npm -v
oryarn --version
: 8.19.2npm ls jest
ornpm ls react-scripts
(if you haven’t ejected):Prerequisite
npm run test
ornode_modules/.bin/jest
)npm test
Steps to Reproduce
Relevant Debug Info
[fill]
Expected Behavior
The extension should load, the beaker icon should show in the left tab menu, and the extension should be available and effective in the editor.
Actual Behavior
The extension does not load, the beaker icon does not show in the left tab menu, and the extension does not appear to be effective in the editor. The following error shows up when starting up the editor after installing the extension.
Output (adjusted for privacy) for window in VSCode: