Page 1 of 1

Build error summary misleading for rc errors

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

Re: Build error summary misleading for rc errors

Posted: Mon May 13, 2013 1:49 pm
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

Re: Build error summary misleading for rc errors

Posted: Tue May 14, 2013 8:31 am
by Fred
Thank you, Jarod!
This works.
I suggest to add this error pattern to the default settings.

Regards,
Fred

Re: Build error summary misleading for rc errors

Posted: Tue May 14, 2013 8:54 am
by eranif
Fred wrote:I suggest to add this error pattern to the default settings.
Done

Eran

Re: Build error summary misleading for rc errors

Posted: Tue May 14, 2013 12:08 pm
by Fred
Wow, this is fast updating.
Thanks, Eran.

Fred

Re: Build error summary misleading for rc errors

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