Pharo experience is conformed of three things: VM Image sources file When you start the vm, it must run a image. When a image is ran, it searches for a sources file and as the development you do goes on, a changes files is generated. Now, if you downloaded the Pharo One-Click, this is a package of the several components that conforms Pharo, arranged in a given directory tree structure. Most surely, the paths and relative paths of the components is important. So isn't wise to get out the image out of this directory tree without the sources and the changes file. If the installation associated the .image files to the Squeak.exe vm, then double click on a image that is sitting along a source file should start the image without problems. But if you only have the image (associated with a VM) then on start the image will whine about the sources file. If you want to have the image everywhere in your machine the best is to download the vm separately and install it on your machine. Then download a Pharo Core image and populate it with the code you're interested or extract from the OneClick the image *and* the sources and put it on a folder (a changes will be created eventually). Cheers El jue, 20-01-2011 a las 16:57 +0000, Andrew Black escribió:
I just started using Pharo on windows for the first time.
First, I should say that Iâm really impressed. Pharo seems much more solid than when I last tried it. I programmed all day without getting a walkback! All of the tools âjust workedâ. Well done! Itâs a lot of work creating a solid user experience, but you have done it.
Now I have some Windows-specific questions. Iâm a real windows newbi, so please be patient.
After I downloaded Pharo.app, I dragged the whole directory to a convenient place, and tried to launch the Pharo.lnk file, just like the readme file says. But there is no such file visible in windows explorer (even though I have âdonât show extensions for known file typesâ box unchecked. The file shows up as Pharo. Anyway, I figured that it was really Pharo.lnk (Cygwin tells the truth) and double-clicked on it.
This brings up an alert that says C:\Users\<username>\Desktop \OneClick.app\Contents\Windows\Squeak.exe the specified path does not exist.
Is this because I moved the downloaded package? Shouldnât the symlink be relative?
Anyway, I looked in â¦\ Contents\Windows\, double-clicked on Squeak.exe, and everything started up just fine.
I worked all day, and saved my image a few times using the Save menu on the desktop. Each time, I get the usual confirmatory dialog in the Transcript.
Overnight, my machine shut down.
Today, I relaunch Squeak.exe, and of course I get the virgin image! Where is the image that Iâve been using? The Windows âsearch this computerâ tool canât find it! What about my package cache?
Eventually I find everything in Pharo.app\Contents\Resources, but not until Iâve had a few moments of panic!
Questions: Is this the appropriate behaviour on Windows, or was there a user error on my part? Is it OK to move my image somewhere else? How can I change the current directory for Pharo on Windows?
OK, so now that Iâve found my image file, how to I re-launch it? I double-clicked on the .image file, and I got a dialog saying that Windows didnât know what program to use to open it. Fair enough. So I told it to use Squeak.exe. Pharo launches, and I get: âError: invalid utf8 input detectedâ. Itâs treating the image as if it were a source file: it has opened a MultiByteFileSTream on it. Thatâs not right.
How do I re-launch my Pharo image?
Andrew
-- Miguel Cobá http://twitter.com/MiguelCobaMtz http://miguel.leugim.com.mx