News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Output parsing with localized compiler/preprocessor messages

Started by matioupi, July 19, 2008, 11:01:08 AM

Previous topic - Next topic

matioupi

Hello,

I'm a french user of Code::Block with Gcc compiler (Mingw / Linuw and Apple versions)

I had an issue with the localized outputs of the compiler that where parsed as an error even for simple warnings.
I corrected this behaviour by adding appropriate filters to the Settings / Compiler / Advanced settings / output parsing options...
Just copying the english filters and changing [Ww]arning and [Ee]rror by [Aa]ttention and [Eerreur]
I also modified for adding an optionnal space between the word and the column :
[Ww]arning:[ \t] -> [Ww]arning[ \t]:[ \t] which also fixed some wrong interpretations...

Maybe this can help other users... And maybe the main localized messages could be added by default for next release...
I don't think we can relly on the (to come ?) localized information to set this because of the great variety of configurations (localized Code::Blocks with unlocalized compiler )

By the way another nice feature would be to enable to set the color of the parde mesage in the output window (I did not found how to do it...)

Regards,

Mathieu
--
http://www.incub.net/
--
[url="http://www.incub.net/"]http://www.incub.net/[/url]

dje

Hi !

To be a little more portable, you could try something like
Quote(?:[Ww]arning|[Aa]ttention)
to support both French and English outputs. Note that I don't know if it works with the regular expression type used for compiler output...

Dje