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

Crashes #255

Open
1 of 3 tasks
sguillia opened this issue Dec 25, 2020 · 0 comments
Open
1 of 3 tasks

Crashes #255

sguillia opened this issue Dec 25, 2020 · 0 comments

Comments

@sguillia
Copy link

Description

No tests in the sidebar. Many errors in the developer console. Unusable extension

Steps to Reproduce

  1. Install the extension
  2. Click "Refresh"
  3. Observe the developer console

Expected Results

My 300 tests appear in the sidebar.

Actual Results

My 300 tests are correctly found in the developer console, I can see their names

But 0 tests appear in the sidebar

Settings file

  "mocha.files.glob": "__tests__/**/*.test.js"

Versions

  • VScode: v1.52.0-insider
  • Mocha SideBar: v0.22.2
  • Node Version: v12.4.0

OS version

  • Linux
  • Mac
  • Windows

Example for reproducing

Tried on a closed-source repo, wil try on an OSS one if stack traces are not enough for you to reproduce

Traces

mainThreadExtensionService.ts:66 TypeError: Cannot read property 'document' of undefined
	at codeCoverage.updateDecorationByFile (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/coverage/code-coverage.js:49)
	at notificationProvider.<anonymous> (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/coverage/code-coverage.js:17)
	at notificationProvider.emit (events.js:228)
	at notificationProvider.EventEmitter.emit (/usr/share/code-insiders/resources/app/out/vs/code/electron-browser/workbench/domain.js:475)
	at /home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/notificationsProvider.js:20
	at l.fire (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46)
	at /usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:853
	at l.fire (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46)
	at b.acceptDocumentsAndEditorsDelta (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:738)
	at b.$acceptDocumentsAndEditorsDelta (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:736)
	at m._doInvokeHandler (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:892)
	at m._invokeHandler (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:892)
	at m._receiveRequest (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:891)
	at m._receiveOneMessage (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:890)
	at /usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:888
	at l.fire (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46)
	at v.fire (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:233)
	at /usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1094
	at l.fire (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46)
	at v.fire (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:233)
	at t.PersistentProtocol._receiveMessage (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:238)
	at /usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:235
	at l.fire (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46)
	at p.acceptChunk (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:231)
	at /usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:230
	at Socket.t (/usr/share/code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:240)
	at Socket.emit (events.js:223)
	at Socket.EventEmitter.emit (/usr/share/code-insiders/resources/app/out/vs/code/electron-browser/workbench/domain.js:475)
	at addChunk (_stream_readable.js:309)
	at readableAddChunk (_stream_readable.js:290)
	at Socket.Readable.push (_stream_readable.js:224)
	at Pipe.onStreamRead (internal/stream_base_commons.js:181)


console.ts:137 [Extension Host] failed on running tests TypeError: Cannot convert undefined or null to object (at treeProvider.getChildren (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/treeProvider.js:87:15))
console.ts:137 [Extension Host] user message ____________________________________________________________________________ (at Object.send (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/output/messages.js:37:19))
console.ts:137 [Extension Host] user message trying to searching for tests using these settings:  (at Object.send (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/output/messages.js:37:19))
console.ts:137 [Extension Host] user message     mocha path: [...]/index.js    test files location: __tests__/**/*.test.js    files to ignore: **/.git/**/*,**/node_modules/**/*    environmets: {}    requires: []    options:  {} (at Object.send (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/output/messages.js:37:19))
console.ts:137 [Extension Host] user message if you find anything wrong please change those default settings (at Object.send (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/output/messages.js:37:19))
console.ts:137 [Extension Host] user message ____________________________________________________________________________ (at Object.send (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/output/messages.js:37:19))
console.ts:137 [Extension Host] message received with tests (at ChildProcess.<anonymous> (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/worker/process-communication.js:37:13))
console.ts:137 [Extension Host] results came handleProcessMessages  (at /home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/mochashim.js:165:15)
console.ts:137 [Extension Host]% (348) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, …] (at /home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/mochashim.js:167:15)
console.ts:137 [Extension Host] message received with tests (at ChildProcess.<anonymous> (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/worker/process-communication.js:37:13))
console.ts:137 [Extension Host] message received with tests (at ChildProcess.<anonymous> (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/worker/process-communication.js:37:13))
console.ts:137 [Extension Host] user message data send to parent. Exiting. (at Object.send (/home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/output/messages.js:37:19))
console.ts:137 [Extension Host] split error:TypeError: Cannot read property 'split' of undefined (at /home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/provider-extensions/NavigateEditorItem.js:25:15)
console.ts:137 [Extension Host] split error:TypeError: Cannot read property 'split' of undefined (at /home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/provider-extensions/NavigateEditorItem.js:25:15)
console.ts:137 [Extension Host] split error:TypeError: Cannot read property 'split' of undefined (at /home/user/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.22.2/lib/provider-extensions/NavigateEditorItem.js:25:15)

the 'split' message appears something like 500 times

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

1 participant