Code::Blocks Forums

User forums => Help => Topic started by: killerbot on June 29, 2006, 11:14:59 pm

Title: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: killerbot on June 29, 2006, 11:14:59 pm
Should for "save all files" also the project file and the workspace be saved ??
(currently : it's only the source files)
yes/no ?
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: thomas on June 29, 2006, 11:27:19 pm
Not seriously?
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: ironhead on June 30, 2006, 12:20:41 am
I would say yes.
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: Pecan on June 30, 2006, 12:46:36 am
Should for "save all files" also the project file and the workspace be saved ??
(currently : it's only the source files)
yes/no ?

That would put me in serious trouble. I make test build options changes etc that I do not want saved when I save a file.

What if you ctrl-z your changes to files? You can't undo a project file.
Then when you save... oops too late... Do I remember what changes I make?
With my "senior moments", most likely not.

But we could always add the option to the context popups.
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: thomas on June 30, 2006, 01:04:14 am
Again: not seriously?  :lol:

That would mean that the project is saved every time you compile... so if you make a build with optimisations turned on, it will save that to disk!
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: Vampyre_Dark on June 30, 2006, 01:32:33 am
Hell no.
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: Ceniza on June 30, 2006, 01:36:16 am
A no here .o/
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: killerbot on June 30, 2006, 07:20:34 am
some clarifications :
- save 1 (source) file  -> does not mean saving the project file
- internal "save all calls" (eg because of compile (regular or a build with a different optimizations) -> "hell no" ;-)

It's for the case where the user explicitly asks (button or menu) : CB, please save all my files.
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: David Perfors on June 30, 2006, 11:44:30 am
Using the menu option Save All -> Yes
When compiling or saving just 1 file -> "hell no" :P
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: thomas on June 30, 2006, 12:45:34 pm
Even when selecting "save all files", it is wrong and problematic.

Although it is technically true that project and workspace are eventually saved to files for permanent storage, insisting on "but they are files" is nothing but a pedantism.

The project holds the project's files, it is not one of them. I don't know of any software that handles this differently (and no, I am not interested in an example, don't bother searching).

One might equally argue whether "save project" means "save the project, including all source files" or simply "save the project file". After all, "the project" is the project file plus all source files. A project file alone is nothing without the sources, so if you want to be consequent, you must save those too. However, I guess that none of you seriously expects this to happen.
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: killerbot on June 30, 2006, 12:54:02 pm
I think we could agree upon the fact that we won't save the project and workspace files on "save all". So it will not be considered as a bug.

@Thomas :
 - no need to search for examples, I know some ;-)
 - does your autosave (which creates backup copies ??) save the project/workspace (since maybe I did change some project settings to be permanent and woops crash ... :-(  )
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: kkez on June 30, 2006, 01:02:07 pm
No (http://forum.tgmonline.it/forum/images/smiley_icons/nono.gif)
(poll?)

You could make a "save all files project workspaces" new menu item, if someone really want that.
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: mandrav on June 30, 2006, 01:08:26 pm
A resounding "NO!".

Thomas has explained it well.
For any projects other than "Hello world", saving the actual project file should be the developer's choice when to happen, not the IDE's...
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: thomas on June 30, 2006, 01:23:00 pm
does your autosave (which creates backup copies ??) save the project/workspace
Autosave does what you tell it to do, not more not less :)

If you tell it "save the project" then it will save the project. Otherwise it will not. If you tell it "overwrite" or "create backup" then it will overwrite the original (and optionally create a backup copy first), but if you leave the default "save to '.save' file", then it will save to ProjectName.cbp.save and leave the original untouched.

If you tell it to save the sources, it will do just that, and leave the project untouched.
Title: Re: [ Bug #7714 ] File->"Save all files" doesn't save all files : please vote
Post by: Vampyre_Dark on June 30, 2006, 11:01:51 pm
Strongly recommends you implement this...
Strongly recommends you implement this...
Strongly recommends you implement this...
Strongly recommends you implement this...


 :lol:(Just kidding^)

 :o What do you mean not funny?