News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Workspace modified

Started by Newbie0815, June 27, 2008, 08:47:11 PM

Previous topic - Next topic

Newbie0815

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?

Maarten

I'm curius about this one as well... anybody?

MortenMacFly

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).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

stahta01

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: stahta01 on July 05, 2008, 01:01:20 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?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

stahta01

Quote from: MortenMacFly on July 06, 2008, 07:33:18 PM
Quote from: stahta01 on July 05, 2008, 01:01:20 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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Newbie0815

#6
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.

Jenna

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:
Quote from: 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).

Newbie0815

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.

MortenMacFly

Quote from: Newbie0815 on July 08, 2008, 04:43:11 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Newbie0815

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.next.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.

Der Meister

Just have a look at this thread:
http://forums.next.codeblocks.org/index.php/topic,8688.0.html

Everything you need is listed there.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Jenna

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.


Newbie0815