Hi, everybody,
I come from China, Excuse me, my English is not good. I have added Chinese character input fuction in Squeak 4.3, input and display well. I have made an install.sar for chinese envirenment. taking Japanese Squeak as a reference These days, I am learning Seaside to write one website for chinese Squeak learning.almost to completed. but miserable thing happened, the changes file crash. can not read the source code now. the reason is, the methed html paragraph: ' chinese characters ', including some special characters, these cause mess code of method when accepted. I used Windows notebook to edit the changes file and find the method and delelte several word, but the whole source code in many packages are wrong now. Could someone help me to recover? Thank you very much ahead. Bing
I love Smalltalk
|
Bing,
The first thing is don't change the changes file manually. ;-) If you absolutely must, then don't add or delete characters, although you can change one character to another. It may look like a text file, but the Squeak image cares very much about the exact position in the file where versions of method source are located. If you can, restore the unmodified changes file, run until you encounter the error and send the debug log. That may help find a way around the problem. Cheers, Bob On 11/15/12 1:25 PM, liang bing wrote:
Hi, everybody, I come from China, Excuse me, my English is not good. I have added Chinese character input fuction in Squeak 4.3, input and display well. I have made an install.sar for chinese envirenment. taking Japanese Squeak as a reference These days, I am learning Seaside to write one website for chinese Squeak learning.almost to completed. but miserable thing happened, the changes file crash. can not read the source code now. the reason is, the methed html paragraph: ' chinese characters ', including some special characters, these cause mess code of method when accepted. I used Windows notebook to edit the changes file and find the method and delelte several word, but the whole source code in many packages are wrong now. Could someone help me to recover? Thank you very much ahead. Bing -- View this message in context: http://forum.world.st/Help-changes-file-crash-How-to-recover-tp4655481.html Sent from the Squeak - Dev mailing list archive at Nabble.com. |
In reply to this post by liang bing
Am 11/15/2012 07:25 PM, schrieb liang bing:
> I used Windows notebook to edit the changes file and find the method and > delelte several word, but the whole source code in many packages are wrong > now. > > Could someone help me to recover? > > Thank you very much ahead. > > Bing > > as you noticed, editing the changes file was a bad idea - it should not be considered a text file but just a journal file into which the image stores newly accepted methods (and the image remembers the start positions of these methods, so you must not move text around in this file). If you know how many characters you deleted in the method source, you could re-insert exactly this many characters so that any change entries after the edit position are at their right place again. Was the edit position very close to the end of the changes file? If yes, you could possibly recover the last n thousand characters of the changes file and recompile those methods (use the "Extras" menu, then select an image save point that was before your edit). Whatever you try, you should first save a copy of your changes and image files, so you may re-start your repair if something goes wrong. Cheers, Hans-Martin |
In reply to this post by liang bing
append:
the problem string is '阿兰·凯 Alan Kay 丹·英格斯 Dan Ingalls '
I love Smalltalk
|
In reply to this post by Hans-Martin Mosner
Thanks you very much! Bob and Hans-Martin.
I am trying...
I love Smalltalk
|
Free forum by Nabble | Edit this page |