Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error when running CodeQL tests on codespaces

Open
#1,067 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript, vscode

Research direction

The payload names no repository file or test; start by reproducing the CodeQL test run in Codespaces and inspect the VS Code Remote extension output. Check the reported vscode-test-explorer-2.21.1 stack trace and determine whether the repository or that extension is responsible; done means the failure is resolved or its cause and reproduction path are documented.

Written by the indexing model from the issue text.

Description

bug VSCode

A user is getting errors when trying to run codeql tests in codespace. Even though the errors were logged, the tests ran anyway. Creating an issue in case anyone can reproduce this.

Error Message

Stack trace from the "Log (Remote extension)" output pane:

[2022-01-05 16:41:53.030] [exthost] [error] TypeError: Cannot read property 'collection' of undefined
	at TestExplorer.<anonymous> (/home/codespace/.vscode-remote/extensions/hbenl.vscode-test-explorer-2.21.1/out/testExplorer.js:118:55)
	at Generator.next (<anonymous>)
	at /home/codespace/.vscode-remote/extensions/hbenl.vscode-test-explorer-2.21.1/node_modules/tslib/tslib.js:117:75
	at new Promise (<anonymous>)
	at Object.__awaiter (/home/codespace/.vscode-remote/extensions/hbenl.vscode-test-explorer-2.21.1/node_modules/tslib/tslib.js:113:16)
	at TestExplorer.run (/home/codespace/.vscode-remote/extensions/hbenl.vscode-test-explorer-2.21.1/out/testExplorer.js:113:24)
	at /home/codespace/.vscode-remote/extensions/hbenl.vscode-test-explorer-2.21.1/out/main.js:74:82
	at l._executeContributedCommand (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:94:111652)
	at l.$executeContributedCommand (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:94:112090)
	at i._doInvokeHandler (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:98:13802)
	at i._invokeHandler (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:98:13486)
	at i._receiveRequest (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:98:12148)
	at i._receiveOneMessage (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:98:11025)
	at /vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:98:8922
	at a.fire (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:66:1712)
	at l.fire (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:74:15990)
	at /vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:113:30514
	at a.fire (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:66:1712)
	at l.fire (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:74:15990)
	at u._receiveMessage (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:74:21260)
	at /vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:74:18138
	at a.fire (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:66:1712)
	at w.acceptChunk (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:74:13351)
	at /vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:74:12699
	at a.fire (/vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:66:1712)
	at /vscode/bin/linux-x64/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:113:19582
	at afterWrite (internal/streams/writable.js:466:5)
	at onwrite (internal/streams/writable.js:446:7)
	at InflateRaw.afterTransform (internal/streams/transform.js:103:3)
	at Zlib.processCallback (zlib.js:586:8) test-explorer.run
Dominant language
TypeScript
Stars
539
Forks
240
Avg merge
2d 6h
Merged PRs (30d)
29

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/vscode-codeql

All issues in github/vscode-codeql

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.