help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Package installation


From: Gwenael Casaccio
Subject: [Help-smalltalk] Package installation
Date: Wed, 06 Jul 2011 23:45:49 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

Hi,

In VisualGST when playing with packages, I've seen a strange behavior: The source code of methods was not correctly displayed. It can happens when you've re-installed a package but not reload it. Because the source code position (FileSegment) is not correctly set and no more correct (the method is maybe removed). I've made a small fix, when installing a package I decompress it in a temporary directory (in ~\.st\...) and when leaving the vm I remove all the files.

The idea is for all gst create a session directory where all the packages will be loaded. Thus I've added a new primitive which call tempnam for creating a temporary dir. After I create a session directory for the current GST. And when we leave the vm it's destroyed (when calling update:) #aboutToQuit all the files and the directory are removed too.

Gwen

Attachment: Session-Package.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]