Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Compiler Framework Redesign => Topic started by: rickg22 on May 04, 2011, 11:01:04 pm

Title: Suggestion for the compiler log...
Post by: rickg22 on May 04, 2011, 11:01:04 pm
Hi guys!

I was thinking of a feature that would seem somewhat useful, but it might require a bit of "hacking" with wxWidgets classes (i.e. making new ones).

A foldable compiler log. We know how in the compiler options we can choose what level of detail we show in the compiler, and I thought of this idea:

What if We could choose "in real time" to see the extended log of a specific log line?

i.e.


Code
"No output" = [+] Click here to expand the compilation log

"Task description" =

[-] Compiler log:
     [+] Compiling "file.cpp"...
     [+] Compiling "another_file.cpp"...


"Full command line" =


[-] Compiler log:
     [-] Compiling "file.cpp"...
          gcc -someoption -anotheroption -cxxflag=blahblahblah -o file.o file.cpp
          [+] Errors detected while compiling this file.
     [+] Compiling "another_file.cpp"...


[-] Compiler log:
     [-] Compiling "file.cpp"...
          gcc -someoption -anotheroption -cxxflag=blahblahblah -o file.o file.cpp
          [-] Errors detected while compiling this file.
               WARNING: On file file.cpp, on line NN... <--- this would have a "hyperlink" to point me to the appropriate file. Something like a merge between the compiler messages and the compiler log.
     [+] Compiling "another_file.cpp"...





Same would go for the build messages... sometimes I have to switch between the build messages and the build log to see the details... but I don't think this is quite feasible...

What do you think? (Oh - also, perhaps the buffer could be copied for pasting only at the shown levels... this would be awesome!)
Title: Re: Suggestion for the compiler log...
Post by: oBFusCATed on May 04, 2011, 11:30:12 pm
Do you know a widget, which could be used for this kind of feature?
You need a tree that can word wrap long items.

Also it should be fast, so the compile time won't suffer.
Title: Re: Suggestion for the compiler log...
Post by: rickg22 on May 04, 2011, 11:32:03 pm
Perhaps the compiler log can have two "views"... A simple text one, showing the compilation status, and a complex one that would appear after the compilation has stopped.