Code Monkey home page Code Monkey logo

Comments (6)

tpope avatar tpope commented on May 30, 2024

Oh wow, so unescaped pipes in 'makeprg' "leak out" in to Vimscript? Gross.

This particular example can be rewritten to use if, so I don't consider this high priority. It's legitimate to want to pipe things in 'makeprg' though, so I do want to get this fixed.

from vim-dispatch.

aaronjensen avatar aaronjensen commented on May 30, 2024

Good call. So used to &&/|| for one liners, got tunnel vision. Thanks.

from vim-dispatch.

tpope avatar tpope commented on May 30, 2024

Keep an eye out for other oddities. For example, normally anywhere you can use a |, you can comment with ", but that's not true with 'makeprg'.

from vim-dispatch.

Miesco avatar Miesco commented on May 30, 2024

set makeprg=latexmk\ -gg\ -interaction=nonstopmode\ -file-line-error\ \\\|\ grep\ -P\ ':\\d{1,5}:\ '

I am getting:

  || Latexmk: -P bad option
  || 
  || Latexmk: Bad options specified
  || Use
  ||    latexmk -help
  || to get usage information

Any quick fixes?

from vim-dispatch.

tpope avatar tpope commented on May 30, 2024

Your use of grep suggests what you really want is a proper 'errorformat' that matches the lines in question.

from vim-dispatch.

jpassaro avatar jpassaro commented on May 30, 2024

Similar problem escaping "!" in make arguments. Discovered via ack.vim but reproducible with vim-dispatch alone.

Using ack in command line:

$ ack 'foo (?!==)='
content.txt:1:1:foo = bar

In vim:

:let &makeprg = 'ack -s -H --nopager --nocolor --nogroup --column'
:set errorformat=%f:%l:%c:%m
:make 'foo (?!==)=

With make, quickfix shows the same results as ack in the shell. With Make, the "!" is interpreted as a substitution and the command does not work. It does work with the exclamation mark escaped, though.

from vim-dispatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.