how to get an errorformat with full line %m

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

how to get an errorformat with full line %m

Marc Chantreux-3
hello people,

my ftplugin/perl.vim comes with a 'fixed' (works better for me
but i don't know if it can break something to other people).

So first question: is it worth submitting a patch?

version of the compiler/perl.vim from the standard distribution:

    set errorformat=
        \%-G%.%#had\ compilation\ errors.,
        \%-G%.%#syntax\ OK,
        \%+A%.%#\ at\ %f\ line\ %l\\,%.%#,
        \%+C%.%#,
        \%m\ at\ %f\ line\ %l.,

In the version shipped with vim don't work with this error message:

    Odd number of elements in anonymous hash at lib/Node.pm line 46, <DATA> line 1.

because the found filename is "lib/Node.pm line 46, <DATA> " (the
pattern is too greedy) so i just changed the order of matching.

Now the second question (the topic of the mail):

When developping, i also use the Devel::SimpleTrace module to activate
stacktraces in error messages so the previous message becomes:

    Odd number of elements in anonymous hash
    at Node::new(lib/Node.pm line 46, <DATA>:1)
    at Pig::_parse_line(lib/Pig.pm:47)
    at Pig::parse(lib/Pig.pm:58)
    at main::(./ultrasimple.pl:7)

and i would like to make this stack available from my cwindow. alas: the
first line is the whole error message so if i use

        \%+A%m,
        \%+C\tat\ %o(%f:%l)

then \%+A%m  will match any line so breaks the whole thing. I have no
idea how to fix the thing. any help or pointer to an efm with the
similar problem is welcome.

regards,
marc

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YGL80opvyrGnomNz%40prometheus.u-strasbg.fr.