Friday, June 15, 2012

Re: VIM 7.2/7.3 on Win32: QuickFix does jump to line with error in C/C++/ASM, but not in Pascal

On 15 Jun 2012 at 7:53, Jürgen Krämer wrote:
> >
> > VIM now says this:
> >
> > "TEST.PAS(1)^MTEST.PAS(1)^MTEST.PAS" [access denied]
> > (3/5) error 36: BEGIN expected.
>
> while compiling Borland's command-line compiler outputs the current file
> and the number of source lines already processed as status information.
> To reduce the number of status lines needed for one file the second and
> all further status lines are started with a carriage return. This puts
> the cursor at the start of line and the following status text overwrites
> the previous one. When a new unit is opened for compiling a new line is
> started.
>
Yeees! Thanks for your explanation :-)
I did have short glitches of thought in that direction, but somehow
my attention span wasn't enough to follow up all the way to the
compiler.

> For parsing the output for Vim you should first get rid of everything up
> to the last carriage return on a line or -- if the last carriage return
> is part of the line ending -- the second to last one. After that the
> line will start with a file name.
>
Which makes me wonder *how* to get rid of those carriage returns.
The errorformat is not a regex, it's a scanf format.
I could add something like
| sed -e [[toying around with SED in Windows cmdline right now]]
after bcp.exe within the Makefile,
or I could add that in the definition of a ":make" in vim,
or... any better ideas are welcome.
Grr... I see there is a difference between SED regex syntax and
perl-compatible regex syntax...

Anyway, thanks for your help Jürgen :-)

Frank Rysanek

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment