Author Topic: "Build Messages" pane functionality  (Read 5495 times)

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
"Build Messages" pane functionality
« on: December 12, 2008, 11:59:47 pm »
The Build Messages pane has some nice functionality.

I like that some program's output (the compiler's) gets filtered through some regexes, optionally color coded, and you can click the results to jump to certain spots in your code.

It's useful enough that I've created a "fake" compiler that runs Lint on my code.  That same functionality of regex-matching the output so I can click my way to pertinent parts of my code.

Python will also output messages about certain spots in code.  So I've also made a fake compiler for running python.

The results I'm getting are great, but it's clearly a hack.  I'm wondering, am I doing this the smartest way?  Is there some feature of Code::Blocks that can do something similar that I've simply never noticed?  It would be nice if my compiler features didn't lock whenever I'm doing something else that uses clickable output.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5295
Re: "Build Messages" pane functionality
« Reply #1 on: December 13, 2008, 04:15:11 pm »
I think this is currently the way to go.

Another way, could be a post build step, and you issue your warnings/errors in the gcc format.
That's what i do with for example a unit test framework.