Page 1 of 1
Saving when you don't want it to...
Posted: Tue Mar 15, 2016 6:50 pm
by hinckleyj
Hi All,
I am new to PureBasic and have an odd issue which I am sure has an easy fix?
When I save a program, and later open it, I may try some changes that I don't want to keep (thus, leaving the original saved version as it was).
However, I have noticed that PureBasic saves the 'test changes' even though I have not hit Save.
I have disabled the Autosave option in Preferences > Editor and yet it still saves what I don't want to be saved?
Is there any way to only save when I click 'Save'?
Thanks in advance
Re: Saving when you don't want it to...
Posted: Wed Mar 16, 2016 9:14 am
by Dude
I'm not sure what's going wrong, but I have auto-save turned off and it never saves unless I click the Save icon.
Re: Saving when you don't want it to...
Posted: Wed Mar 16, 2016 10:13 am
by infratec
Hi,
if you make 'test changes' and want to compile the program it has to be saved,
else you compile the file which is stored on the disk without your changes.
But you can always go back with the Sessionhistory function.
Or use CompilerIf
Or save it with a different name
Or ...
...
...
Bernd
Re: Saving when you don't want it to...
Posted: Wed Mar 16, 2016 10:55 am
by Danilo
infratec wrote:if you make 'test changes' and want to compile the program it has to be saved,
else you compile the file which is stored on the disk without your changes.
The compiler could get the input directly from the IDE, or from a temporary saved file.
infratec wrote:But you can always go back with the Sessionhistory function.
Enabling the session-history is a no-go with latest 'stable' LTS release.
Re: Saving when you don't want it to...
Posted: Wed Mar 16, 2016 11:10 am
by Dude
infratec wrote:if you make 'test changes' and want to compile the program it has to be saved
No it doesn't. I can load a source, make some changes, hit F5 to compile/run it, then quit after; all without the source being saved or changed.
Re: Saving when you don't want it to...
Posted: Wed Mar 16, 2016 11:15 am
by infratec
Danilo wrote:Enabling the session-history is a no-go with latest 'stable' LTS release.
Here it works without problems. (Win7 x64 with PB5.42 x86)
Re: Saving when you don't want it to...
Posted: Wed Mar 16, 2016 11:19 am
by Danilo
infratec wrote:Here it works without problems. (Win7 x64 with PB5.42 x86)
Lucky you!
Any specific reason you still use PB x86 on x64 OS?