Author Topic: Where could I add option to disable auto compiler detection?  (Read 357 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6359
    • My Best Post
Where could I add option to disable auto compiler detection?
« on: October 06, 2018, 02:57:59 am »
Where could I add option to disable auto compiler detection?

I am thinking a check box that defaults to checked in
Setting -> Environment
Inside the "On Application Start-up" box/area

Is there a better place?

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5108
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Where could I add option to disable auto compiler detection?
« Reply #1 on: October 06, 2018, 03:42:28 am »
If it belongs to compiler plugin, is it possible to put in the compiler setting dialog? (in Menu->Settings->Compiler)
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 stahta01

  • Lives here!
  • ****
  • Posts: 6359
    • My Best Post
Re: Where could I add option to disable auto compiler detection?
« Reply #2 on: October 06, 2018, 05:28:53 am »
If it belongs to compiler plugin, is it possible to put in the compiler setting dialog? (in Menu->Settings->Compiler)

Do you mean adding another icon in the left hand box the holds "Batch Builds" and "Global Compiler Settings"?
Or do you mean somewhere in the "Global Compiler Settings"?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11197
    • Travis build status
Re: Where could I add option to disable auto compiler detection?
« Reply #3 on: October 06, 2018, 06:58:16 am »
Why do you want to do it in the first place?
(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: 6359
    • My Best Post
Re: Where could I add option to disable auto compiler detection?
« Reply #4 on: October 06, 2018, 07:15:36 am »
Why do you want to do it in the first place?

I dislike the feature and wish to submit a patch to allow a person to disable it.

I currently have a project that stores the CB config used with in an git repo; and, the config changes differently on both of the Windows computer I use it on.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11197
    • Travis build status
Re: Where could I add option to disable auto compiler detection?
« Reply #5 on: October 07, 2018, 12:42:10 am »
I dislike the feature and wish to submit a patch to allow a person to disable it.
Not sure this is a valid reason to introduce more options.
Storing config files is not a good idea!
(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 BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2062
Re: Where could I add option to disable auto compiler detection?
« Reply #6 on: October 07, 2018, 09:22:26 am »
Quote
Not sure this is a valid reason to introduce more options.
What is it with your obsession about configuration options? Options are userfriendly...

I see the reason for such a option....
How about no UI and only a line in the config file? Advanced user can modify the config file and there is no entry that clutters the UI. The code changes are minimal (probably 2 lines?).
I have no idea where such a option should go... There is no "general compiler" options entry in any UI...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11197
    • Travis build status
Re: Where could I add option to disable auto compiler detection?
« Reply #7 on: October 07, 2018, 10:55:14 am »
What is it with your obsession about configuration options?
I, as a user, don't want to tweak stuff. I want it to work out-of-the-box.
Also maintaining is easier if there are smaller number of different code paths.

Options are userfriendly...
No they are not. They are unfriendly and a competing project with less options would be considered user friendlier.

Hidden options are even less useful, because they will be used only by the person who requested them. So the added maintenance cost is less justified.
(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 BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2062
Re: Where could I add option to disable auto compiler detection?
« Reply #8 on: October 08, 2018, 10:59:15 am »
Quote
I, as a user, don't want to tweak stuff. I want it to work out-of-the-box.
For this you have to set reasonable defaults. But don't degrade ALL user to an blob of incapable noobs, and cripple the software to exactly one predefined path...

i see the maintaining point, but not for things that are literally one or two lines of code that make no branches.

this will be my last post to the settings topic, i know your point, and you know mine and i don't think we come to one point ;)