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

gvim: Asynchronuous compilation with callback #47

Closed
lervag opened this issue Aug 5, 2013 · 1 comment
Closed

gvim: Asynchronuous compilation with callback #47

lervag opened this issue Aug 5, 2013 · 1 comment

Comments

@lervag
Copy link

lervag commented Aug 5, 2013

Hi,

I'm using dispatch with gvim on a Linux machine. As far as I can tell, the only way to get asynchronuous compilation is to use :Make! or :Dispatch!, which sets request.background = 1. In this case, the callback that opens the error window is disabled (line 409 of dispatch.vim), which also disables the QuickFixCmdPost cgetfile autocommand group. If I understand #40 corretly, the reason is that dispatch#complete(...) is not called when dispatch uses tmux in background mode, and so the API becomes nonconsistent.

This means that at the moment, there is no way to get a good asynchronuous compilation in gvim (or macvim, I guess?) that also has a callback (either custom or with the quickfix window).

We are currently investigating whether or not to use vim-dispatch for Latex compilation in LaTeX-Box, see LaTeX-Box#106. It seems like this particular issue is the only thing that is stopping us.

Is there a way to add custom callbacks that also work when request.background = 1, that would also work with tmux (and iterm and in windows)?

@tpope
Copy link
Owner

tpope commented Mar 30, 2014

Centralizing discussion in #48.

@tpope tpope closed this as completed Mar 30, 2014
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