Please allow us to save our workspace state on an IDE crash
Please allow us to save our workspace state on an IDE crash
When the PureBasic IDE crashes the state is lost (tabs, undo/redo). It would be a great improvement if PureBasic could backup the state of the IDE and offer to restore it the next time it loads.
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
If you save the state of the IDE continually after an action has been performed you can always roll back to the previous action on a crash.
I find that I rarely close the PureBasic IDE unless it crashes. And because it does not continually save its tab state I have to reload my entire project and make a point to close and re-open it again to "save" my tab states, at least for the time being.
I'm not interested in having the IDE try to save my files on a crash because I might be in the middle of breaking it to test something else. My request is just the IDE state specifically. This shouldn't damage any files on a crash because no data should be written.
I find that I rarely close the PureBasic IDE unless it crashes. And because it does not continually save its tab state I have to reload my entire project and make a point to close and re-open it again to "save" my tab states, at least for the time being.
I'm not interested in having the IDE try to save my files on a crash because I might be in the middle of breaking it to test something else. My request is just the IDE state specifically. This shouldn't damage any files on a crash because no data should be written.
+1
Tronds idea would be nice in a perfect world, but along with "expect the best" comes "prepare for the worst". Having the open files change after a crash is annoying. If you are getting a crash then you tend to get a few at a time as you are hitting the same issue.
"Fix the crashes as well" I could understand but why "instead" ? Why not do this?
Assumably there is a function that saves the state and is called on IDE close, just call it on file open too
Tronds idea would be nice in a perfect world, but along with "expect the best" comes "prepare for the worst". Having the open files change after a crash is annoying. If you are getting a crash then you tend to get a few at a time as you are hitting the same issue.
"Fix the crashes as well" I could understand but why "instead" ? Why not do this?
Assumably there is a function that saves the state and is called on IDE close, just call it on file open too

Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Where´s the problem with saving the sources into a special directory on crash? So when restarting, you can take a look at those files opened, when the crash happens and if they´re ok, you just save them as normal files.
No Problem IMHO :roll:
But OK, we also thought, a line-connector like ":" is a linesplitter would not be THAT hard
No Problem IMHO :roll:
But OK, we also thought, a line-connector like ":" is a linesplitter would not be THAT hard

Give Up everything but trying!
I don't care about losing unsaved data when the IDE crashes, since it could be corrupt or contain arbitrary code that is out of sync with the rest of the project. I only care about the state of the IDE (tabs, settings, etc) and this should be the only relevant information. It's up to the user to save their code and keep it up to date.
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
I think a good option for you would be to have an autosave feature like in OpenOffice: autosave code every 10 minutes ... so in any case you will always fall back to a very recent version. Agree on that.
Additionally to the autosave of files there could be an outosave for the pb config file, and all tab related issues are solved as well.
Additionally to the autosave of files there could be an outosave for the pb config file, and all tab related issues are solved as well.
Autosave would wreak havok on my source files, since I occasionally cut large blocks of code and frequently break things while hunting bugs, then revert back and paste the working code. I'd hate for my source to save unexpectedly. I find this kind of feature a little frightening, actually. But I'm sure someone would like it.Kazmirzak wrote:I think a good option for you would be to have an autosave feature like in OpenOffice: autosave code every 10 minutes ... so in any case you will always fall back to a very recent version. Agree on that.
Additionally to the autosave of files there could be an outosave for the pb config file, and all tab related issues are solved as well.
Ctrl-S is your friend.
