Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing expansions for makeprg and grepprg #35

Open
@raggi

Description

@raggi

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:\ %m

If 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!

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp