Open ssbarnea opened 2 years ago
Hi @ssbarnea ,
It looks like either:
Can you provide the whole debug? It should have something structured like this:
task: Available tasks for this project:
...
task -a -t .../Taskfile.yml
section should be repeated for each found Taskfile.yml like file.Can you provide more information about your environment?
Thanks Iulian
That was the last output on the extension pane, even with debug option enabled. Should I enable another option to get more logging there?
$ which -a task
/opt/homebrew/bin/task
$ task --version
Task version: v3.12.1 (h1:SmYDqaRgt9NOm/ogPaMviwckYCqCjbGek9DKF//5A2g=)
$ uname -a
Darwin m1 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
$ task -a -t Taskfile.yml
task: Available tasks for this project:
* build: Build the project
* code: Forced install of extension in your code instance
* default: Run most commands
* lint: Lint the project
* package: Package extension
* pr: Opens a pull request using gh
* setup: Install dependencies
* test: Run all tests
* test-e2e: Run e2e tests
* test-ui: Run UI tests
The file I used for testing is the same you can find in the https://github.com/ansible/vscode-ansible/pull/511 and it has no includes. On the other hand, I almost always have up to 10 workspaces open in parallel as I work with multiple projects.
Can you open the Developers Tools (Help/Toggle Developer Tools) in VS Code and do a refresh in Taskile Launcher (.../Refresh list of tasks)? Maybe there is an exception happening during the globing and you can see it in Console. Or maybe VS Code kill the extension as it looks it does not start executing the task binary.
That should help you:
console.ts:137 [Extension Host] rejected promise not handled within 1 second: undefined
E @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:473
_invokeHandler @ rpcProtocol.ts:458
_receiveRequest @ rpcProtocol.ts:374
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
fire @ ipc.net.ts:638
_receiveMessage @ ipc.net.ts:958
(anonymous) @ ipc.net.ts:831
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
acceptChunk @ ipc.net.ts:382
(anonymous) @ ipc.net.ts:338
O @ ipc.net.ts:60
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading 'message')
E @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:473
_invokeHandler @ rpcProtocol.ts:458
_receiveRequest @ rpcProtocol.ts:374
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
fire @ ipc.net.ts:638
_receiveMessage @ ipc.net.ts:958
(anonymous) @ ipc.net.ts:831
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
acceptChunk @ ipc.net.ts:382
(anonymous) @ ipc.net.ts:338
O @ ipc.net.ts:60
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read properties of undefined (reading 'message') at /Users/ssbarnea/.vscode/extensions/iulian-radu-at.taskfile-launcher-1.1.3/out/main.js:7:28 at Generator.throw (<anonymous>) at s (/Users/ssbarnea/.vscode/extensions/iulian-radu-at.taskfile-launcher-1.1.3/out/main.js:1:947) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5)
E @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:473
_invokeHandler @ rpcProtocol.ts:458
_receiveRequest @ rpcProtocol.ts:374
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
fire @ ipc.net.ts:638
_receiveMessage @ ipc.net.ts:958
(anonymous) @ ipc.net.ts:831
invoke @ event.ts:575
deliver @ event.ts:779
fire @ event.ts:740
acceptChunk @ ipc.net.ts:382
(anonymous) @ ipc.net.ts:338
O @ ipc.net.ts:60
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199
log.ts:313 ERR Cannot read properties of undefined (reading 'message'): TypeError: Cannot read properties of undefined (reading 'message')
at /Users/ssbarnea/.vscode/extensions/iulian-radu-at.taskfile-launcher-1.1.3/out/main.js:7:28
at Generator.throw (<anonymous>)
at s (/Users/ssbarnea/.vscode/extensions/iulian-radu-at.taskfile-launcher-1.1.3/out/main.js:1:947)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Hi @ssbarnea,
Sorry for the delayed message and fix. I found the problem and created a new version (1.2.3) which should work. Can you please test it and let me know if it works?
Many thanks, Iulian
I have a
Taskfile.yml
file in one of the opened workspaces but this extension seems to not be able to find it.After activating debug log I was able to only get some logs confirming that the taskfiles were found, but no explanation why nothing was listed in the sidepanel.