Re: [Kicad-developers] Environment variable conundrum.
#1 is the sanest option, it would be nice if there was an indication in the editing dialog that there's a global override when you view/edit them. Something like coloring them red and putting a warning message in the bottom of the dialog like Settings marked in red are currently overridden by externally set environment variables, maybe pointing to an online help topic discussing the issue. On Tue, Mar 24, 2015 at 3:45 AM, jp charras jp.char...@wanadoo.fr wrote: Le 23/03/2015 22:44, Garth Corral a écrit : It seems like option #1 is the saner option. If I’m understanding the change, once the variables are edited they become configuration variables. Typical precedence for configuration is usually something like, command line - environment - local config files - global config files, from highest precedence to lowest, which it seems is kicad’s current behavior. So #1 preserves this at the expense of possible confusion if both are set. To mitigate this confusion, perhaps setting a variable in the dialog that is already set in the environment can pop up an alert and suggest unsetting the environment variable. If a variable is already set both ways when the dialog is invoked, it can provide some visual indication of this, with a way to get an explanation of what it means. Garth I also am thinking the option #1 is the better. On Mar 23, 2015, at 11:36 AM, Wayne Stambaugh stambau...@gmail.com wrote: I'm getting close to finishing up the environment variable editing dialog and I'm struggling with the best option to set variables that have already been define outside the currently running process. Here are the options that I see: 1) Set all environment variables to the values defined in the dialog when the user dismisses the dialog by the OK button. The is will most likely be the expected behavior by most users. The only issue I see is that by design kicad ignores any environment variables that are already defined when it is launched so users may get confused by the fact that the value they set in the dialog is ignored the next time they launch kicad. Granted, this not likely to happen since most new users will not externally set environment variables but it could if the accidentally use a variable name that is already in use. 2) Only set environment variables that are not already externally defined. This may be confusing if a user doesn't know that a given environment variable is already set externally. Personally I'm leaning towards #1 since most users will not externally define environment variables and developers should know better since this behavior was designed specifically to make their life easier. Any one have any thoughts on this before I finish up the code? Thanks, Wayne ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp -- Jean-Pierre CHARRAS ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Environment variable conundrum.
Le 23/03/2015 22:44, Garth Corral a écrit : It seems like option #1 is the saner option. If I’m understanding the change, once the variables are edited they become configuration variables. Typical precedence for configuration is usually something like, command line - environment - local config files - global config files, from highest precedence to lowest, which it seems is kicad’s current behavior. So #1 preserves this at the expense of possible confusion if both are set. To mitigate this confusion, perhaps setting a variable in the dialog that is already set in the environment can pop up an alert and suggest unsetting the environment variable. If a variable is already set both ways when the dialog is invoked, it can provide some visual indication of this, with a way to get an explanation of what it means. Garth I also am thinking the option #1 is the better. On Mar 23, 2015, at 11:36 AM, Wayne Stambaugh stambau...@gmail.com wrote: I'm getting close to finishing up the environment variable editing dialog and I'm struggling with the best option to set variables that have already been define outside the currently running process. Here are the options that I see: 1) Set all environment variables to the values defined in the dialog when the user dismisses the dialog by the OK button. The is will most likely be the expected behavior by most users. The only issue I see is that by design kicad ignores any environment variables that are already defined when it is launched so users may get confused by the fact that the value they set in the dialog is ignored the next time they launch kicad. Granted, this not likely to happen since most new users will not externally set environment variables but it could if the accidentally use a variable name that is already in use. 2) Only set environment variables that are not already externally defined. This may be confusing if a user doesn't know that a given environment variable is already set externally. Personally I'm leaning towards #1 since most users will not externally define environment variables and developers should know better since this behavior was designed specifically to make their life easier. Any one have any thoughts on this before I finish up the code? Thanks, Wayne ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp -- Jean-Pierre CHARRAS ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Environment variable conundrum.
It seems like option #1 is the saner option. If I’m understanding the change, once the variables are edited they become configuration variables. Typical precedence for configuration is usually something like, command line - environment - local config files - global config files, from highest precedence to lowest, which it seems is kicad’s current behavior. So #1 preserves this at the expense of possible confusion if both are set. To mitigate this confusion, perhaps setting a variable in the dialog that is already set in the environment can pop up an alert and suggest unsetting the environment variable. If a variable is already set both ways when the dialog is invoked, it can provide some visual indication of this, with a way to get an explanation of what it means. Garth On Mar 23, 2015, at 11:36 AM, Wayne Stambaugh stambau...@gmail.com wrote: I'm getting close to finishing up the environment variable editing dialog and I'm struggling with the best option to set variables that have already been define outside the currently running process. Here are the options that I see: 1) Set all environment variables to the values defined in the dialog when the user dismisses the dialog by the OK button. The is will most likely be the expected behavior by most users. The only issue I see is that by design kicad ignores any environment variables that are already defined when it is launched so users may get confused by the fact that the value they set in the dialog is ignored the next time they launch kicad. Granted, this not likely to happen since most new users will not externally set environment variables but it could if the accidentally use a variable name that is already in use. 2) Only set environment variables that are not already externally defined. This may be confusing if a user doesn't know that a given environment variable is already set externally. Personally I'm leaning towards #1 since most users will not externally define environment variables and developers should know better since this behavior was designed specifically to make their life easier. Any one have any thoughts on this before I finish up the code? Thanks, Wayne ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Environment variable conundrum.
#1 works slightly better for normal users for OS X, if I'm understanding you correctly. Adam Wolf Cofounder and Engineer WL On Mon, Mar 23, 2015 at 1:36 PM, Wayne Stambaugh stambau...@gmail.com wrote: I'm getting close to finishing up the environment variable editing dialog and I'm struggling with the best option to set variables that have already been define outside the currently running process. Here are the options that I see: 1) Set all environment variables to the values defined in the dialog when the user dismisses the dialog by the OK button. The is will most likely be the expected behavior by most users. The only issue I see is that by design kicad ignores any environment variables that are already defined when it is launched so users may get confused by the fact that the value they set in the dialog is ignored the next time they launch kicad. Granted, this not likely to happen since most new users will not externally set environment variables but it could if the accidentally use a variable name that is already in use. 2) Only set environment variables that are not already externally defined. This may be confusing if a user doesn't know that a given environment variable is already set externally. Personally I'm leaning towards #1 since most users will not externally define environment variables and developers should know better since this behavior was designed specifically to make their life easier. Any one have any thoughts on this before I finish up the code? Thanks, Wayne ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] Environment variable conundrum.
I'm getting close to finishing up the environment variable editing dialog and I'm struggling with the best option to set variables that have already been define outside the currently running process. Here are the options that I see: 1) Set all environment variables to the values defined in the dialog when the user dismisses the dialog by the OK button. The is will most likely be the expected behavior by most users. The only issue I see is that by design kicad ignores any environment variables that are already defined when it is launched so users may get confused by the fact that the value they set in the dialog is ignored the next time they launch kicad. Granted, this not likely to happen since most new users will not externally set environment variables but it could if the accidentally use a variable name that is already in use. 2) Only set environment variables that are not already externally defined. This may be confusing if a user doesn't know that a given environment variable is already set externally. Personally I'm leaning towards #1 since most users will not externally define environment variables and developers should know better since this behavior was designed specifically to make their life easier. Any one have any thoughts on this before I finish up the code? Thanks, Wayne ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Environment variable conundrum.
It should work better for users on all platforms except if they have already set the environment variables externally (as we ask them to do before I added the default settings or they used one of the kicad source build and install scripts) and they forget to remove them before using the new configuration dialog. I can almost write the bug report now. :) This will be less of a problem for new users. It's those users that have been following the development branch that I'm concerned about. Although most of them should be savvy enough by this point to understand the issue at hand. On 3/23/2015 2:51 PM, Adam Wolf wrote: #1 works slightly better for normal users for OS X, if I'm understanding you correctly. Adam Wolf Cofounder and Engineer WL On Mon, Mar 23, 2015 at 1:36 PM, Wayne Stambaugh stambau...@gmail.com mailto:stambau...@gmail.com wrote: I'm getting close to finishing up the environment variable editing dialog and I'm struggling with the best option to set variables that have already been define outside the currently running process. Here are the options that I see: 1) Set all environment variables to the values defined in the dialog when the user dismisses the dialog by the OK button. The is will most likely be the expected behavior by most users. The only issue I see is that by design kicad ignores any environment variables that are already defined when it is launched so users may get confused by the fact that the value they set in the dialog is ignored the next time they launch kicad. Granted, this not likely to happen since most new users will not externally set environment variables but it could if the accidentally use a variable name that is already in use. 2) Only set environment variables that are not already externally defined. This may be confusing if a user doesn't know that a given environment variable is already set externally. Personally I'm leaning towards #1 since most users will not externally define environment variables and developers should know better since this behavior was designed specifically to make their life easier. Any one have any thoughts on this before I finish up the code? Thanks, Wayne ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net mailto:kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp