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 » Mon May 13, 2013 11:31 am

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

Jarod42
CodeLite Expert
Posts: 190
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 » Mon May 13, 2013 1:49 pm

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 » Tue May 14, 2013 8:31 am

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

Regards,
Fred

User avatar
eranif
CodeLite Plugin
Posts: 6110
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 » Tue May 14, 2013 8:54 am

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 » Tue May 14, 2013 12:08 pm

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 » Wed May 29, 2013 12:05 pm

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