Tonel>>sourceDir

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

Tonel>>sourceDir

Ben Coman

For Exercism we are using Tonel in Pharo 6.1. 
We are getting an error "Instance of TonelWriter did not understand #sourceDir:"
but the same code works fine on Pharo 7.

The 6.1 image had been updated to latest Iceberg per https://github.com/pharo-vcs/iceberg#for-pharo-61, so I used ICeberg to updated to latest "master" of pharo-vcs/tonel but no avail.

In Pharo 7 I see TonelWriter>>sourceDir in protocol "accessing"
but if I search for "sourceDir" in the pharo-vcs/tonel repo it doesn't find it...

I'm having trouble understanding where the #sourceDir method comes from in Pharo 7.
Which repo/branch can I load that from into another system?

cheers -ben
Reply | Threaded
Open this post in threaded view
|

Tonel sourceDir

Ben Coman
This did make it through the mail list in 8 hours, so mabe the double arrow in the subject line confused things.

Trying again...

---------- Forwarded message ---------
From: Ben Coman <[hidden email]>
Date: Sun, 9 Dec 2018 at 23:05
Subject: Tonel>>sourceDir
To: Pharo Development List <[hidden email]>



For Exercism we are using Tonel in Pharo 6.1. 
We are getting an error "Instance of TonelWriter did not understand #sourceDir:"
but the same code works fine on Pharo 7.

The 6.1 image had been updated to latest Iceberg per https://github.com/pharo-vcs/iceberg#for-pharo-61, so I used ICeberg to updated to latest "master" of pharo-vcs/tonel but no avail.

In Pharo 7 I see TonelWriter>>sourceDir in protocol "accessing"
but if I search for "sourceDir" in the pharo-vcs/tonel repo it doesn't find it...

I'm having trouble understanding where the #sourceDir method comes from in Pharo 7.
Which repo/branch can I load that from into another system?

cheers -ben
Reply | Threaded
Open this post in threaded view
|

Fwd: Tonel sourceDir

Ben Coman

Okay, that was 13 hours ago.  Once again...
(CCing Esteban & Guille. Can you guys let me know if its at least getting out)  

---------- Forwarded message ---------
From: Ben Coman <[hidden email]>
Date: Mon, 10 Dec 2018 at 06:18
Subject: Tonel sourceDir
To: Pharo Development List <[hidden email]>


This did make it through the mail list in 8 hours, so mabe the double arrow in the subject line confused things.

Trying again...

---------- Forwarded message ---------
From: Ben Coman <[hidden email]>
Date: Sun, 9 Dec 2018 at 23:05
Subject: Tonel>>sourceDir
To: Pharo Development List <[hidden email]>



For Exercism we are using Tonel in Pharo 6.1. 
We are getting an error "Instance of TonelWriter did not understand #sourceDir:"
but the same code works fine on Pharo 7.

The 6.1 image had been updated to latest Iceberg per https://github.com/pharo-vcs/iceberg#for-pharo-61, so I used ICeberg to updated to latest "master" of pharo-vcs/tonel but no avail.

In Pharo 7 I see TonelWriter>>sourceDir in protocol "accessing"
but if I search for "sourceDir" in the pharo-vcs/tonel repo it doesn't find it...

I'm having trouble understanding where the #sourceDir method comes from in Pharo 7.
Which repo/branch can I load that from into another system?

cheers -ben
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Tonel sourceDir

Guillermo Polito
Hi Ben, I'm going to check emails on wednesday. I'm about to be on planes for 16~20 hours :)

Le lun. 10 déc. 2018 à 08:29, Ben Coman <[hidden email]> a écrit :

Okay, that was 13 hours ago.  Once again...
(CCing Esteban & Guille. Can you guys let me know if its at least getting out)  

---------- Forwarded message ---------
From: Ben Coman <[hidden email]>
Date: Mon, 10 Dec 2018 at 06:18
Subject: Tonel sourceDir
To: Pharo Development List <[hidden email]>


This did make it through the mail list in 8 hours, so mabe the double arrow in the subject line confused things.

Trying again...

---------- Forwarded message ---------
From: Ben Coman <[hidden email]>
Date: Sun, 9 Dec 2018 at 23:05
Subject: Tonel>>sourceDir
To: Pharo Development List <[hidden email]>



For Exercism we are using Tonel in Pharo 6.1. 
We are getting an error "Instance of TonelWriter did not understand #sourceDir:"
but the same code works fine on Pharo 7.

The 6.1 image had been updated to latest Iceberg per https://github.com/pharo-vcs/iceberg#for-pharo-61, so I used ICeberg to updated to latest "master" of pharo-vcs/tonel but no avail.

