Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Newbie0815 on June 27, 2008, 08:47:11 pm

Title: Workspace modified
Post by: Newbie0815 on June 27, 2008, 08:47:11 pm
Every time I close C::B I get a message like "Workspace has been modified, do you want to save it".
But no matter how often I save it, it always asks again next time and there is no checkbox like "don´t bother me again".

Now, I don´t really care, I´m fine with the default C::B brings up, I don´t need any specific workspace settings.
Could anyone tell me how to get rid of this message?
Title: Re: Workspace modified
Post by: Maarten on July 04, 2008, 09:56:19 am
I'm curius about this one as well... anybody?
Title: Re: Workspace modified
Post by: MortenMacFly on July 04, 2008, 03:06:28 pm
As long as there are no more details (C::B version, revision, platform, steps to reproduce) there won't be much chance for an answer. It does not happen to me and I doubt to any other of the devs. Otherwise it would have already been fixed (which probably is... I could tell if I would know the revision at least).
Title: Re: Workspace modified
Post by: stahta01 on July 05, 2008, 01:01:20 pm
It happens to me, but only when I activate an different project in the workspace.
Activating an project means the workspace was changed.

Tim S
Title: Re: Workspace modified
Post by: MortenMacFly on July 06, 2008, 07:33:18 pm
Activating an project means the workspace was changed.
Yes, and that's perfectly OK. Within the workspace file the last active project is saved. So the workspace *is* modified and needs to be saved to reflect the changes. So this is not an error... Or am I missing something here?!
Title: Re: Workspace modified
Post by: stahta01 on July 06, 2008, 07:40:15 pm
Activating an project means the workspace was changed.
Yes, and that's perfectly OK. Within the workspace file the last active project is saved. So the workspace *is* modified and needs to be saved to reflect the changes. So this is not an error... Or am I missing something here?!

No, not missing anything. I was just listing one case where an beginner might not realize there was an change that needed to be saved.

Tim S
Title: Re: Workspace modified
Post by: Newbie0815 on July 07, 2008, 05:38:25 pm
I believe the problem is:

Open C::B -> default workspace
Open a project -> workspace changed
Close the project -> doesn´t recognize the workspace is back to what it was on start
Close C::B -> tells you it wants to save the workspace

Helpful would be an option within the question, like "do not bother me again"
and once thats checked don´t check anymore for changed workspace upon close.

At least in my case there is no need at all to save anything at all upon close, I always click "No" and I´ve never determined anything missing that wasn´t saved.

Edit:
Now that I think about it, I believe, no matter what you save there, it still loads the default, so you don´t even get back what was saved, unless you load it manually.
If so, a 2nd option might be useful, like a checkbox saying "always save workspace as default"
Not sure if I explained it right, I mean it could auto-save upon close under a default name and auto-load it again upon open without the user has to click anywhere, and if thats optional, everyone may choose the way they like best.
Title: Re: Workspace modified
Post by: Jenna on July 07, 2008, 07:36:46 pm
I often use projects that does not belong to a workspace, and I never get asked if I want to save the changed workspace.

Please provide some more information:
As long as there are no more details (C::B version, revision, platform, steps to reproduce) there won't be much chance for an answer. It does not happen to me and I doubt to any other of the devs. Otherwise it would have already been fixed (which probably is... I could tell if I would know the revision at least).
Title: Re: Workspace modified
Post by: Newbie0815 on July 08, 2008, 04:43:11 am
I´m using the codeblocks-8.02mingw-setup.exe from the download section.
I just click through the installation without to make any changes to the default.

Once installed, I run C::B through the icon in start menu.
I click "Open an existing project", browse to any of my .cbp files and it opens.
(Once I had a project open, it shows under recent projects, open it from there gives the same result)
I don´t do anything in the project, but simply right click the project and choose "Close project".
Now I click the X top right to close C::B and it tells me, it wants to save the modified workspace.
I click "No", it closes and everything is just fine, only this message every time bothers big time, a "No" by default would be great.
Title: Re: Workspace modified
Post by: MortenMacFly on July 08, 2008, 08:29:45 am
I´m using the codeblocks-8.02mingw-setup.exe from the download section.
This bug has been fixed meanwhile (by me myself and I ;-)). Try a nightly if you urgently need this.
As I told you: Not that I know your version I can tell.
Title: Re: Workspace modified
Post by: Newbie0815 on July 08, 2008, 01:44:31 pm
Thanks for the info, thats good news.
I didn´t check the nightly´s yet, I had a hope I won´t need them, since I´m only using it for some basic small applications.
When I started I already had the same problem:

http://forums.codeblocks.org/index.php/topic,5231.0.html (http://forums.codeblocks.org/index.php/topic,5231.0.html)

I was quite happy when I discovered the 8.02 with a comfortable setup.exe, just a few clicks and everything is set.
I guess the procedure of installing a nightly, without a setup.exe won´t be much different from back then, but where would I find all the pieces in latest version now?
I´ve checked the pages at sourceforge.net, but I´m getting lost every time, in between 100s of tar.gz and stuff, with tons of version numbers, I can´t figure out which ones I need.
Title: Re: Workspace modified
Post by: Der Meister on July 08, 2008, 02:02:21 pm
Just have a look at this thread:
http://forums.codeblocks.org/index.php/topic,8688.0.html

Everything you need is listed there.
Title: Re: Workspace modified
Post by: Jenna on July 08, 2008, 02:23:06 pm
It should be enough to unpack the C::B-7z file into the directory where the installer puts the 8.02-binaries and overwrite them.

Title: Re: Workspace modified
Post by: Newbie0815 on July 08, 2008, 05:08:49 pm
Thanks guys, I´ll try