Tests do not appear and cannot be run, sometimes
See original GitHub issueChecklist
- [X ] The issue is about this extension and NOT about a fork.
- [X ] Check the known issues list.
- [ X] The latest version of the extension was used.
Describe the bug
This is my first time using this extension, so perhaps the actual bug description is more fundamental, but at the very least most of the time my tests are not showing the “Run” “Debug” etc buttons on top of the individual tests. They have shown on occasion but then disappear at some point. Log attached below.
To Reproduce
- Write some catch2 tests.
- Install the extension in vscode.
- Observe the individual test runner buttons appear.
- Do stuff (not sure what, but after some amount of time, the buttons disappear).
Uninstalling and reinstalling the extension causes the buttons to reappear. I will add more info as I discover it.
Desktop
- Extension Version: v3.2.12 (latest)
- VS Code Version: latest
- Catch2 / Google Test / DOCTest Version: catch2 v2
- OS Type and Version: windows 10 pro, linux ubuntu 18.04 on wsl2
- Using remote-ssh/docker/wsl?: yes see above
Log (optional but recommended)
[2020-07-27 10:20:53.679] [INFO] watcher event: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog
[2020-07-27 10:20:53.679] [INFO] possibly new suite: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog
[2020-07-27 10:20:53.680] [INFO] watcher event: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate
[2020-07-27 10:20:53.680] [INFO] possibly new suite: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate
[2020-07-27 10:20:53.680] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:53.682] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:54.638] [INFO] watcher event: c:\projects\one-game-sdk\build\tests\Debug\tests.pdb
[2020-07-27 10:20:54.638] [INFO] possibly new suite: c:\projects\one-game-sdk\build\tests\Debug\tests.pdb
[2020-07-27 10:20:54.639] [INFO] watcher event: c:\projects\one-game-sdk\build\tests\Debug\tests.exe
[2020-07-27 10:20:54.639] [INFO] watcher event: c:\projects\one-game-sdk\build\tests\Debug\tests.ilk
[2020-07-27 10:20:54.639] [INFO] possibly new suite: c:\projects\one-game-sdk\build\tests\Debug\tests.ilk
[2020-07-27 10:20:54.639] [INFO] watcher event: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog
[2020-07-27 10:20:54.640] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\Debug\tests.pdb reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\Debug\tests.pdb
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:54.640] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\Debug\tests.ilk reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\Debug\tests.ilk
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:54.713] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at runNextTicks (internal/process/task_queues.js:58:5)
at listOnTimeout (internal/timers.js:501:9)
at processTimers (internal/timers.js:475:7)
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:54.715] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:54.766] [INFO] reloadTests Catch2 Promise { { major: 2, _minor: 12, _patch: 2 } } c:\projects\one-game-sdk\build\tests\Debug\tests.exe
[2020-07-27 10:20:54.767] [INFO] discovering tests c:\projects\one-game-sdk\build\tests\Debug\tests.exe [
'[.],*',
'--verbosity',
'high',
'--list-tests',
'--use-colour',
'no'
] c:\projects\one-game-sdk\build\tests\Debug
[2020-07-27 10:20:54.778] [INFO] watcher event: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate
[2020-07-27 10:20:54.817] [INFO] testGrouping {
testName: 'NEW',
testNameAsId: 'NEW',
file: 'C:\\projects\\one-game-sdk\\tests\\unit\\factorial.cpp',
tags: []
} { groupByExecutable: { label: undefined, description: undefined } };
[2020-07-27 10:20:54.818] [DEBUG] problem under reloading {
reason: [TypeError: t.update is not a function
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:35011
at l._createSubtreeAndAddTest (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:81014)
at l._reloadFromString (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:34879)
at l._reloadChildren (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:37192)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:82991
at async e.ExecutableConfig._recursiveHandleRunnable (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27802)],
filePath: 'c:\\projects\\one-game-sdk\\build\\tests\\Debug\\tests.exe',
runnable: l {
_shared: {
log: o {
configSection: 'testMate.cpp.log',
workspaceFolder: undefined,
outputChannelName: 'C++ TestMate',
inspectOptions: [Object],
includeLocation: false,
targets: [Array],
nextInspectOptions: undefined,
configChangeSubscription: [Object]
},
workspaceFolder: { uri: [h], name: 'one-game-sdk', index: 0 },
loadWithTask: [AsyncFunction],
sendRetireEvent: [Function],
sendTestRunEvent: [Function],
sendTestEvents: [Function],
executeTask: [Function],
varToValue: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object]
],
rngSeed: null,
execWatchTimeout: 10000,
retireDebounceTime: 1000,
_execRunningTimeout: 600000,
execParsingTimeout: 5000,
isNoThrow: false,
enabledTestListCaching: false,
enabledStrictPattern: null,
googleTestTreatGMockWarningAs: 'nothing',
googleTestGMockVerbose: 'default',
_execRunningTimeoutChangeEmitter: l {
_disposed: false,
_options: undefined,
_leakageMon: undefined,
_event: [Function]
},
onDidChangeExecRunningTimeout: [Function],
taskPool: { _maxTaskCount: 1, _runningTaskCount: 0, _waitingTasks: [] }
},
_rootSuite: s {
_shared: {
log: [o],
workspaceFolder: [Object],
loadWithTask: [AsyncFunction],
sendRetireEvent: [Function],
sendTestRunEvent: [Function],
sendTestEvents: [Function],
executeTask: [Function],
varToValue: [Array],
rngSeed: null,
execWatchTimeout: 10000,
retireDebounceTime: 1000,
_execRunningTimeout: 600000,
execParsingTimeout: 5000,
isNoThrow: false,
enabledTestListCaching: false,
enabledStrictPattern: null,
googleTestTreatGMockWarningAs: 'nothing',
googleTestGMockVerbose: 'default',
_execRunningTimeoutChangeEmitter: [l],
onDidChangeExecRunningTimeout: [Function],
taskPool: [Object]
},
parent: undefined,
_label: 'C++ TestMate',
_descriptionBase: '',
_tooltipBase: '',
type: 'suite',
debuggable: false,
children: [ [o] ],
_runningCounter: 0,
_additionalDesciption: '',
_additionalTooltip: '',
_file: null,
_line: null,
errored: undefined,
message: undefined,
id: '1',
_executables: [ [Object] ],
_cancellationTokenSource: { _token: undefined, _parentListener: undefined },
_runningPromise: Promise { undefined },
_runningPromiseResolver: [Function]
},
properties: {
name: undefined,
description: undefined,
varToValue: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object]
],
path: 'c:\\projects\\one-game-sdk\\build\\tests\\Debug\\tests.exe',
options: {
cwd: 'c:\\projects\\one-game-sdk\\build\\tests\\Debug',
env: [Object]
},
_frameworkSpecific: {},
runTask: { before: [], beforeEach: [], after: [], afterEach: [] },
parallelizationPool: { _maxTaskCount: 1, _runningTaskCount: 0, _waitingTasks: [] }
},
frameworkName: 'Catch2',
frameworkVersion: Promise { { major: 2, _minor: 12, _patch: 2 } },
_lastReloadTime: 1595845254509.6472,
_tests: Set {
{
_shared: [Object],
runnable: [Circular],
parent: [o],
type: 'test',
debuggable: true,
_label: '⚡️ Unexpected ERROR while parsing',
_additionalDesciption: '',
_additionalTooltip: '',
_skipped: true,
_tags: [],
_testDescription: '⚡️ Run me for details ⚡️',
_typeParam: undefined,
_valueParam: undefined,
_file: undefined,
_line: undefined,
_reverseRoute: undefined,
id: '7',
testNameAsId: '⚡️ Unexpected ERROR while parsing',
_staticEvent: [Object]
}
},
_catch2Version: { major: 2, _minor: 12, _patch: 2 }
}
}
[2020-07-27 10:20:55.345] [INFO] reloadTests Catch2 Promise { { major: 2, _minor: 12, _patch: 2 } } c:\projects\one-game-sdk\build\tests\Debug\tests.exe
[2020-07-27 10:20:55.346] [DEBUG] reloadTests was skipped due to mtime c:\projects\one-game-sdk\build\tests\Debug\tests.exe
[2020-07-27 10:20:55.680] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\Debug\tests.pdb reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\Debug\tests.pdb
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at runNextTicks (internal/process/task_queues.js:58:5)
at listOnTimeout (internal/timers.js:501:9)
at processTimers (internal/timers.js:475:7)
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:55.681] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\Debug\tests.ilk reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\Debug\tests.ilk
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:56.742] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at runNextTicks (internal/process/task_queues.js:58:5)
at listOnTimeout (internal/timers.js:501:9)
at processTimers (internal/timers.js:475:7)
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:56.742] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\tests.dir\Debug\tests.tlog\tests.lastbuildstate
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:57.711] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\Debug\tests.pdb reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\Debug\tests.pdb
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at runNextTicks (internal/process/task_queues.js:58:5)
at listOnTimeout (internal/timers.js:501:9)
at processTimers (internal/timers.js:475:7)
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
[2020-07-27 10:20:57.712] [DEBUG] _recursiveHandleFile: other error... c:\projects\one-game-sdk\build\tests\Debug\tests.ilk reson: [Error: Not a native executable extension on win32: c:\projects\one-game-sdk\build\tests\Debug\tests.ilk
at Object.e.isNativeExecutableAsync (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:1:29751)
at c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:29426
at async e.ExecutableConfig._recursiveHandleFile (c:\Users\elive\.vscode\extensions\matepek.vscode-catch2-test-adapter-3.2.12\out\dist\main.js:65:27014)]
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Tests not running in Test Explorer - visual studio
All tests are running, all tests are showing the right test outcome. However, the tests are not running when using the Visual Studio...
Read more >Xcode fails to discover tests, missing gutter test diamonds
I went the Xcode Navigator by command-6. Seeing all of my tests listed there, but grayed out, I simply did a control-click on...
Read more >Why Maven Doesn't Find JUnit Tests to Run - Baeldung
A practical guide to solving Maven test running issues. ... There are a variety of reasons why Maven might not find JUnit tests...
Read more >How to Fix Flaky Tests - Semaphore CI
You may be thinking that if a test fails randomly, you can game the system by retrying it until it passes. If this...
Read more >Testing Python in Visual Studio Code
This characteristic means that you can run unit tests early and often. ... Configure Python Tests button displayed in the Test Explorer when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@matepek FYI today my tests are showing in WSL2, for the first time ever. I haven’t done anything other than regular VSCode updates.
That error, is not an error: its a
[DEBUG]