Questions tagged [errorformat]

39 questions
33
votes
7 answers

Vim errorformat for Visual Studio

I want to use Vim's quickfix features with the output from Visual Studio's devenv build process or msbuild. I've created a batch file called build.bat which executes the devenv build like this: devenv MySln.sln /Build Debug In vim I've pointed the…
Kevin Berridge
  • 6,053
  • 6
  • 38
  • 42
10
votes
1 answer

Vim errorformat

I read the docs, but got even more confused. I have the following error generated by the compiler: rot; ^ "cpp\c1.cpp", line 13: error(114): identifier "rot" is undefined 1 error detected in the compilation of…
Ayman
  • 10,345
  • 13
  • 59
  • 89
9
votes
3 answers

What's the error type for in errorformat for Vim’s quickfix list?

I’m unsure about the %t format specifier in Vim’s quickfix list. How does it affect the behavior/display of the quickfix buffer? I tried to find it out with the following test file: $ cat test.out foo Error 1 foo.h …
Andreas F.
  • 91
  • 2
8
votes
1 answer

How to put cscope output in Vim quickfix window?

I want to redirect output from cscope to Vim quickfix window. The glue part is easy enough, but I currently stuck at errorformat. Here's an example from cscope output (cscope -L -1 bar): Format: "filename scope linenumber sourceline" Example:…
Thanh DK
  • 3,897
  • 3
  • 21
  • 18
8
votes
1 answer

What's the meaning of some advanced patterns in vim errorformat? (%s, %+, %\\@=)

I tried reading :help errorformat and googling (mostly stackoverflow), but can't understand some of the patterns mentioned there: %s - "specifies the text to search for to locate the error line. [...]" um, first of all, trying to understand the…
akavel
  • 4,351
  • 1
  • 31
  • 61
8
votes
1 answer

How to use quickfix in Vim to debug Bash scripts

I use Vim every day to write shell scripts. I have been reading about the quickfix window, and I think it could speed up my productivity in the edit-run-fix cycle. If I understood properly, I have to write my own errorformat function in order to Vim…
Onturenio
  • 651
  • 4
  • 13
7
votes
2 answers

Vim errorformat: include part of expression in message string

With vim's errorformat syntax, is there any way to use part of the message in filtering results? As an example, some linker errors don't have anything explicit to distinguish them as an error on the line, other than the error…
Jeremy Nikolai
  • 285
  • 2
  • 13
6
votes
4 answers

Vim: Error format matches everything

I am trying to match the following error with efm: AssertionError: 1 == 2 at /home/strager/projects/blah/blah.js:13:37 The error message can be anything (i.e. it doesn't always match the AssertionError: .* or .*Error: .* formats). The general…
strager
  • 84,025
  • 24
  • 129
  • 172
5
votes
5 answers

Vim errorformat and jslint

I am trying to get makeprg and errorformat working with VIM and jslint, and can't seem to get the error format right for the life of me... I am using the nodejs version of jslint which produces results like: 1 116,9: The body of a for in should be…
Kris Erickson
  • 32,405
  • 26
  • 113
  • 170
4
votes
1 answer

Vim errorformat: using %D to change directory

I'm struggling to find the right Vim errorformat to use when the current directory is a sibling of the directory with the file with the error. For example: errorformat errorformat/model errorformat/spec Vim's makeprg option is set to execute a file…
Mark Wilden
  • 1,980
  • 14
  • 15
3
votes
2 answers

Multiline errorformat in vim

I'm trying to match on C error messages like this: gmake[1]: Entering directory `/project/swbuild45/ethanl/swfeature_int/pkt' ... sw/se/xc/bsd/routing/rib/src/rib_bfd_thrd.c: In function…
user2414208
  • 332
  • 1
  • 15
3
votes
2 answers

Justifying/aligning errorformat output in Vim

I use Vim/gVim for programming in javascript (node). I have jslint wired up as makeprg in my filetype plugin. Here's errorformat: efm=%-P%f, \%A%>%\\s%\\?#%*\\d\ %m,%Z%.%#Line\ %l\\,\ Pos\ %c, \%-G%f\ is\ OK.,%-Q And here is the…
regretoverflow
  • 1,967
  • 1
  • 21
  • 39
2
votes
1 answer

Setup errorformat for multi line error message produces by ghcide

I'm trying to setup errorformat for ghcide, which produces following output. ghcide version: 0.0.4 (GHC: 8.6.5) Ghcide setup tester in /opt/devel/haskell/haskell-vim-now. Report bugs at https://github.com/digital-asset/ghcide/issues Step 1/6:…
palik
  • 2,009
  • 19
  • 26
2
votes
1 answer

Very long file names in vim errorformats

I've been working on an errorformat for LaTeX with the LaTeXBox plugin for vim, and I have recognized a problem that I am not able to solve. LaTeX produces relatively structured log files, where a Lisp-like paranthesis syntax is used for the parsed…
Karl Yngve Lervåg
  • 1,665
  • 3
  • 17
  • 33
2
votes
1 answer

Vim: Ignore but show pattern with errorformat?

My compiler generates errors on the common file:line:column message format, but my problem is that my test output includes a lot of time strings which matches this pattern. For example: 2013-01-01 01:23:00 Starting test foo Is treated like an error…
Andreas Järliden
  • 1,794
  • 1
  • 16
  • 15
1
2 3