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

Panel opened but is empty #1

Open
ssbarnea opened this issue Jun 1, 2022 · 5 comments
Open

Panel opened but is empty #1

ssbarnea opened this issue Jun 1, 2022 · 5 comments

Comments

@ssbarnea
Copy link

ssbarnea commented Jun 1, 2022

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.

Glob '/Users/ssbarnea/c/a/ansible-language-server/Taskfile.yml' found '/Users/ssbarnea/c/a/ansible-language-server/Taskfile.yml'
Glob '/Users/ssbarnea/c/a/vscode-ansible/Taskfile.yml' found '/Users/ssbarnea/c/a/vscode-ansible/Taskfile.yml'

@iulianraduat
Copy link
Owner

Hi @ssbarnea ,

It looks like either:

  • the task binary is not executed
  • or is executed in the wrong folder
  • or the task says there are no tasks defined
  • or the output from running task does not match the expected output

Can you provide the whole debug? It should have something structured like this:

  • Declared globs for Taskfile.yml like files:
  • Glob '...' found '...'
  • task -a -t .../Taskfile.yml
  • task: Available tasks for this project:

  • ...

  • Detected tasks:
  • < ...
    The task -a -t .../Taskfile.yml section should be repeated for each found Taskfile.yml like file.

Can you provide more information about your environment?

  • OS name and version
  • version of task binary and were it is installed
  • if your Taskfile.yml have all the tasks defined in them or are they including tasks from other Taskfile.yml or other files

Thanks
Iulian

@ssbarnea
Copy link
Author

ssbarnea commented Jun 2, 2022

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 ansible/vscode-ansible#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.

@iulianraduat
Copy link
Owner

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.

@ssbarnea
Copy link
Author

ssbarnea commented Jun 2, 2022

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)

@iulianraduat
Copy link
Owner

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

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