In Pharo 7 I see TonelWriter>>sourceDir in protocol "accessing"
but if I search for "sourceDir" in the pharo-vcs/tonel repo it doesn't find it...

I'm having trouble understanding where the #sourceDir method comes from in Pharo 7.
Which repo/branch can I load that from into another system?

cheers -ben
--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13

Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Tonel sourceDir

Torsten Bergmann
Hi Ben,

in Pharo 7 Iceberg works different - the source dir is part of the metadata in the repo
(right click on a repo and say "Repair" so it offers you to add metadata).


So for instance

   https://github.com/astares/Pharo-OS-Windows

is already converted to the "latest and greates" and has a .project file with

{
        'srcDirectory' : 'src'
}

So you just can load it without giving the source dir explicitly.

Also note that the src file directory has .properties file depicting the format:

{
        #format : #tonel
}

Tonel is now recommended. Hope that helps a little bit.

Thanks
T.

Reply | Threaded
Open this post in threaded view
|

Re: Tonel>>sourceDir

alistairgrant
In reply to this post by Ben Coman
Hi Ben,

On Sun, 9 Dec 2018 at 16:06, Ben Coman <[hidden email]> wrote:

>
>
> For Exercism we are using Tonel in Pharo 6.1.
> We are getting an error "Instance of TonelWriter did not understand #sourceDir:"
> but the same code works fine on Pharo 7.
>
> The 6.1 image had been updated to latest Iceberg per https://github.com/pharo-vcs/iceberg#for-pharo-61, so I used ICeberg to updated to latest "master" of pharo-vcs/tonel but no avail.
>
> In Pharo 7 I see TonelWriter>>sourceDir in protocol "accessing"
> but if I search for "sourceDir" in the pharo-vcs/tonel repo it doesn't find it...
> https://github.com/pharo-vcs/tonel/search?q=sourcedir&unscoped_q=sourcedir
>
> I'm having trouble understanding where the #sourceDir method comes from in Pharo 7.
> Which repo/branch can I load that from into another system?

It seems like v1.0.9 has it and master doesn't, see:

https://github.com/pharo-vcs/tonel/tree/v1.0.9/MonticelloTonel-Core.package/TonelWriter.class/instance

(based on just hunting around my Pharo 7 image, I don't really
understand the code :-))

HTH,
Alistair

Reply | Threaded
Open this post in threaded view
|

Re: Tonel>>sourceDir

Ben Coman


On Tue, 11 Dec 2018 at 16:30, Alistair Grant <[hidden email]> wrote:
Hi Ben,

On Sun, 9 Dec 2018 at 16:06, Ben Coman <[hidden email]> wrote:
>
>
> For Exercism we are using Tonel in Pharo 6.1.
> We are getting an error "Instance of TonelWriter did not understand #sourceDir:"
> but the same code works fine on Pharo 7.
>
> The 6.1 image had been updated to latest Iceberg per https://github.com/pharo-vcs/iceberg#for-pharo-61, so I used ICeberg to updated to latest "master" of pharo-vcs/tonel but no avail.
>
> In Pharo 7 I see TonelWriter>>sourceDir in protocol "accessing"
> but if I search for "sourceDir" in the pharo-vcs/tonel repo it doesn't find it...
> https://github.com/pharo-vcs/tonel/search?q=sourcedir&unscoped_q=sourcedir
>
> I'm having trouble understanding where the #sourceDir method comes from in Pharo 7.
> Which repo/branch can I load that from into another system?

It seems like v1.0.9 has it and master doesn't, see:

https://github.com/pharo-vcs/tonel/tree/v1.0.9/MonticelloTonel-Core.package/TonelWriter.class/instance

(based on just hunting around my Pharo 7 image, I don't really
understand the code :-))

Great work finding that.  Thanks Alistair.

Now the next question to the list, how would I determine which version of Tonel (e.g. v1.0.9 or v1.0.11 or commit hash) 
is loaded in an Image?

cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: Tonel>>sourceDir

alistairgrant
Hi Ben,

On Tue, 11 Dec 2018 at 12:32, Ben Coman <[hidden email]> wrote:
>
> Now the next question to the list, how would I determine which version of Tonel (e.g. v1.0.9 or v1.0.11 or commit hash)
> is loaded in an Image?

- Open the Monticello Browser
- Find MonticelloTonel-Core
- Look at the repositories, in my (slightly older) Pharo 7 image it
is:  github://pharo-vcs/tonel:v1.0.9

Cheers,
Alistair