Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Multi-Line RegEx Error Parser(Is there a Multi-Line RegEx Error Parser for Eclipse CDT 7)
Multi-Line RegEx Error Parser [message #677307] Wed, 08 June 2011 06:24 Go to next message
Sebastian Baier is currently offline Sebastian Baier
Messages: 5
Registered: June 2011
Junior Member
Hello everybody,

nowadays i try to get eclipse to work with the Renesas nc100 over a GNUMake file. It works fine for now but the nc100 compiler is griving multi-line error/warning messages. Is there a possibility to recognize multi-line compiler messages for the build-in regex error parser in CDT 7? Or is there another regex parser which supports multi-line messages for eclipse cdt?

Greetings
Sebastian
Re: Multi-Line RegEx Error Parser [message #677685 is a reply to message #677307] Thu, 09 June 2011 07:00 Go to previous messageGo to next message
Dirk Wibben is currently offline Dirk Wibben
Messages: 50
Registered: February 2010
Member
Hello Sebastian,

I have had a similar problem with a NEC compiler (NEC is now Renesas). The compiler is developed by IAR.
The solution for me was to 'tell' the compiler to NOT wrap a message.
This is done with the following compiler option:

--no_wrap_diagnostics

Hope that helps.


Regards
Dirk


Best regards
Dirk
Re: Multi-Line RegEx Error Parser [message #684238 is a reply to message #677307] Wed, 15 June 2011 09:22 Go to previous messageGo to next message
Sebastian Baier is currently offline Sebastian Baier
Messages: 5
Registered: June 2011
Junior Member
Hi Dirk,

thanks for the help, but we are using the Renesas NC100 Compiler. I will search for a simillar option.

But should not there be a posibility for eclipse to register multiline error messages?

Greetings
Sebastian
Re: Multi-Line RegEx Error Parser [message #1219790 is a reply to message #677307] Thu, 05 December 2013 19:38 Go to previous messageGo to next message
Ron W is currently offline Ron W
Messages: 2
Registered: December 2013
Junior Member
Hello,

Conveniently, I too am using a NEC/Renesas micro and associated compiler.

While the --no_wrap_diagnostics option to the compiler helped, it only affected the actual error message, not any of the additional information the compiler provided. So, a multi-line capable version of RegEx Error Parser would be very helpful.

I am currently using the "Eclipse Kepler for C/C++ Developpers" package, "Service Release 1". (GCC support 1.2.0.201309180223, C/C++ Dev Tools 8.2.1.201309180223)
Re: Multi-Line RegEx Error Parser [message #1219814 is a reply to message #1219790] Thu, 05 December 2013 22:48 Go to previous messageGo to next message
Klaus Mr is currently offline Klaus Mr
Messages: 117
Registered: November 2011
Senior Member
Quote:

I am currently using the "Eclipse Kepler for C/C++ Developpers" package


Did you try to change the error parser? I'm not sure if multi line parsing will work well, but you could try to adopt the error parser rules in:

Window -> Preferences -> C/C++ -> Build -> Settings -> Error Parsers

regards,
Klaus


Re: Multi-Line RegEx Error Parser [message #1219819 is a reply to message #1219814] Fri, 06 December 2013 00:14 Go to previous message
Ron W is currently offline Ron W
Messages: 2
Registered: December 2013
Junior Member
Hi and thanks.

I tried adding \Z to the pattern: "(.*)",\s*line\s*(\d+):\s*(error.*)\Z

Then I tried: "(.*)",\s*line\s*(\d+):\s*(error.*)$(.*)\Z

Then: "(.*)",\s*line\s*(\d+):\s*(error.*)$(.*)

Each time, I adjusted the description field to show either or both of $3 and $4.

None of these picked up any of the additional lines, only the information from the first line.
Previous Topic:Eclipse CDT+PTP -> No completions available
Next Topic:Debugging JNI with MinGW & GDB
Goto Forum:
  


Current Time: Thu Oct 23 09:02:01 GMT 2014

Powered by FUDForum. Page generated in 0.18030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software