Re: Re: [Pharo-project] OSProcess and CommandShell

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

Re: Re: [Pharo-project] OSProcess and CommandShell

Mariano Martinez Peck


On Mon, Apr 18, 2011 at 6:04 PM, sourav roy <[hidden email]> wrote:
Hi
i tried the way to suggested but i am still getting the same error. My pharo version is 1.1.1. do you think this may be the reason.
i am attaching a snapshot.

The problem is that the Pharo 1.1.1 already has Metacello installed. But of course, the metacello of that moment.
The way you are installing OSProcess, i.e

((Smalltalk at: #ConfigurationOfOSProcess) project version: #stable)  load.
 
use the "symbolic" version #stable which is a Metacello feature that was added to Metacello in a newer version than the one you have in Pharo 1.1.1. So...you have to options:

1) Try to upgrade your Metacello version of your Pharo 1.1.1 to the latest one. This is what I tried, but failed. THere is a way to upgrade a package in Metacello but I don't remember now. Maybe other guy now.

2) browse the implementation of #stable and you will see it is :

stable: spec
    <symbolicVersion: #'stable'>

    spec for: #'common' version: '4.4.0'.

So...you can just evaluate:

((Smalltalk at: #ConfigurationOfOSProcess) project version: '4.4.0')  load.
 
and it should work.

Anyway, I recommend you to read the Metacello chapter I wrote with Stef: https://gforge.inria.fr/frs/download.php/28462/Metacello.pdf

as you ca find it in  http://pharobyexample.org/

Cheers

Mariano


Thanks
Sourav

---------- Original message ----------
From:"Mariano Martinez Peck"< [hidden email] >
Date: 18 Apr 11 02:38:45
Subject: Re: [Pharo-project] OSProcess and CommandShell
To: [hidden email];
Cc: [hidden email]

Can you try evaluating

ConfigurationOfMetacello project latestVersion load.

And then

Gofer new
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfOSProcess';
load.

((Smalltalk at: #ConfigurationOfOSProcess) project version: #stable)
load.


if it works, I explain you what it was.

On Sun, Apr 17, 2011 at 8:18 PM, sourav roy <[hidden email]> wrote:
hi....
while loading i m getting some error. Please advice...

c the attachment

Thanks
Sourav

---------- Original message ----------
From:"Miguel Cobá"< [hidden email] >
Date: 14 Apr 11 01:59:21
Subject: Re: [Pharo-project] OSProcess and CommandShell
To: [hidden email]

OSProcess is supported and all tests are green in Pharo 1.1 and Pharo
1.2.

The stable version for Pharo 1.2 is the 4.4.0 but you can also load and
run 4.3.11 and 4.3.12 (although if you don't disable deprecations
warnings a lot of pop ups will show). 4.4.0 doesn't have problems with
deprecated methods.

To load:

Gofer new
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfOSProcess';
load.

((Smalltalk at: #ConfigurationOfOSProcess) project version: #stable)
load.

C ommandShell hasn't a configuration so you'll have to load it from the

monticello repository following the documentation of it somewhere in the
wiki.

Cheers

El mié, 13-04-2011 a las 15:23 -0300, Casimiro de Almeida Barreto
escribió:
> I'd like to know the state of:
>
> OSProcess
> and
> CommandShell
>
> under pharo.
>
> There's a ConfigurationOfOSProcess but there's no
> ConfigurationOfCommandShell.
>
> What's working and what's not working?
>
> Best regards
>
> CdAB
>

--
Miguel Cobá
http://twitter.com/MiguelCobaMtz
http://miguel.leugim.com.mx









--
Mariano
http://marianopeck.wordpress.com






--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: Re: [Pharo-project] OSProcess and CommandShell

Dale Henrichs
On 04/18/2011 10:24 AM, Mariano Martinez Peck wrote:

>
>
> On Mon, Apr 18, 2011 at 6:04 PM, sourav roy <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi
>     i tried the way to suggested but i am still getting the same error.
>     My pharo version is 1.1.1. do you think this may be the reason.
>     i am attaching a snapshot.
>
>
> The problem is that the Pharo 1.1.1 already has Metacello installed. But
> of course, the metacello of that moment.
> The way you are installing OSProcess, i.e
>
> ((Smalltalk at: #ConfigurationOfOSProcess) project version: #stable)  load.
>
> use the "symbolic" version #stable which is a Metacello feature that was
> added to Metacello in a newer version than the one you have in Pharo
> 1.1.1. So...you have to options:
>
> 1) Try to upgrade your Metacello version of your Pharo 1.1.1 to the
> latest one. This is what I tried, but failed. THere is a way to upgrade
> a package in Metacello but I don't remember now. Maybe other guy now.

The following should upgrade to the correct version of Metacello:

   ConfigurationOfMetacello project updateProject.
   ConfigurationOfMetacello load.

If this fails, I am interested in a stack and an error report...

What did you try that failed?


>
> 2) browse the implementation of #stable and you will see it is :
>
> stable: spec
> <symbolicVersion: #'stable'>
>
>      spec for: #'common' version: '4.4.0'.
>
> So...you can just evaluate:
>
> ((Smalltalk at: #ConfigurationOfOSProcess) project version: '4.4.0')  load.
>
> and it should work.
>
> Anyway, I recommend you to read the Metacello chapter I wrote with Stef:
> https://gforge.inria.fr/frs/download.php/28462/Metacello.pdf
>
> as you ca find it in http://pharobyexample.org/
Reply | Threaded
Open this post in threaded view
|

Re: Re: [Pharo-project] OSProcess and CommandShell

Mariano Martinez Peck


On Mon, Apr 18, 2011 at 7:49 PM, Dale Henrichs <[hidden email]> wrote:
On 04/18/2011 10:24 AM, Mariano Martinez Peck wrote:


On Mon, Apr 18, 2011 at 6:04 PM, sourav roy <[hidden email]
<mailto:[hidden email]>> wrote:

   Hi
   i tried the way to suggested but i am still getting the same error.
   My pharo version is 1.1.1. do you think this may be the reason.
   i am attaching a snapshot.


The problem is that the Pharo 1.1.1 already has Metacello installed. But
of course, the metacello of that moment.
The way you are installing OSProcess, i.e

((Smalltalk at: #ConfigurationOfOSProcess) project version: #stable)  load.

use the "symbolic" version #stable which is a Metacello feature that was
added to Metacello in a newer version than the one you have in Pharo
1.1.1. So...you have to options:

1) Try to upgrade your Metacello version of your Pharo 1.1.1 to the
latest one. This is what I tried, but failed. THere is a way to upgrade
a package in Metacello but I don't remember now. Maybe other guy now.

The following should upgrade to the correct version of Metacello:

 ConfigurationOfMetacello project updateProject.
 ConfigurationOfMetacello load.

If this fails, I am interested in a stack and an error report...

What did you try that failed?




ConfigurationOfMetacello project latestVersion load.


 


2) browse the implementation of #stable and you will see it is :

stable: spec
<symbolicVersion: #'stable'>

    spec for: #'common' version: '4.4.0'.

So...you can just evaluate:

((Smalltalk at: #ConfigurationOfOSProcess) project version: '4.4.0')  load.

and it should work.

Anyway, I recommend you to read the Metacello chapter I wrote with Stef:
https://gforge.inria.fr/frs/download.php/28462/Metacello.pdf

as you ca find it in http://pharobyexample.org/



--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: Re: [Pharo-project] OSProcess and CommandShell

Dale Henrichs
On 04/18/2011 10:50 AM, Mariano Martinez Peck wrote:

>
>
> On Mon, Apr 18, 2011 at 7:49 PM, Dale Henrichs <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     On 04/18/2011 10:24 AM, Mariano Martinez Peck wrote:
>
>
>
>         On Mon, Apr 18, 2011 at 6:04 PM, sourav roy <[hidden email]
>         <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>> wrote:
>
>             Hi
>             i tried the way to suggested but i am still getting the same
>         error.
>             My pharo version is 1.1.1. do you think this may be the reason.
>             i am attaching a snapshot.
>
>
>         The problem is that the Pharo 1.1.1 already has Metacello
>         installed. But
>         of course, the metacello of that moment.
>         The way you are installing OSProcess, i.e
>
>         ((Smalltalk at: #ConfigurationOfOSProcess) project version:
>         #stable)  load.
>
>         use the "symbolic" version #stable which is a Metacello feature
>         that was
>         added to Metacello in a newer version than the one you have in Pharo
>         1.1.1. So...you have to options:
>
>         1) Try to upgrade your Metacello version of your Pharo 1.1.1 to the
>         latest one. This is what I tried, but failed. THere is a way to
>         upgrade
>         a package in Metacello but I don't remember now. Maybe other guy
>         now.
>
>
>     The following should upgrade to the correct version of Metacello:
>
>       ConfigurationOfMetacello project updateProject.
>       ConfigurationOfMetacello load.
>
>     If this fails, I am interested in a stack and an error report...
>
>     What did you try that failed?
>
>
>
>
> ConfigurationOfMetacello project latestVersion load.

What was the failure? I would expect that expression to work without
error, but because the latest mcz version of the
ConfigurationOfMetacello wasn't grabbed from the web, I wouldn't expect
a different version of Metacello to be installed ...

So the trick is to do the #updateProject first, which pulls the most
recent mcz file from the repository and _then_ load latest...
Reply | Threaded
Open this post in threaded view
|

Re: Re: [Pharo-project] OSProcess and CommandShell

Mariano Martinez Peck


On Mon, Apr 18, 2011 at 7:54 PM, Dale Henrichs <[hidden email]> wrote:
On 04/18/2011 10:50 AM, Mariano Martinez Peck wrote:


On Mon, Apr 18, 2011 at 7:49 PM, Dale Henrichs <[hidden email]
<mailto:[hidden email]>> wrote:

   On 04/18/2011 10:24 AM, Mariano Martinez Peck wrote:



       On Mon, Apr 18, 2011 at 6:04 PM, sourav roy <[hidden email]
       <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>> wrote:

           Hi
           i tried the way to suggested but i am still getting the same
       error.
           My pharo version is 1.1.1. do you think this may be the reason.
           i am attaching a snapshot.


       The problem is that the Pharo 1.1.1 already has Metacello
       installed. But
       of course, the metacello of that moment.
       The way you are installing OSProcess, i.e

       ((Smalltalk at: #ConfigurationOfOSProcess) project version:
       #stable)  load.

       use the "symbolic" version #stable which is a Metacello feature
       that was
       added to Metacello in a newer version than the one you have in Pharo
       1.1.1. So...you have to options:

       1) Try to upgrade your Metacello version of your Pharo 1.1.1 to the
       latest one. This is what I tried, but failed. THere is a way to
       upgrade
       a package in Metacello but I don't remember now. Maybe other guy
       now.


   The following should upgrade to the correct version of Metacello:

     ConfigurationOfMetacello project updateProject.
     ConfigurationOfMetacello load.

   If this fails, I am interested in a stack and an error report...

   What did you try that failed?




ConfigurationOfMetacello project latestVersion load.

What was the failure? I would expect that expression to work without error, but because the latest mcz version of the ConfigurationOfMetacello wasn't grabbed from the web, I wouldn't expect a different version of Metacello to be installed ...

hehehehehehehhehe  that's why it didn't work ;)  I forgot a little detail :)
 

So the trick is to do the #updateProject first, which pulls the most recent mcz file from the repository and _then_ load latest...

Thanks Dale for the explanation.

--
Mariano
http://marianopeck.wordpress.com