Skip to content

gvim: Asynchronuous compilation with callback #47

Closed
@lervag

Description

@lervag

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions