Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: cacb on October 21, 2010, 11:39:33 pm

Title: What happened to environment variables?
Post by: cacb on October 21, 2010, 11:39:33 pm
H,

I have 2 linux installations of Code::Blocks (from Jens Lody repository)
Pc A: svn 6703
Pc B: svn 6718

My setup relies on using Code::Blocks environment variables defined via Settings->Environment->Environment Variables
This works fine in Code::Blocks svn 6703, but in svn 6718 the option Environment Variables is completely non-existent...!

Why is that? Is it a bug? I hope so...
Title: Re: What happened to environment variables?
Post by: Jenna on October 21, 2010, 11:51:30 pm
I use svn r6718 from my repo and "Environment Variables" is still there.
Title: Re: What happened to environment variables?
Post by: oBFusCATed on October 22, 2010, 08:51:35 am
cacb, do you have the envvar plugin installed and enabled? (Plugins -> Manage)
Title: Re: What happened to environment variables?
Post by: Jenna on October 22, 2010, 11:58:10 am
cacb, do you have the envvar plugin installed and enabled? (Plugins -> Manage)
If it is also not there, make sure you have the codeblocks-contrib package installed.
Title: Re: What happened to environment variables?
Post by: cacb on October 22, 2010, 05:39:30 pm
cacb, do you have the envvar plugin installed and enabled? (Plugins -> Manage)
If it is also not there, make sure you have the codeblocks-contrib package installed.

Ok, thanks a lot, that solved it! I just had to do a $sudo apt-get install codeblocks-contrib and the environment variables option was back where it used to be.  :D

This happened after I installed Kubuntu 10.10 from scratch + plus codeblocks etc. Somehow the codeblocks-contrib was not included.

Thanks again, much appreciated  :D

Title: Re: What happened to environment variables?
Post by: cacb on October 22, 2010, 07:42:31 pm
Thanks again, much appreciated  :D

However..... After upgrading to svn 6470, some of my projects are now crashing Code::Blocks when I try to open a workspace or project file. I have confirmed the behaviour on 2 Kubuntu machines (10.04 and 10.10), crash dump attached.

Any advice appreciated.

UPDATE: I found out what caused the crash

My projects are cross platform, using msvc8 compiler on windows and gcc on linux. My projects had a setting like shown below  on the project level (not under any of the 4 build targets i have: W32_Debug, W32_Release, UX_Debug, UX_Release

Code
<Option compiler="msvc8" />

Removing this with a text editor fixed the crash issue. However, this used to not cause any crash before, so it looks like a bug to me.