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

How to check if the task was successful? #105

Open
jclsn opened this issue Mar 30, 2023 · 5 comments
Open

How to check if the task was successful? #105

jclsn opened this issue Mar 30, 2023 · 5 comments

Comments

@jclsn
Copy link

jclsn commented Mar 30, 2023

I would like to run a command after a task was run successfully. Is there a way?

@skywind3000
Copy link
Owner

@jclsn
Copy link
Author

jclsn commented Apr 3, 2023

Yeah that works, but how can I now start the debugger afterwards? I would like to use the task as a pre-launch task for Vimspector, that only starts debugging if the :Make command was successful. I have tried to use notify=:call vimspector#Launch() but it doesn't work.

@jclsn
Copy link
Author

jclsn commented Apr 18, 2023

Any solution to this? I would like to add Async Tasks to the pre-launch strategies for Vimspector as an alternative to dispatch.vim, but for that I need the return value.

@skywind3000
Copy link
Owner

what is your task configuration ?

@jclsn
Copy link
Author

jclsn commented Apr 20, 2023

I just realized that I was still using dispatch.vim's :Make as building command. Anyway, it should not matter. I just need a way to determine if a command was successful. If asynctasks.vim has no influence on what the command returns, which I am assuming, this is pointless to try I guess.

Anyway, this is what I was trying

[.build-and-debug]
command=Make
silent=1
notify=:call vimspector#Launch()

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