- Notifications
You must be signed in to change notification settings - Fork116
Description
Summary: I have some makeprg's that use vim% expansions. I want both:make and:AsyncRun to work consistently. As such I want to continue to use the % style macros. I would like for asyncrun.vim to support makeprg and grepprg that contain% expansions.
When I use:AsyncRun -program=make, I expect the same output as:make, but instead I get, for examplepackage not found %:h. This is becauseasyncrun#run does not expand% macros.
I have found a partial solution to the same general problem intimbertson/vim-background-make@404905f
I have also locally applied a less complete patch as follows, which covers only my use case (no escaped expansions in my makeprgs), that could also be used as a possible approach:
https://gist.github.com/raggi/3bcbb18183be138f3b24718891921d9b
An example of a makeprg I would like to work:
setlocal makeprg=go\ build\ ./%:h;echo\ package\ %:h;echo;go\ test\ ./%:h
And the corresponding errorformat, demonstrating usage:
setlocal errorformat= \%E%f:%l::%tarning:\ %m, \%E%f:%l:%c:%tarning:\ %m, \%E%f:%l::%trror:\ %m, \%E%f:%l:%c:%trror:\ %m, \%E%f:%l:\ %m, \%Dpackage\ %f, \%E---\ FAIL:\ %m, \%C%f:%l:\ %mIf you would like me to prepare a patch, let me know what your preferred approach will be, and I will add this to my TODO list.
Thanks!