Build error summary misleading for rc errors

General questions regarding the usage of CodeLite
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Build error summary misleading for rc errors

Post by Fred »

Hello,
it's not important, but only a little bit misleading:
If an error occurs compiling the rc file, this is of course reported in the build log, but not in the last line.
Sample from a build log:
...
windres -i "C:/tests/CodeLite/FFT/main.rc" -o ./Release/main.rc.o
windres: C:/tests/CodeLite/FFT/main.rc:59: syntax error
mingw32-make.exe[1]: *** [Release/main.rc.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
fft1.mk:151: recipe for target `Release/main.rc.o' failed
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `C:/tests/CodeLite/FFT'
fft_wsp.mk:4: recipe for target `All' failed
[No errors found] : 0 errors, 0 warnings

The last line shows the green label [No errors found] and says 0 errors, though the build failed.

TIA,
Fred
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Build error summary misleading for rc errors

Post by Jarod42 »

You may add error pattern in
Settings... -> Build settings...

something like:(untested)
^windres: ([a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+) *:([0-9]+): syntax error
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build error summary misleading for rc errors

Post by Fred »

Thank you, Jarod!
This works.
I suggest to add this error pattern to the default settings.

Regards,
Fred
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build error summary misleading for rc errors

Post by eranif »

Fred wrote:I suggest to add this error pattern to the default settings.
Done

Eran
Make sure you have read the HOW TO POST thread
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build error summary misleading for rc errors

Post by Fred »

Wow, this is fast updating.
Thanks, Eran.

Fred
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build error summary misleading for rc errors

Post by Fred »

Hello,
sorry to bother you again with this topic.
I had another problem of this type:

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f "fftw2d_wsp.mk""
"----------Building project:[ fftw2d - Debug ]----------"
mingw32-make.exe[1]: Entering directory `C:/tests/CodeLite/FFTW2D'
mingw32-make.exe[1]: *** No rule to make target `editout.cpp', needed by `Debug/editout.o'. Stop.
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `C:/tests/CodeLite/FFTW2D'
fftw2d_wsp.mk:4: recipe for target `All' failed
[No errors found] : 0 errors, 0 warnings

The cause of the error
*** No rule to make target `editout.cpp'
was that this unused file was deleted from the directory, but I forgot to remove it from the project.
(Yes, I know, I had better removed it from the directory using its CodeLite context menu.)

What string can I search for with the regex to recognize this as an error?

TIA,
Fred
Post Reply