-
Notifications
You must be signed in to change notification settings - Fork 115
Incorrect background job status #25
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
Comments
I will inspect it. Do you have any clue to reproduce it ? Could you see the "[Finished in xxx seconds]" in the quickfix window when vim got stuck ? |
Does ":AsyncStop!" help (AsyncStop with a "!" ) ? |
The latest MacVim includes only 8.0.124. |
I am not doing anything special. I have a command run on every document save. After a while the problem appears. It is possible that at some point MacVim stopped responding to input and I had to Ctrl+C a few times it which got it unstuck but that maybe prevents some state cleanup. No I don't see the message in quickfix window. I built MacVim myself applying patches from upstream also (all scripted away). So usually have newer versions that officially available MacVim build. BTW, if you build directly from head, it is at 134 already as of a few days ago ( https://github.com/macvim-dev/macvim/commits/master ) without any manual patching needed. I'll try |
I have this same problem and it's starting to make me a little crazy. I use this plugin to run a build script so that I can quickly compile the code I'm editing. I just updated the plugin today and the frequency of the jobs getting stuck has gone up. I tried My build command is: I'm using vim 8.0 with patches 1-606 on Windows 7. I built it myself. |
I also have another command that sometimes triggers this bug:
I wonder if the -save=2 flag is the culprit. I'm going to remove it for a bit and see if that helps. |
I noticed that if I get into the stuck state and then try to reload my vimrc using Followed by these two errors repeatedly until I close vim
|
don't press ctrl-c |
Can you please be more specific? I don't recall pressing ctrl-c at any point when experiencing the stuck job state I described above. |
@skywind3000 I have the same issue on Ubuntu16.04, vim 8.0.14.18 (complied today). For instance, the following command works fine and can be repeated as many time as I want: However, the second execution of the follwing command will trigger the error "ERROR: background job is still running": Do you know what that could be ? Antoine |
sorry, it can't be reproduced on my debian / cygwin and mac os x. |
Thanks for the quick response.
Also, you have to add copen | to trigger the issue: Running that command will trigger autocmd system("sleep 1"), echo foo finishes first, hence the bug. I hope this help, |
|
@skywind3000 , do you have any news about this bug ? |
I have changed the order of some variable assigment for better state handling. Please update. |
This issue seems to be fixed by #92 and should be closed now. If you still encounter this error, you can reopen it. |
Your latest commit has been tested and works as well. |
Thanks so much @antoinemadec, you rock! And thanks @skywind3000 for the awesome plugin. |
I still have this issue, just install the Asyncrun today.
Seems Just happened when edit vimrc file how to solve this? nvim v0.4.4 |
Same here. My issue happens if I reload my init.vim file while in vim: This is my AsyncRun command in my init.vim: Thanks for the help! |
Sometimes
AsyncRun
gets stuck thinking the background job is still running and won't allow further runs of the job.Verified that the process ran isn't running.
AsyncStop
doesn't seem to help.MacVim 8.0.134
The text was updated successfully, but these errors were encountered: