|Error Parser Issue [message #1838976]
||Wed, 10 March 2021 17:34
| Missing name Mising name
Registered: September 2010
I'm a little embarrassed that I can't solve my issue.|
I've been supporting Eclipse for our software group since Juno.
I've looked through old posts for a possible solution. I thought I had found one, the solution was to change a compiler switch to alter the compiler output message format to a single line.
I've looked through the Green Hills v3.5 compiler manual & didn't find a similar switch. :(
So, I'm left with trying to parse a multi-line message.
16:29:59 **** Incremental Build of configuration Default for project rel ****
"W:\\SoftwareDevTools\\_GenUse\\ghs_cfg.bat" && y:/ghs/ppc35/build.exe vb_io_default.bld vb_io3.bld
Compiling C:\SoftwareDev\FirmDev\emc110\OSS\C-2268-xxxx_wip\ccpid_io3.c because "ccpid_io3.o" doesn't exist
"C:\SoftwareDev\FirmDev\emc110\OSS\C-2268-xxxx_wip\ccpid_io3.c", line 93: error:
expected a ";"
const UINT8 ccpStationId = CCPID_IO3; /* Also serves as version ID */
I've tried the regex expressions "\"(.*?)\", line (\\d+):" & "(.*?)", line (\d+): , plus many other variants.
Is there relatively painless way to trace the error parser code to determine what it doesn't like.
Thanks in advance taking the time read this post.
Major System Configuration:
Windows 7 64-bit
Eclipse IDE for C/C++ Developers
v 4.6.2 (Neon)
v 4.7.3a (Oxygen)
v 4.8r (Photon)
|Re: Error Parser Issue [message #1838998 is a reply to message #1838979]
||Thu, 11 March 2021 08:00
Registered: October 2012
FWIW: in the editor, \"(.*?)\",\s*line\s(\d+):\s*error:\s*(.+) will match the last two lines.|
with $1=file $2=line $3=error
Not sure how the last part stops at a newline.
You may actually need: \"(.*?)\",\s*line\s(\d+):\s*error:\s*(.+?)\n
I think the regex used is from Java.
You may need to precede it with ?s to enable treating multilines as a single line.
but the one I gave here works in the editor.
You may also have to use double slashes for a single slash but none of the default parsers do.
OTOH, maybe yours failed because of the double slash in line (\\d+):
Also, spaces may be ignored. Use \s instead.
[Updated on: Thu, 11 March 2021 09:16]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02330 seconds