- warning: this envvar version will not import the old configuration due to the changes, backup before
Concerning this: To update any previous envvars to a new set, some manual hacking is required (sorry for that). But be really careful! This description is for real experts only! You should actually never-ever edit this file manually. So if you are unsure you better use the envvars settings inside C::B to setup your envvars from scratch! This is most probably the best way anyway.
If you are sure about to be an expert; have no time to setup the envvars from scratch; have a backup in the back-hand and swear you won't blame me, do the following:
- backup your old configuration (default.conf)
- open C::B with the new plugin, switch to the envvar settings in menu Settings -> Environment
- notice it's empty (that's OK for now), click OK and close (!!!) C::B
- open default.conf with a nice editor, you should find a section like this inside:
<envvars>
<ENVVAR0>
<str>
<![CDATA[1|YOUR_VAR_1|YOUR_VALUE_1]]>
</str>
</ENVVAR0>
<ENVVAR1>
<str>
<![CDATA[1|YOUR_VAR_2|YOUR_VALUE_2]]>
</str>
</ENVVAR1>
(...and so on...)
<sets>
<default />
</sets>
</envvars>
Change it to:
<envvars>
<sets>
<default>
<ENVVAR0>
<str>
<![CDATA[1|YOUR_VAR_1|YOUR_VALUE_1]]>
</str>
</ENVVAR0>
<ENVVAR1>
<str>
<![CDATA[1|YOUR_VAR_2|YOUR_VALUE_2]]>
</str>
</ENVVAR1>
(...and so on...)
</default>
</sets>
</envvars>
Notice that the default tag has changed from an empty one (<default />) to tag with content (inside <default></default>).
With regards, Morten.
I have not been able to build the .deb for Dapper/Edgy for this revision. Maybe because of Dapper only having wx2.6.1 available in it's repository? I can build one for Feisty with wx2.6.3. Edgy also has 2.6.3 available, but I have not tried building one for it. I going to assume it would build. I get the following errors:
envvars_cfgdlg.cpp: In member function 'void EnvVarsConfigDlg::SaveSettings()':
envvars_cfgdlg.cpp:160: error: 'class wxChoice' has no member named 'GetCurrentSelection'
envvars_cfgdlg.cpp: In member function 'void EnvVarsConfigDlg::OnCreateSetClick(wxCommandEvent&)':
envvars_cfgdlg.cpp:381: error: 'class wxChoice' has no member named 'GetCurrentSelection'
envvars_cfgdlg.cpp: In member function 'void EnvVarsConfigDlg::OnRemoveSetClick(wxCommandEvent&)':
envvars_cfgdlg.cpp:423: error: 'class wxChoice' has no member named 'GetCurrentSelection'
envvars_cfgdlg.cpp:445: error: 'class wxChoice' has no member named 'GetCurrentSelection'
Also, has anyone been able to compile Codeblocks in Feisty using wx2.8.3 and actually get it to open and work? I can compile the program, but when I try to run Codeblocks it just hangs during the opening process. I get no errors reported from command line. It would be sweet to be able to provide a Feisty deb built on wx2.8, if I could get it to work properly.
I have not been able to build the .deb for Dapper/Edgy for this revision.
envvars_cfgdlg.cpp: In member function 'void EnvVarsConfigDlg::SaveSettings()':
envvars_cfgdlg.cpp:160: error: 'class wxChoice' has no member named 'GetCurrentSelection'
[...]
From the wxWidgets docs:
wxChoice::GetCurrentSelection
int GetCurrentSelection() const
[...]
This function is new since wxWidgets version 2.6.2 (before this version GetSelection itself behaved like this).
To fix this, this line of code should be put inside a
if(wxMinimumVersion<2,6,2>::eval)
macro construct. Or simply replace GetCurrentSelection() with GetSelection().
With regards, Morten.