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

Couldn't load options using mocha: child process exited with code 9 and signal null #225

Open
dhowe opened this issue Nov 13, 2022 · 1 comment

Comments

@dhowe
Copy link

dhowe commented Nov 13, 2022

Trying to add the extension to a project (even an empty project with just one test), and I get the following error:

[Error: Couldn't load options using mocha: child process exited with code 9 and signal null
	at ChildProcess.<anonymous> (/Users/dhowe/.vscode/extensions/hbenl.vscode-mocha-test-adapter-2.14.1/out/optsReader.js:89:32)
	at Object.onceWrapper (node:events:646:26)
	at ChildProcess.emit (node:events:526:28)
	at maybeClose (node:internal/child_process:1092:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:526:28)
	at Pipe.<anonymous> (node:net:687:12)]
@ChuckEQX
Copy link

ChuckEQX commented Oct 25, 2024

I get the same thing. Have have not seen a working sample of this adapter. Mocha runs fine from CLI:
npm test

But when hit the "Refresh Tests" it shows "Test discovery failed" and opens this:
`
The worker process finished with code 1 and signal null

Stacktrace:
at x.syncTopLevel (c:\Users\chuck.vscode\extensions\ms-vscode.test-adapter-converter-0.2.0\out\extension.js:5:3)
at gh.value (c:\Users\chuck.vscode\extensions\ms-vscode.test-adapter-converter-0.2.0\out\extension.js:2:4519)
at T.B (file:///c:/Users/chuck/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:732)
at T.fire (file:///c:/Users/chuck/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:950)
at gh.value (c:\Users\chuck.vscode\extensions\hbenl.vscode-test-explorer-2.22.1\out\hub\testHub.js:53:43)
at T.B (file:///c:/Users/chuck/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:732)
at T.fire (file:///c:/Users/chuck/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:950)
at ChildProcess. (c:\Users\chuck.vscode\extensions\hbenl.vscode-mocha-test-adapter-2.14.1\out\core.js:121:51)
at ChildProcess.emit (node:events:519:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
`

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

No branches or pull requests

2 participants