Author Topic: Switching "Full compiler log" to On by default?  (Read 14879 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Switching "Full compiler log" to On by default?
« on: May 05, 2012, 10:32:22 pm »
I want to make the change, in order to save lots of support round trips like:

Case1:
Quote
user: my project doesn't compile
support: paste the full log
user: pastes the short log
support: I said paste the full log, to enable it do 1,2,3
user: pastes the log

Case2:
Quote
user: debugging doesn't work - executable doesn't have symbols
support: read on the wiki about the needed options for proper debugging
user: I've already read it, my settings are fine
support: paste the full log for debugger and compiler
user: pastes the wrong logs
support: I said paste the full log, to enable it do 1,2,3
user: pastes the log
support: but you still have -g or -s, even -O2 is there

Anyone against this change must have extremely convincing reason to stop me doing it.
I'm going to do the change in a week or two.

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Switching "Full compiler log" to On by default?
« Reply #1 on: May 06, 2012, 12:08:40 am »
Sounds great.

I was thinking of submitting this one line patch, for the GCC compiler, myself.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6079
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Switching "Full compiler log" to On by default?
« Reply #2 on: May 06, 2012, 05:39:03 am »
@OBF
I agree with you, let's set the "full compiler log" by default.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Switching "Full compiler log" to On by default?
« Reply #3 on: May 06, 2012, 09:16:06 am »
good idea, for me it is one of the first thing I do on a new cb install ;-)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: Switching "Full compiler log" to On by default?
« Reply #4 on: May 06, 2012, 12:45:10 pm »
Oh yeah.

For all my support clients, I patch CB to make sure Full Logging is *On*, else it wastes hours getting them to turn it on, then recreating their error.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Switching "Full compiler log" to On by default?
« Reply #5 on: May 07, 2012, 08:22:11 pm »
Go ahead. In fact for me its the same like with Pecan. Dunno who set it to "brief" in the first place. Add a tip of today telling how to turn "brief" on in addition.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Switching "Full compiler log" to On by default?
« Reply #7 on: May 18, 2012, 01:35:42 pm »
Something like this: http://cmpt.benbmp.org/codeblocks/patches/full_compiler_logging.patch ?
Oh dear, I forgot that its need to be done for every compiler... but yes, that's about it.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Switching "Full compiler log" to On by default?
« Reply #8 on: May 18, 2012, 01:43:09 pm »
Is there any particular reason that some compilers used full, some none and some simple?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Switching "Full compiler log" to On by default?
« Reply #9 on: May 18, 2012, 01:45:12 pm »
The tip of day needs to be corrected in your patch, because someone ;) changed the Settings submenu layout and there is no "Compiler and debugger" menuentry anymore.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Switching "Full compiler log" to On by default?
« Reply #10 on: May 18, 2012, 02:39:45 pm »
OK, this someone was me :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Switching "Full compiler log" to On by default?
« Reply #11 on: May 18, 2012, 06:40:13 pm »
Is there any particular reason that some compilers used full, some none and some simple?
Nope. All should use "full" initially. What compilers do you mean where it is different?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Switching "Full compiler log" to On by default?
« Reply #12 on: May 18, 2012, 11:43:45 pm »
Search for the enum values and you'll see what a mess it is at the moment...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Switching "Full compiler log" to On by default?
« Reply #13 on: May 19, 2012, 12:04:07 am »
In svn...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]