Error when passing file (without full path) at startup

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error when passing file (without full path) at startup

Stéphane Ducasse
Hi

Can somebody confirm that he gets the same error than me with the following code expression

/Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image test.st

where test.st is deadline

Beeper beep





        I get Error: No content to install

I also get the same error with PharoCore1.1ALPHA Latest update: #11131

Now if I use

/Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image /Users/ducasse/Workspace/FirstCircle/ActiveResearch/Pharo/Pharo/Coral/test.st

it is working I thought that the passed argument was resolved using the current directory.
John I remember that you change that is it true?


Stef
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

test.st (12 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error when passing file (without full path) at startup

johnmci
Hey so what does a V5 VM do?

why don't you try  with a './'

> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image  ./test.st

At 3.8.19b1 I did
sqMacMain.c drop cwd to VM directory at startup time to help script writers use ../ or ./

which commented out this

/* LETS NOT DO THIS, SEE what happens for people wanting to do  ./Squeak.app foobar.image  zingger.st
       
        {
                // Change working directory, this works under os-x, previous logic worked pre os-x 10.4
               
                char target[4097],temp[4097];
                getVMPathWithEncoding(target,gCurrentVMEncoding);
                sqFilenameFromStringOpen(temp,(sqInt) target, strlen(target));
                chdir(temp);
        }
*/




On 2010-01-02, at 2:22 PM, Stéphane Ducasse wrote:

> Hi
>
> Can somebody confirm that he gets the same error than me with the following code expression
>
> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image test.st
>
> where test.st is deadline
>
> Beeper beep
>
>
> <test.st>
>
> I get Error: No content to install
>
> I also get the same error with PharoCore1.1ALPHA Latest update: #11131
>
> Now if I use
>
> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image /Users/ducasse/Workspace/FirstCircle/ActiveResearch/Pharo/Pharo/Coral/test.st
>
> it is working I thought that the passed argument was resolved using the current directory.
> John I remember that you change that is it true?
>
>
> Stef_______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Error when passing file (without full path) at startup

Stéphane Ducasse

On Jan 2, 2010, at 11:56 PM, John M McIntosh wrote:

> Hey so what does a V5 VM do?

I will try it.
I was not sure that it worked with default images.

Now there are three variables
        location of the vm
        location of the image
        location of the script
ideally the two first ones do not have to be in the same place than the script.

>  ./Squeak.app foobar.image  zingger.st
does not show that zingger.st can be in another place than the vm or image.


> why don't you try  with a './'

OK it is working but this is not really natural to run a script stating ./fileName instead of fileName

>
>> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image  ./test.st
>
> At 3.8.19b1 I did
> sqMacMain.c drop cwd to VM directory at startup time to help script writers use ../ or ./
>
> which commented out this
>
> /* LETS NOT DO THIS, SEE what happens for people wanting to do  ./Squeak.app foobar.image  zingger.st
>
> {
> // Change working directory, this works under os-x, previous logic worked pre os-x 10.4
>
> char target[4097],temp[4097];
> getVMPathWithEncoding(target,gCurrentVMEncoding);
> sqFilenameFromStringOpen(temp,(sqInt) target, strlen(target));
> chdir(temp);
> }
> */
>
>
>
>
> On 2010-01-02, at 2:22 PM, Stéphane Ducasse wrote:
>
>> Hi
>>
>> Can somebody confirm that he gets the same error than me with the following code expression
>>
>> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image test.st
>>
>> where test.st is deadline
>>
>> Beeper beep
>>
>>
>> <test.st>
>>
>> I get Error: No content to install
>>
>> I also get the same error with PharoCore1.1ALPHA Latest update: #11131
>>
>> Now if I use
>>
>> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image /Users/ducasse/Workspace/FirstCircle/ActiveResearch/Pharo/Pharo/Coral/test.st
>>
>> it is working I thought that the passed argument was resolved using the current directory.
>> John I remember that you change that is it true?
>>
>>
>> Stef_______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> --
> ===========================================================================
> John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ===========================================================================
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Error when passing file (without full path) at startup

Stéphane Ducasse
In reply to this post by johnmci
John here is what I get with VM500


 /Applications/Squeak/Squeak500b96432.app/Contents/MacOS/Squeak PharoCore-1.0-10503rc1.1.image test.st
2010-01-03 11:40:32.135 Squeak[46852:903] Can't open input server /Library/InputManagers/Inquisitor
2010-01-03 11:40:32.139 Squeak[46852:903] openFile state 1 with file PharoCore-1.0-10503rc1.1.image
2010-01-03 11:40:32.139 Squeak[46852:903] openFile state 0 with file test.st


Stef






On Jan 2, 2010, at 11:56 PM, John M McIntosh wrote:

> Hey so what does a V5 VM do?
>
> why don't you try  with a './'
>
>> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image  ./test.st
>
> At 3.8.19b1 I did
> sqMacMain.c drop cwd to VM directory at startup time to help script writers use ../ or ./
>
> which commented out this
>
> /* LETS NOT DO THIS, SEE what happens for people wanting to do  ./Squeak.app foobar.image  zingger.st
>
> {
> // Change working directory, this works under os-x, previous logic worked pre os-x 10.4
>
> char target[4097],temp[4097];
> getVMPathWithEncoding(target,gCurrentVMEncoding);
> sqFilenameFromStringOpen(temp,(sqInt) target, strlen(target));
> chdir(temp);
> }
> */
>
>
>
>
> On 2010-01-02, at 2:22 PM, Stéphane Ducasse wrote:
>
>> Hi
>>
>> Can somebody confirm that he gets the same error than me with the following code expression
>>
>> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image test.st
>>
>> where test.st is deadline
>>
>> Beeper beep
>>
>>
>> <test.st>
>>
>> I get Error: No content to install
>>
>> I also get the same error with PharoCore1.1ALPHA Latest update: #11131
>>
>> Now if I use
>>
>> /Applications/Squeak/Squeak\ 4.2.2beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.0-10503rc1.1.image /Users/ducasse/Workspace/FirstCircle/ActiveResearch/Pharo/Pharo/Coral/test.st
>>
>> it is working I thought that the passed argument was resolved using the current directory.
>> John I remember that you change that is it true?
>>
>>
>> Stef_______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> --
> ===========================================================================
> John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ===========================================================================
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project