Re: [Pharo-project] Launching class form command line ...
Begin forwarded message:
From: John M McIntosh <johnmci@smalltalkconsulting.com> Date: September 21, 2010 3:55:54 PM PDT To: Henrik Johansen <henrik.s.johansen@veloxit.no> Cc: pharo-dev@lists.gforge.inria.fr Subject: Re: [Pharo-project] Launching class form command line ... Reply-To: johnmci@smalltalkconsulting.com
On 2010-09-21, at 7:01 AM, Henrik Johansen wrote:
BTW, dunno if it's a crossplatform Cog issue ( haven't checked others) but in John's new OSX Cog-based VMs (last tested 5.8b9), it doesn't look like the arguments are present in systemAttributes at position 2 onwards. Thus, ProjectLauncher will fail to execute scripts at all.
This should work, can you supply an example of use.
In -help:
-encoding <enc> set the internal character encoding (default: MacRoman)
Sounds strangel, should probably be updated to Latin1/ removed (depending on how it's actually used)?
No the only supported type is UTF8. I've removed the bogus help text line.
Also, nonrelated to the VM, the comment in SmalltalkImage>>#documentPath seems misleading (not to mention the method name itself), there seems to be no conversion by the vm to absolute path going on in neither OSX nor Windows, the string is passed through raw. This is reinforced by the --help mentioning:
The first <argument> _normally_ names a Squeak `script' to execute.
Any comment in the image might be 15 years out of date.
Cheers, Henry
-- =========================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================
-- =========================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================
On Sep 22, 2010, at 3:12 10AM, John M McIntosh wrote:
Begin forwarded message:
From: John M McIntosh <johnmci@smalltalkconsulting.com> Date: September 21, 2010 3:55:54 PM PDT To: Henrik Johansen <henrik.s.johansen@veloxit.no> Cc: pharo-dev@lists.gforge.inria.fr Subject: Re: [Pharo-project] Launching class form command line ... Reply-To: johnmci@smalltalkconsulting.com
On 2010-09-21, at 7:01 AM, Henrik Johansen wrote:
BTW, dunno if it's a crossplatform Cog issue ( haven't checked others) but in John's new OSX Cog-based VMs (last tested 5.8b9), it doesn't look like the arguments are present in systemAttributes at position 2 onwards. Thus, ProjectLauncher will fail to execute scripts at all.
This should work, can you supply an example of use.
Here are the command lines I used: /Applications/Squeak\ 4.2.5beta1U.app/Contents/MacOS/Squeak\ VM\ Opt /Users/henrikjohansen/Dropbox/Pharo/PharoCore-1.2-12137.image spaceTally.st In image: Smalltalk documentPath 'spaceTally.st' /Applications/Squeak\ 64-32\ 5.7b1.app/Contents/MacOS/Squeak /Users/henrikjohansen/Dropbox/Pharo/PharoCore-1.2-12137.image spaceTally.st In image: Smalltalk documentPath nil ('spaceTally.st' not in any system attribute < 4000 either) /Applications/Squeak\ 5.8b9.app/Contents/MacOS/Squeak /Users/henrikjohansen/Dropbox/Pharo/PharoCore-1.2-12137.image spaceTally.st Same in-image behavior as 5.7b1. So doesn't seem specifically Cog-related, as it affects 5.7 as well Cheers, Henry
participants (2)
-
Henrik Johansen -
John M McIntosh