Hi,

One of the cool things of Smalltalk's images/changes file is that you can do a 
World Menu > Tools > Recover lost changes… to get back most [1] of your code in 
case your image/OS/machine suddenly crashed or you forgot to save your image or 
commit your Monticello packages.

But we all have encountered the situation where the image is broken, saved in 
such a state that it no longer starts up properly. In that case your code might 
seem lost forever.

No, it is not !

Two days ago I had this problem myself and I remembered something Marcus said 
some time ago: you can access the changes file of one (in casu your broken 
image) from another (working) image to select/recover the changes you want. It 
worked perfectly.

The easiest procedure it to copy the .changes file from the broken image and 
rename its extension to .cs and then open it from a World Menu > Tools > File 
Browser and open a Changes browser on it.

I found this very useful. This is a really important technique to be aware of.

Sven

[1] Sadly, not everything is logged in the changes file: creation of new 
classes, method deletions are not recorded.

--
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill




Reply via email to