[SmaCC] Partial Installation

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

[SmaCC] Partial Installation

kilon.alios
Hey there , I would like to install from SmaCC only Python and C++
parsers , any idea how to add that to my baseline as a dependency ?


---
Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast antivirus.
https://www.avast.com/antivirus


Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

Thierry Goubier
Hi Kilon,

2016-11-25 12:13 GMT+01:00 Dimitris Chloupis <[hidden email]>:
Hey there , I would like to install from SmaCC only Python and C++ parsers , any idea how to add that to my baseline as a dependency ?

Just load the SmaCC-Python package. There is no C++ parser.

Use the following:

spec
                baseline: 'SmaCC'
                    with: [ spec repository: 'github://ThierryGoubier/SmaCC' ];
                import: 'SmaCC'.
spec package: <yourPackage> with: [ spec requires: #('SmaCC-Python') ]

Regards,

Thierry
 


---
Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast antivirus.
https://www.avast.com/antivirus



Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

Tudor Girba-2
Hi Thierry,

As you might have seen, John has created a repo with his version of SmaCC. Would you be interested in merging possible differences from your code with the repository from John?

Cheers,
Doru


> On Nov 25, 2016, at 1:30 PM, Thierry Goubier <[hidden email]> wrote:
>
> Hi Kilon,
>
> 2016-11-25 12:13 GMT+01:00 Dimitris Chloupis <[hidden email]>:
> Hey there , I would like to install from SmaCC only Python and C++ parsers , any idea how to add that to my baseline as a dependency ?
>
> Just load the SmaCC-Python package. There is no C++ parser.
>
> Use the following:
>
> spec
>                 baseline: 'SmaCC'
>                     with: [ spec repository: 'github://ThierryGoubier/SmaCC' ];
>                 import: 'SmaCC'.
> spec package: <yourPackage> with: [ spec requires: #('SmaCC-Python') ]
>
> Regards,
>
> Thierry
>  
>
>
> ---
> Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast antivirus.
> https://www.avast.com/antivirus
>
>
>

--
www.tudorgirba.com
www.feenk.com

"Speaking louder won't make the point worthier."


Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

kilon.alios
In reply to this post by Thierry Goubier
I am afraid it does not work , I updated as you described my baseline


and it gives me 

Error: Name not found: SmaCC-Python

On Fri, Nov 25, 2016 at 2:31 PM Thierry Goubier <[hidden email]> wrote:
Hi Kilon,

2016-11-25 12:13 GMT+01:00 Dimitris Chloupis <[hidden email]>:
Hey there , I would like to install from SmaCC only Python and C++ parsers , any idea how to add that to my baseline as a dependency ?

Just load the SmaCC-Python package. There is no C++ parser.

Use the following:

spec
                baseline: 'SmaCC'
                    with: [ spec repository: 'github://ThierryGoubier/SmaCC' ];
                import: 'SmaCC'.
spec package: <yourPackage> with: [ spec requires: #('SmaCC-Python') ]

Regards,

Thierry
 


---
Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast antivirus.
https://www.avast.com/antivirus



Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

Thierry Goubier
In reply to this post by Tudor Girba-2
Hi Doru,

2016-11-25 14:14 GMT+01:00 Tudor Girba <[hidden email]>:
Hi Thierry,

As you might have seen, John has created a repo with his version of SmaCC. Would you be interested in merging possible differences from your code with the repository from John?

Yes; John told me about it in August, and I merged around September / October.

Both SmaCC repositories have exactly the same runtime; if you are not writing a parser, there is no reason to choose one or the other. They differ in the development part, and some/most of the differences are a matter of style.

But, yes, it is possible to merge. Both are open, and the github SmaCC repository could also count as a test-case for Iceberg :)

Regards,

Thierry
 

Cheers,
Doru


> On Nov 25, 2016, at 1:30 PM, Thierry Goubier <[hidden email]> wrote:
>
> Hi Kilon,
>
> 2016-11-25 12:13 GMT+01:00 Dimitris Chloupis <[hidden email]>:
> Hey there , I would like to install from SmaCC only Python and C++ parsers , any idea how to add that to my baseline as a dependency ?
>
> Just load the SmaCC-Python package. There is no C++ parser.
>
> Use the following:
>
> spec
>                 baseline: 'SmaCC'
>                     with: [ spec repository: 'github://ThierryGoubier/SmaCC' ];
>                 import: 'SmaCC'.
> spec package: <yourPackage> with: [ spec requires: #('SmaCC-Python') ]
>
> Regards,
>
> Thierry
>
>
>
> ---
> Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast antivirus.
> https://www.avast.com/antivirus
>
>
>

--
www.tudorgirba.com
www.feenk.com

"Speaking louder won't make the point worthier."



Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

Thierry Goubier
In reply to this post by kilon.alios


2016-11-25 14:34 GMT+01:00 Dimitris Chloupis <[hidden email]>:
I am afraid it does not work , I updated as you described my baseline


and it gives me 

Error: Name not found: SmaCC-Python

That's strange. As far as I can see, I use the exact same code in a baseline of mine without errors.

I'll try some tests over the week-end.

Thierry
 


On Fri, Nov 25, 2016 at 2:31 PM Thierry Goubier <[hidden email]> wrote:
Hi Kilon,

2016-11-25 12:13 GMT+01:00 Dimitris Chloupis <[hidden email]>:
Hey there , I would like to install from SmaCC only Python and C++ parsers , any idea how to add that to my baseline as a dependency ?

Just load the SmaCC-Python package. There is no C++ parser.

Use the following:

spec
                baseline: 'SmaCC'
                    with: [ spec repository: 'github://ThierryGoubier/SmaCC' ];
                import: 'SmaCC'.
spec package: <yourPackage> with: [ spec requires: #('SmaCC-Python') ]

Regards,

Thierry
 


---
Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast antivirus.
https://www.avast.com/antivirus




Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

kilon.alios
Are you on Pharo 6 latest image and latest VM ?

Curl get.pharo.org/alpha+vmLatest

Then open package browser and try to install Ephestos
On Fri, 25 Nov 2016 at 17:15, Thierry Goubier <[hidden email]> wrote:
2016-11-25 14:34 GMT+01:00 Dimitris Chloupis <[hidden email]>:
I am afraid it does not work , I updated as you described my baseline


and it gives me 

Error: Name not found: SmaCC-Python

That's strange. As far as I can see, I use the exact same code in a baseline of mine without errors.

I'll try some tests over the week-end.

Thierry
 


On Fri, Nov 25, 2016 at 2:31 PM Thierry Goubier <[hidden email]> wrote:
Hi Kilon,

2016-11-25 12:13 GMT+01:00 Dimitris Chloupis <[hidden email]>:
Hey there , I would like to install from SmaCC only Python and C++ parsers , any idea how to add that to my baseline as a dependency ?

Just load the SmaCC-Python package. There is no C++ parser.

Use the following:

spec
                baseline: 'SmaCC'
                    with: [ spec repository: 'github://ThierryGoubier/SmaCC' ];
                import: 'SmaCC'.
spec package: <yourPackage> with: [ spec requires: #('SmaCC-Python') ]

Regards,

Thierry
 


---
Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast antivirus.
https://www.avast.com/antivirus



Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

Thierry Goubier
Le 25/11/2016 à 17:10, Dimitris Chloupis a écrit :
> Are you on Pharo 6 latest image and latest VM ?
>
> Curl get.pharo.org/alpha+vmLatest <http://get.pharo.org/alpha+vmLatest>
>
> Then open package browser and try to install Ephestos

The configuration browser is still pointing at an older version of
Ephestos (or I should not try to load the stable version?).

Thierry

> On Fri, 25 Nov 2016 at 17:15, Thierry Goubier <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     2016-11-25 14:34 GMT+01:00 Dimitris Chloupis <[hidden email]
>     <mailto:[hidden email]>>:
>
>         I am afraid it does not work , I updated as you described my
>         baseline
>
>         https://github.com/kilon/Ephestos/blob/master/BaselineOfEphestos.package/BaselineOfEphestos.class/instance/baseline..st
>
>         and it gives me
>
>         Error: Name not found: SmaCC-Python
>
>
>     That's strange. As far as I can see, I use the exact same code in a
>     baseline of mine without errors.
>
>     I'll try some tests over the week-end.
>
>     Thierry
>
>
>
>
>         On Fri, Nov 25, 2016 at 2:31 PM Thierry Goubier
>         <[hidden email] <mailto:[hidden email]>>
>         wrote:
>
>             Hi Kilon,
>
>             2016-11-25 12:13 GMT+01:00 Dimitris Chloupis
>             <[hidden email] <mailto:[hidden email]>>:
>
>                 Hey there , I would like to install from SmaCC only
>                 Python and C++ parsers , any idea how to add that to my
>                 baseline as a dependency ?
>
>
>             Just load the SmaCC-Python package. There is no C++ parser.
>
>             Use the following:
>
>             spec
>                             baseline: 'SmaCC'
>                                 with: [ spec repository:
>             'github://ThierryGoubier/SmaCC' ];
>                             import: 'SmaCC'.
>             spec package: <yourPackage> with: [ spec requires:
>             #('SmaCC-Python') ]
>
>             Regards,
>
>             Thierry
>
>
>
>
>                 ---
>                 Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast
>                 antivirus.
>                 https://www.avast.com/antivirus
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

kilon.alios
The version does not matter, the configuration get the github repo as is . So it always get the latest code. I tested also with metacello command, same problem.

On Sat, 26 Nov 2016 at 00:12, Thierry Goubier <[hidden email]> wrote:
Le 25/11/2016 à 17:10, Dimitris Chloupis a écrit :
> Are you on Pharo 6 latest image and latest VM ?
>
> Curl get.pharo.org/alpha+vmLatest <http://get.pharo.org/alpha+vmLatest>
>
> Then open package browser and try to install Ephestos

The configuration browser is still pointing at an older version of
Ephestos (or I should not try to load the stable version?).

Thierry

> On Fri, 25 Nov 2016 at 17:15, Thierry Goubier <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     2016-11-25 14:34 GMT+01:00 Dimitris Chloupis <[hidden email]
>     <mailto:[hidden email]>>:
>
>         I am afraid it does not work , I updated as you described my
>         baseline
>
>         https://github.com/kilon/Ephestos/blob/master/BaselineOfEphestos.package/BaselineOfEphestos.class/instance/baseline..st
>
>         and it gives me
>
>         Error: Name not found: SmaCC-Python
>
>
>     That's strange. As far as I can see, I use the exact same code in a
>     baseline of mine without errors.
>
>     I'll try some tests over the week-end.
>
>     Thierry
>
>
>
>
>         On Fri, Nov 25, 2016 at 2:31 PM Thierry Goubier
>         <[hidden email] <mailto:[hidden email]>>
>         wrote:
>
>             Hi Kilon,
>
>             2016-11-25 12:13 GMT+01:00 Dimitris Chloupis
>             <[hidden email] <mailto:[hidden email]>>:
>
>                 Hey there , I would like to install from SmaCC only
>                 Python and C++ parsers , any idea how to add that to my
>                 baseline as a dependency ?
>
>
>             Just load the SmaCC-Python package. There is no C++ parser.
>
>             Use the following:
>
>             spec
>                             baseline: 'SmaCC'
>                                 with: [ spec repository:
>             'github://ThierryGoubier/SmaCC' ];
>                             import: 'SmaCC'.
>             spec package: <yourPackage> with: [ spec requires:
>             #('SmaCC-Python') ]
>
>             Regards,
>
>             Thierry
>
>
>
>
>                 ---
>                 Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα Avast
>                 antivirus.
>                 https://www.avast.com/antivirus
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

Thierry Goubier
Le 25/11/2016 à 23:16, Dimitris Chloupis a écrit :
> The version does not matter, the configuration get the github repo as is
> . So it always get the latest code. I tested also with metacello
> command, same problem.

Ok, I think I found out why when debugging the script. Maybe Dale can
confirm.

You may import only one baseline (i.e. in the debug, I see only Nireas
as imported baseline).

Dale, how do we do to import from more than one Baseline in another
baseline?

Thierry

> On Sat, 26 Nov 2016 at 00:12, Thierry Goubier <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Le 25/11/2016 à 17:10, Dimitris Chloupis a écrit :
>     > Are you on Pharo 6 latest image and latest VM ?
>     >
>     > Curl get.pharo.org/alpha+vmLatest
>     <http://get.pharo.org/alpha+vmLatest>
>     <http://get.pharo.org/alpha+vmLatest>
>     >
>     > Then open package browser and try to install Ephestos
>
>     The configuration browser is still pointing at an older version of
>     Ephestos (or I should not try to load the stable version?).
>
>     Thierry
>
>     > On Fri, 25 Nov 2016 at 17:15, Thierry Goubier
>     <[hidden email] <mailto:[hidden email]>
>     > <mailto:[hidden email]
>     <mailto:[hidden email]>>> wrote:
>     >
>     >     2016-11-25 14:34 GMT+01:00 Dimitris Chloupis
>     <[hidden email] <mailto:[hidden email]>
>     >     <mailto:[hidden email] <mailto:[hidden email]>>>:
>     >
>     >         I am afraid it does not work , I updated as you described my
>     >         baseline
>     >
>     >
>      https://github.com/kilon/Ephestos/blob/master/BaselineOfEphestos.package/BaselineOfEphestos.class/instance/baseline..st
>     >
>     >         and it gives me
>     >
>     >         Error: Name not found: SmaCC-Python
>     >
>     >
>     >     That's strange. As far as I can see, I use the exact same code
>     in a
>     >     baseline of mine without errors.
>     >
>     >     I'll try some tests over the week-end.
>     >
>     >     Thierry
>     >
>     >
>     >
>     >
>     >         On Fri, Nov 25, 2016 at 2:31 PM Thierry Goubier
>     >         <[hidden email]
>     <mailto:[hidden email]> <mailto:[hidden email]
>     <mailto:[hidden email]>>>
>     >         wrote:
>     >
>     >             Hi Kilon,
>     >
>     >             2016-11-25 12:13 GMT+01:00 Dimitris Chloupis
>     >             <[hidden email] <mailto:[hidden email]>
>     <mailto:[hidden email] <mailto:[hidden email]>>>:
>     >
>     >                 Hey there , I would like to install from SmaCC only
>     >                 Python and C++ parsers , any idea how to add that
>     to my
>     >                 baseline as a dependency ?
>     >
>     >
>     >             Just load the SmaCC-Python package. There is no C++
>     parser.
>     >
>     >             Use the following:
>     >
>     >             spec
>     >                             baseline: 'SmaCC'
>     >                                 with: [ spec repository:
>     >             'github://ThierryGoubier/SmaCC' ];
>     >                             import: 'SmaCC'.
>     >             spec package: <yourPackage> with: [ spec requires:
>     >             #('SmaCC-Python') ]
>     >
>     >             Regards,
>     >
>     >             Thierry
>     >
>     >
>     >
>     >
>     >                 ---
>     >                 Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα
>     Avast
>     >                 antivirus.
>     >                 https://www.avast.com/antivirus
>     >
>     >
>     >
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [SmaCC] Partial Installation

kilon.alios
Thank Thierry you pointed me to the right direction and after that because I knew what the problem was I found the solution, it needs the addition of the require message to create a group that is then loaded . I have corrected the baseline


it now works like a charm :) 

Awesome 

On Sun, Nov 27, 2016 at 12:48 AM Thierry Goubier <[hidden email]> wrote:
Le 25/11/2016 à 23:16, Dimitris Chloupis a écrit :
> The version does not matter, the configuration get the github repo as is
> . So it always get the latest code. I tested also with metacello
> command, same problem.

Ok, I think I found out why when debugging the script. Maybe Dale can
confirm.

You may import only one baseline (i.e. in the debug, I see only Nireas
as imported baseline).

Dale, how do we do to import from more than one Baseline in another
baseline?

Thierry

> On Sat, 26 Nov 2016 at 00:12, Thierry Goubier <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Le 25/11/2016 à 17:10, Dimitris Chloupis a écrit :
>     > Are you on Pharo 6 latest image and latest VM ?
>     >
>     > Curl get.pharo.org/alpha+vmLatest
>     <http://get.pharo.org/alpha+vmLatest>
>     <http://get.pharo.org/alpha+vmLatest>
>     >
>     > Then open package browser and try to install Ephestos
>
>     The configuration browser is still pointing at an older version of
>     Ephestos (or I should not try to load the stable version?).
>
>     Thierry
>
>     > On Fri, 25 Nov 2016 at 17:15, Thierry Goubier
>     <[hidden email] <mailto:[hidden email]>
>     > <mailto:[hidden email]
>     <mailto:[hidden email]>>> wrote:
>     >
>     >     2016-11-25 14:34 GMT+01:00 Dimitris Chloupis
>     <[hidden email] <mailto:[hidden email]>
>     >     <mailto:[hidden email] <mailto:[hidden email]>>>:
>     >
>     >         I am afraid it does not work , I updated as you described my
>     >         baseline
>     >
>     >
>      https://github.com/kilon/Ephestos/blob/master/BaselineOfEphestos.package/BaselineOfEphestos.class/instance/baseline..st
>     >
>     >         and it gives me
>     >
>     >         Error: Name not found: SmaCC-Python
>     >
>     >
>     >     That's strange. As far as I can see, I use the exact same code
>     in a
>     >     baseline of mine without errors.
>     >
>     >     I'll try some tests over the week-end.
>     >
>     >     Thierry
>     >
>     >
>     >
>     >
>     >         On Fri, Nov 25, 2016 at 2:31 PM Thierry Goubier
>     >         <[hidden email]
>     <mailto:[hidden email]> <mailto:[hidden email]
>     <mailto:[hidden email]>>>
>     >         wrote:
>     >
>     >             Hi Kilon,
>     >
>     >             2016-11-25 12:13 GMT+01:00 Dimitris Chloupis
>     >             <[hidden email] <mailto:[hidden email]>
>     <mailto:[hidden email] <mailto:[hidden email]>>>:
>     >
>     >                 Hey there , I would like to install from SmaCC only
>     >                 Python and C++ parsers , any idea how to add that
>     to my
>     >                 baseline as a dependency ?
>     >
>     >
>     >             Just load the SmaCC-Python package. There is no C++
>     parser.
>     >
>     >             Use the following:
>     >
>     >             spec
>     >                             baseline: 'SmaCC'
>     >                                 with: [ spec repository:
>     >             'github://ThierryGoubier/SmaCC' ];
>     >                             import: 'SmaCC'.
>     >             spec package: <yourPackage> with: [ spec requires:
>     >             #('SmaCC-Python') ]
>     >
>     >             Regards,
>     >
>     >             Thierry
>     >
>     >
>     >
>     >
>     >                 ---
>     >                 Αυτό το e-mail ελέγχθηκε για ιούς από το πρόγραμμα
>     Avast
>     >                 antivirus.
>     >                 https://www.avast.com/antivirus
>     >
>     >
>     >
>
>