Author Topic: Workspace modified  (Read 7194 times)

Offline Newbie0815

  • Multiple posting newcomer
  • *
  • Posts: 61
Workspace modified
« 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?

Maarten

  • Guest
Re: Workspace modified
« Reply #1 on: July 04, 2008, 09:56:19 am »
I'm curius about this one as well... anybody?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Workspace modified
« Reply #2 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).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Workspace modified
« Reply #3 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Workspace modified
« Reply #4 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?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Workspace modified
« Reply #5 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Newbie0815

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Workspace modified
« Reply #6 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.
« Last Edit: July 07, 2008, 05:58:06 pm by Newbie0815 »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Workspace modified
« Reply #7 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).

Offline Newbie0815

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Workspace modified
« Reply #8 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Workspace modified
« Reply #9 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Newbie0815

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Workspace modified
« Reply #10 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

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.

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Workspace modified
« Reply #11 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.
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Workspace modified
« Reply #12 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.


Offline Newbie0815

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Workspace modified
« Reply #13 on: July 08, 2008, 05:08:49 pm »
Thanks guys, I´ll try