is it possible to recover Livescript after the crash?

I was working on a calculation on Livescript.
Livescript crashed and matlab closed
I re-opened Matlab but Livescript is gone.
Is it possible to recove the Livescript?

1 Comment

Look to see if you have a .asv file (Windows) or a filename whose extension ends in ~ (on mac)
I am not sure whether the autosave name for livescript is the same .asv extension though.
Also if you look at the first entry in your matlab path (pathtool is probably the easiest way) then it will name a temporary directory. That temporary directory might contain files with fragments of the MATLAB code itself -- fragments that were written there while MATLAB was executing the livescript files (it cannot execute the files directly and has to extract the MATLAB from them.)

Sign in to comment.

Answers (1)

I know this too late to answer this question but I will continue to answer this question from my experience about hour ago for who found the same problem.
I found the same problem like you. Thus, my solution is find it 'Temporary files folder', I found the livescript autosaved in folders 'Editor_xxxxx' there are you livescript files 'LiveEditorEvaluationHelperExxxxxxxxxx.m'.
I think this solution will help anyone who found this problem.

4 Comments

Honestly, this was incredibly helpful! I had a .mlx file that I had not yet saved when the PC crashed, and a .m version of it was in one of these folders. For those who can't find the temporary files folder, tap %temp% on Windows Explorer (if you're on Windows, of course) and it will redirect ou to the folder.
I owe you ! This comment helped me to find an unsaved mlx file that I was working on it since early morning to the midnight.
I don't have this folder, so I lost all my code !

Sign in to comment.

Categories

Asked:

on 25 Jul 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!