Error parsing for Custom Build project

CodeLite installation/troubleshooting forum
xkyve
CodeLite Curious
Posts: 5
Joined: Tue Jun 23, 2015 4:21 pm
Genuine User: Yes
IDE Question: C++
Contact:

Error parsing for Custom Build project

Post by xkyve »

I have a Custom Build project with a dummy compiler (cloned from gcc) I manually added with the following patterns:

Code: Select all

Compiler Errors Patterns:
\"(.+?)\", line (\d+): error #(.+?):(.*)
\"(.+?)\", line (\d+): fatal error #(.+?):(.*)

Compiler Warnings Patterns:
\"(.+?)\", line (\d+): warning #(.+?):(.*)
My build output looks like this after running my external script (batch file) - this is a Greenhills compiler output:

Code: Select all

------------------------------------------------------
 -> M O D U L E : [30_Basis_SW/20_CplxDrv/60_SENT/src]
 --------------------------------------------------------------
[SentDrv.c]
[33m
"../../../30_Basis_SW/20_CplxDrv/60_SENT/src/SentDrv.c", line 540: error #20: identifier "SentDrv_State_en" is undefined
  	return SentDrv_State_en;
  	       ^

"../../../30_Basis_SW/20_CplxDrv/60_SENT/src/SentDrv.c", line 545: error #20: identifier "SentDrv_State_en" is undefined
  	SentDrv_State_en = state;
  	^

"../../../30_Basis_SW/20_CplxDrv/60_SENT/src/SentDrv.c", line 104: warning #177-D: variable "SentDrvv_State_en" was declared but never referenced
  static SentDrv_State_t SentDrvv_State_en = SENTDRV_UNINIT;
                         ^

Makefile_Modules.mk:441: recipe for target `../../../10_Build/Results/Objects/SentDrv.o' failed
make: *** [../../../10_Build/Results/Objects/SentDrv.o] Error 1
===============================================================================
-                          . . . D O N E                                      -
===============================================================================
0 errors, 0 warnings
The problem is my errors are not highlighted and I can't double click the error to take me to the specific line.
What should I do next?
You do not have the required permissions to view the files attached to this post.
xkyve
CodeLite Curious
Posts: 5
Joined: Tue Jun 23, 2015 4:21 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error parsing for Custom Build project

Post by xkyve »

Managed to get it to work with the following regex:

Code: Select all

\"(.+)\", line ([0-9]+): fatal error #(.+):(.+)
\"(.+)\", line ([0-9]+): error #(.+):(.+)
\[elxr\] \(error\) \"(.+)\", line ([0-9]+): (.+)

\"(.+)\", line ([0-9]+): warning #(.+):(.+)
Post Reply