Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: matioupi on July 19, 2008, 11:01:08 am

Title: Output parsing with localized compiler/preprocessor messages
Post by: matioupi on July 19, 2008, 11:01:08 am
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/
Title: Re: Output parsing with localized compiler/preprocessor messages
Post by: dje on July 19, 2008, 11:08:23 am
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