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

Use branch when checking for new commits #15

Closed
wants to merge 7 commits into from

Conversation

thisisrandy
Copy link

This fixes /issues/14 for me (I have coc.nvim checked out from the release branch). Thanks for the very useful plugin.

- Check v:vim_did_enter and call for debugging convenience
There was a lot of strange behavior in vimscript version of this plugin.
The on_stdout callback appeared to be called a variable number of times
before the on_exit callback, most likely indicating a race. I tried
refactoring to call the rev-list command sequentially for each plugin in
an async cascade, but for unknown reasons, stdout was blank for about
half of the calls in my setup.

In python, we can use a comparatively simple synchronous function
wrapped in vim.async_call, so that's what I've done. The plugin now
appears to finally work consistently and as expected. Since
async/job.vim is no longer needed, I've removed that as well.
vim.eval returns a string, whereas we need an int for boolean testing
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

Successfully merging this pull request may close these issues.

Defect. Plugin shows that there is 1 plugin to update
1 participant