Hi,
some time ago I started a small Pharo based project. For versioning I started to use GitFileTree and pushed the code to GitHub together with a ConfigurationOf created with Versionner. But only after a more recent email from Kilon on this list |
Hi,
sorry for the unfinished email upfront. I accidentially hit the send button before I was finished... So here we go again: Some time ago I started a small Pharo based project but didn't want to announce it before I knew how to load it conveniently. For versioning I started using GitFileTree and pushed the code to GitHub together with a ConfigurationOf created with Versionner. Only after a more recent email from Kilon on this list I figured out that the project should be easily loadable with the following commands: Metacello new configuration:'HttpExplorer'; repository:'github://mkroehnert/httpexplorer:master'; get. Metacello new configuration:'HttpExplorer'; repository:'github://mkroehnert/httpexplorer:master'; load. Executing the first command succeeds and the ConfigurationOfHttpExplorer appears in the Browser. But when I try to execute the load command I get the following error (unfortunately I don't yet know how to copy a complete stacktrace): Error: Instances of UndefinedObject are not indexable This is a result from executing ZnClient>>getConnectionAndExecute where 'request url' returns the following address: http://:80/[hidden email]:mkroehnert/httpexplorer.git/?C=M;O%3DD I guess that the error is probably in the ConfigurationOf but I am a bit lost as to where I should dig further. It would be great if anyone could point me in the right direction of where to look or tell what went wrong. Thanks in advance, Manfred |
One more thing, I am using a Pharo 30862 image on OS X to evaluate the code.
Thanks, Manfred On Mon, Feb 2, 2015 at 10:21 PM, Manfred Kröhnert <[hidden email]> wrote:
|
In reply to this post by Manfred Kröhnert
Manfred,
When you use github, you don't need nor do you want to use a ConfigurationOf. git manages the versions for you so you don't need to define versions in the ConfigurationOf. If you want versions for a git repository, use tags. You still need to specify load order and project dependencies. For an example you can look at[1] or download the baseline: Metacello new baseline: 'External'; repository: 'github://dalehenrich/external:master/repository'; get. No need to specify a repository in the baselineOf, since the repository is derived from the location of the Baseline itself. Dale [1] https://github.com/dalehenrich/external/blob/master/repository/BaselineOfExternal.package/BaselineOfExternal.class/instance/baseline..st On 02/02/2015 01:21 PM, Manfred
Kröhnert wrote:
|
Hello Dale,
On Mon, Feb 2, 2015 at 10:52 PM, Dale Henrichs <[hidden email]> wrote:
thanks for the fast reply. I'll give it a try as soon as possible and report back if I should encounter other issues. Best, Manfred
|
In reply to this post by Dale Henrichs-3
Hello Dale,
On Mon, Feb 2, 2015 at 10:52 PM, Dale Henrichs <[hidden email]> wrote:
I have question regarding BaselineOf. If my package is depending on the Zinc-HTTP package, would the following baseline work for Pharo3 (which already includes Zinc)? baseline: spec <baseline> spec package: 'HttpExplorer' with: [spec requires: 'Zinc-Http']; yourself. Or is something like the following required in addition to make the configuration complete: spec project: 'Zinc-Http' with: [ spec repository: 'http://mc.stfx.eu/ZincHTTPComponents'; loads: #('Core'); version: #stable ]. Thanks, Manfred
|
It is always better to depend on Zinc #stable since it still evolves while Pharo 3 does not.
> On 08 Feb 2015, at 11:08, Manfred Kröhnert <[hidden email]> wrote: > > Hello Dale, > > On Mon, Feb 2, 2015 at 10:52 PM, Dale Henrichs <[hidden email]> wrote: > Manfred, > > When you use github, you don't need nor do you want to use a ConfigurationOf. git manages the versions for you so you don't need to define versions in the ConfigurationOf. If you want versions for a git repository, use tags. > > You still need to specify load order and project dependencies. For an example you can look at[1] or download the baseline: > > Metacello new > baseline: 'External'; > repository: 'github://dalehenrich/external:master/repository'; > get. > > No need to specify a repository in the baselineOf, since the repository is derived from the location of the Baseline itself. > > Dale > > [1]https://github.com/dalehenrich/external/blob/master/repository/BaselineOfExternal.package/BaselineOfExternal.class/instance/baseline..st > > > I have question regarding BaselineOf. > If my package is depending on the Zinc-HTTP package, would the following baseline work for Pharo3 (which already includes Zinc)? > > baseline: spec > <baseline> > spec > package: 'HttpExplorer' with: [spec requires: 'Zinc-Http']; > yourself. > > Or is something like the following required in addition to make the configuration complete: > > spec project: 'Zinc-Http' with: [ > spec > repository: 'http://mc.stfx.eu/ZincHTTPComponents'; > loads: #('Core'); > version: #stable > ]. > > Thanks, > Manfred > > > On 02/02/2015 01:21 PM, Manfred Kröhnert wrote: >> Hi, >> >> sorry for the unfinished email upfront. I accidentially hit the send button before I was finished... >> So here we go again: >> >> Some time ago I started a small Pharo based project but didn't want to announce it before I knew how to load it conveniently. >> >> For versioning I started using GitFileTree and pushed the code to GitHub together with a ConfigurationOf created with Versionner. >> >> Only after a more recent email from Kilon on this list I figured out that the project should be easily loadable with the following commands: >> >> Metacello new >> configuration:'HttpExplorer'; >> repository:'github://mkroehnert/httpexplorer:master'; >> get. >> >> Metacello new >> configuration:'HttpExplorer'; >> repository:'github://mkroehnert/httpexplorer:master'; >> load. >> >> Executing the first command succeeds and the ConfigurationOfHttpExplorer appears in the Browser. >> But when I try to execute the load command I get the following error (unfortunately I don't yet know how to copy a complete stacktrace): >> >> Error: Instances of UndefinedObject are not indexable >> >> This is a result from executing ZnClient>>getConnectionAndExecute where 'request url' returns the following address: >> >> http://:80/git@...:mkroehnert/httpexplorer.git/?C=M;O%3DD >> >> I guess that the error is probably in the ConfigurationOf but I am a bit lost as to where I should dig further. >> It would be great if anyone could point me in the right direction of where to look or tell what went wrong. >> >> Thanks in advance, >> Manfred |
Hello Sven,
On Sun, Feb 8, 2015 at 11:32 AM, Sven Van Caekenberghe <[hidden email]> wrote: It is always better to depend on Zinc #stable since it still evolves while Pharo 3 does not. thanks for your advice. This does mean that I should include the "spec project: 'Zinc-Http' with: [ ..." lines, correct? Thanks, Manfred
|
> On 08 Feb 2015, at 12:03, Manfred Kröhnert <[hidden email]> wrote: > > Hello Sven, > > On Sun, Feb 8, 2015 at 11:32 AM, Sven Van Caekenberghe <[hidden email]> wrote: > It is always better to depend on Zinc #stable since it still evolves while Pharo 3 does not. > > thanks for your advice. > This does mean that I should include the "spec project: 'Zinc-Http' with: [ ..." lines, correct? Yes, I think so, I have project: 'ZincHTTPComponents' with: [ spec className: 'ConfigurationOfZincHTTPComponents'; repository: 'http://mc.stfx.eu/ZincHTTPComponents'; loads: #('Core' 'Tests' 'REST' 'AWS') ]; which groups you load it up to you, adding the version is OK I guess (I think it defaults to stable), I think the className is needed because of the odd casing. But I can't say I am a Metacello expert ... > Thanks, > Manfred > > > > On 08 Feb 2015, at 11:08, Manfred Kröhnert <[hidden email]> wrote: > > > > Hello Dale, > > > > On Mon, Feb 2, 2015 at 10:52 PM, Dale Henrichs <[hidden email]> wrote: > > Manfred, > > > > When you use github, you don't need nor do you want to use a ConfigurationOf. git manages the versions for you so you don't need to define versions in the ConfigurationOf. If you want versions for a git repository, use tags. > > > > You still need to specify load order and project dependencies. For an example you can look at[1] or download the baseline: > > > > Metacello new > > baseline: 'External'; > > repository: 'github://dalehenrich/external:master/repository'; > > get. > > > > No need to specify a repository in the baselineOf, since the repository is derived from the location of the Baseline itself. > > > > Dale > > > > [1]https://github.com/dalehenrich/external/blob/master/repository/BaselineOfExternal.package/BaselineOfExternal.class/instance/baseline..st > > > > > > I have question regarding BaselineOf. > > If my package is depending on the Zinc-HTTP package, would the following baseline work for Pharo3 (which already includes Zinc)? > > > > baseline: spec > > <baseline> > > spec > > package: 'HttpExplorer' with: [spec requires: 'Zinc-Http']; > > yourself. > > > > Or is something like the following required in addition to make the configuration complete: > > > > spec project: 'Zinc-Http' with: [ > > spec > > repository: 'http://mc.stfx.eu/ZincHTTPComponents'; > > loads: #('Core'); > > version: #stable > > ]. > > > > Thanks, > > Manfred > > > > > > On 02/02/2015 01:21 PM, Manfred Kröhnert wrote: > >> Hi, > >> > >> sorry for the unfinished email upfront. I accidentially hit the send button before I was finished... > >> So here we go again: > >> > >> Some time ago I started a small Pharo based project but didn't want to announce it before I knew how to load it conveniently. > >> > >> For versioning I started using GitFileTree and pushed the code to GitHub together with a ConfigurationOf created with Versionner. > >> > >> Only after a more recent email from Kilon on this list I figured out that the project should be easily loadable with the following commands: > >> > >> Metacello new > >> configuration:'HttpExplorer'; > >> repository:'github://mkroehnert/httpexplorer:master'; > >> get. > >> > >> Metacello new > >> configuration:'HttpExplorer'; > >> repository:'github://mkroehnert/httpexplorer:master'; > >> load. > >> > >> Executing the first command succeeds and the ConfigurationOfHttpExplorer appears in the Browser. > >> But when I try to execute the load command I get the following error (unfortunately I don't yet know how to copy a complete stacktrace): > >> > >> Error: Instances of UndefinedObject are not indexable > >> > >> This is a result from executing ZnClient>>getConnectionAndExecute where 'request url' returns the following address: > >> > >> http://:80/git@...:mkroehnert/httpexplorer.git/?C=M;O%3DD > >> > >> I guess that the error is probably in the ConfigurationOf but I am a bit lost as to where I should dig further. > >> It would be great if anyone could point me in the right direction of where to look or tell what went wrong. > >> > >> Thanks in advance, > >> Manfred |
Thanks Dale and Sven, by now I have working Baseline I can use to load the project. Best, Manfred On Sun, Feb 8, 2015 at 1:06 PM, Sven Van Caekenberghe <[hidden email]> wrote:
|
In reply to this post by Sven Van Caekenberghe-2
On 2/8/15 4:06 AM, Sven Van Caekenberghe wrote: >> On 08 Feb 2015, at 12:03, Manfred Kröhnert <[hidden email]> wrote: >> >> Hello Sven, >> >> On Sun, Feb 8, 2015 at 11:32 AM, Sven Van Caekenberghe <[hidden email]> wrote: >> It is always better to depend on Zinc #stable since it still evolves while Pharo 3 does not. >> >> thanks for your advice. >> This does mean that I should include the "spec project: 'Zinc-Http' with: [ ..." lines, correct? > Yes, I think so, I have > > project: 'ZincHTTPComponents' with: [ > spec > className: 'ConfigurationOfZincHTTPComponents'; > repository: 'http://mc.stfx.eu/ZincHTTPComponents'; > loads: #('Core' 'Tests' 'REST' 'AWS') ]; > > which groups you load it up to you, adding the version is OK I guess (I think it defaults to stable), I think the className is needed because of the odd casing. > > But I can't say I am a Metacello expert ... > If you don't specify a verionString, the default is #bleedingEdge. If you want #stable, then it should be explicitly specified. Secondly, your zinc spec (except for the versionString is correct. With the latest versions of Metacello, you can eliminate the need to specify a className by using configuration: or baseline: in place of project: like so: configuration: 'ZincHTTPComponents' with: [ spec versionString: #stable; repository: 'http://mc.stfx.eu/ZincHTTPComponents'; loads: #('Core' 'Tests' 'REST' 'AWS') ]; Dale |
OK, thanks Dale.
> On 08 Feb 2015, at 17:22, Dale Henrichs <[hidden email]> wrote: > > > On 2/8/15 4:06 AM, Sven Van Caekenberghe wrote: >>> On 08 Feb 2015, at 12:03, Manfred Kröhnert <[hidden email]> wrote: >>> >>> Hello Sven, >>> >>> On Sun, Feb 8, 2015 at 11:32 AM, Sven Van Caekenberghe <[hidden email]> wrote: >>> It is always better to depend on Zinc #stable since it still evolves while Pharo 3 does not. >>> >>> thanks for your advice. >>> This does mean that I should include the "spec project: 'Zinc-Http' with: [ ..." lines, correct? >> Yes, I think so, I have >> >> project: 'ZincHTTPComponents' with: [ >> spec >> className: 'ConfigurationOfZincHTTPComponents'; >> repository: 'http://mc.stfx.eu/ZincHTTPComponents'; >> loads: #('Core' 'Tests' 'REST' 'AWS') ]; >> >> which groups you load it up to you, adding the version is OK I guess (I think it defaults to stable), I think the className is needed because of the odd casing. >> >> But I can't say I am a Metacello expert ... >> > Sven, for not being a Metacello expert you did a good job. Just two things. > > If you don't specify a verionString, the default is #bleedingEdge. If you want #stable, then it should be explicitly specified. > > Secondly, your zinc spec (except for the versionString is correct. With the latest versions of Metacello, you can eliminate the need to specify a className by using configuration: or baseline: in place of project: like so: > > configuration: 'ZincHTTPComponents' with: [ > spec > versionString: #stable; > repository: 'http://mc.stfx.eu/ZincHTTPComponents'; > loads: #('Core' 'Tests' 'REST' 'AWS') ]; > > Dale |
Free forum by Nabble | Edit this page |