Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Envvar plugin not retreaving vars from config-file
buiteldk:
I am using environment variables with CodeBlocks (envvar - plugin). Adding vars works great, but after closing C::B and opening it again, only the first Environment variable is restored from the settings file (default.conf) although four vars are stored in de the default.conf file (ENVVAR0 through ENVVAR3).
Is there a solution to this problem?
Extra info:
Using WinXP, nightly build 3899, wx2.8.3
Again: the first environment var is restored, others not (although they stay in the default.conf). I verified it compiling ReactOS with four environment variables.
MortenMacFly:
--- Quote from: buiteldk on April 30, 2007, 05:31:43 pm ---I am using environment variables with CodeBlocks (envvar - plugin). Adding vars works great, but after closing C::B and opening it again, only the first Environment variable is restored from the settings file (default.conf) although four vars are stored in de the default.conf file (ENVVAR0 through ENVVAR3).
--- End quote ---
It works very well for me - I can't reproduce. What tool are you using to verify what envvars are set? What OS / C::B version are you using? Please *always* put such information into reports!
You guys using wx28 already: This *could* be an issue with wx28?! Anybody can reproduce?
With regards, Morten.
stahta01:
It worked for me with a highly patched CB, SVN 3909, using wxWidgets/wxMSW/XP with 2.6 compatible mode disabled.
Note, I only added a single Env. Var.
Note, CB crashes for me on a couple of releases ago during program close; it is possible that the crash was occurring before saving env var changes. I never got a useful crash info so did not report it. Does NOT seem to crash with SVN 3909.
Re-compiling C::B with no patches now.
Tim S
stahta01:
Just tried C::B SVN 3909 on XP SP2 and had no problems; using wxWidgets 2.8.3 CVS. Both C::B and wxWidgets with no patches.
Tim S
MortenMacFly:
--- Quote from: stahta01 on May 01, 2007, 04:27:01 pm ---Note, I only added a single Env. Var.
Note, CB crashes for me on a couple of releases ago during program close; it is possible that the crash was occurring before saving env var changes. [...]
--- End quote ---
The issue is that the envvars do not get applied on C::B startup - but they seem to be saved (if I got buiteldk right). Anyways - when you tried with your "latest" version - did you have a single envvar there, too? If so, could you try having a few more ones?
With regards, Morten.
Navigation
[0] Message Index
[#] Next page
Go to full version