Jump to content

[Solved] SciTE crashed after blackout


Recommended Posts

Hello,

I was wondering if it's possible to recover the script file after a power outage, which happened as I was working in the editor.
It seems there are correct numbers of characters in it (138249) however they're all replaced with "NULL" in one line. File size identical as well.

I have a backup from couple of days ago but that's a lot of progress lost...

Link to post
Share on other sites

Sorry to hear you have lost a good amount of work.  But there are 3 rules in programming :

1- Backup

2- Backup

3- Backup

In Scite do CTRL-1, you can create automatic backup of your files.  Nevertheless, how long does it take to do a Ctrl-S every now and then ?

 

 

Link to post
Share on other sites

Unfortunately that's the thing, I always do Ctrl+S. So supposedly the file would recover to that point but it didn't. Perhaps at the exact time as I was saving the blackout happened. But the save time is around 3 seconds so it's too close to tell...

Anyway, thanks for the response.

Link to post
Share on other sites
7 minutes ago, NMS said:

Perhaps at the exact time as I was saving the blackout happened.

..in my early experience, I came to realize the importance of clean, stable electricity for the PC and monitor. Not the printer or speakers or anything else. ...well, networking and what not but the main is the PC and monitor.
If you can afford it, do get a UPS. Is a good investment.

Link to post
Share on other sites
  • Developers

That symptom sounds like a corrupted File Allocation Table. Did you have to do a CHECKDISK after the crash?

When using the  separate SciTE4AutoIt3 full version, a backup can be created of the previous version defined by:

backup.files=10
backup.directory=$(FileDir)\backup

so you would have the last 10 version in the backup subdirectory.

Jos 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
25 minutes ago, Jos said:

Did you have to do a CHECKDISK after the crash?

No I did not.

I'm using Lite 3.5.4 at the moment, but this gives me an idea to simply write a simple function to copy the file every time I run it if it's not compiled.

Link to post
Share on other sites
  • NMS changed the title to [Solved] SciTE crashed after blackout

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...