Metacello questions

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

Metacello questions

BrunoBB
Hi all,

(Not sure if i should post this here or where ?)

I have finished the first version of a GS application (which has a couple of package).
(i already read metacello.pdf).

Trying to create my ConfigurationOfXXX i get this error:
a UserDefinedError occurred (error 2318), reason:halt, The imported version:'1.0-baseline' referenced from the method: #'version100:' in configuration ConfigurationOfOrbeon has not been defined.

It seems is not matching #baseline100 with #version100 :

baseline100: spec
        <version: '1.0--baseline'>

        spec for: #common do: [
                spec repository: 'http://ss3.gemstone.com/ss/Orbeon'.
                spec project: 'XMLSupport' with: [
                        spec className: 'ConfigurationOfXMLSupport';
                                versionString: '';
                                loads: #('ALL');
                                file: 'ConfigurationOfXMLSupport';
                                repository: 'http://seaside.gemtalksystems.com/ss/XMLSupport'].
                spec package: 'Orbeon'.].

version100: spec
    <version: '1.0' imports: #('1.0-baseline')>
        spec for: #common do: [
                spec blessing: #release.
                spec author: 'brunobb'.
                spec project: 'XML-Parser' with: '1.1.7'.
                spec package: 'Orbeon' with: 'Orbeon-BrunoBB-0.992'. ]

Any idea what is worng ?

Regards,
Bruno
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] Metacello questions

Johan Brichau-3
Hi Bruno,

The baseline says:
> <version: '1.0--baseline'>

The version says:
> <version: '1.0' imports: #('1.0-baseline')>


Does it work if you change the baseline to:
<version: '1.0-baseline'>

cheers
Johan

On 27 May 2014, at 16:18, BrunoBB <[hidden email]> wrote:

> Hi all,
>
> (Not sure if i should post this here or where ?)
>
> I have finished the first version of a GS application (which has a couple of
> package).
> (i already read metacello.pdf).
>
> Trying to create my ConfigurationOfXXX i get this error:
> a UserDefinedError occurred (error 2318), reason:halt, The imported
> version:'1.0-baseline' referenced from the method: #'version100:' in
> configuration ConfigurationOfOrbeon has not been defined.
>
> It seems is not matching #baseline100 with #version100 :
>
> baseline100: spec
> <version: '1.0--baseline'>
>
> spec for: #common do: [
> spec repository: 'http://ss3.gemstone.com/ss/Orbeon'.
> spec project: 'XMLSupport' with: [
> spec className: 'ConfigurationOfXMLSupport';
> versionString: '';
> loads: #('ALL');
> file: 'ConfigurationOfXMLSupport';
> repository: 'http://seaside.gemtalksystems.com/ss/XMLSupport'].
> spec package: 'Orbeon'.].
>
> version100: spec
>    <version: '1.0' imports: #('1.0-baseline')>
> spec for: #common do: [
> spec blessing: #release.
> spec author: 'brunobb'.
> spec project: 'XML-Parser' with: '1.1.7'.
> spec package: 'Orbeon' with: 'Orbeon-BrunoBB-0.992'. ]
>
> Any idea what is worng ?
>
> Regards,
> Bruno
>
>
>
>
> --
> View this message in context: http://forum.world.st/Metacello-questions-tp4760533.html
> Sent from the GLASS mailing list archive at Nabble.com.
> _______________________________________________
> Glass mailing list
> [hidden email]
> http://lists.gemtalksystems.com/mailman/listinfo/glass

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] Metacello questions

BrunoBB
Hi,

Ok, thanks, error fixed.

Now i get:
a MessageNotUnderstood occurred (error 2010), a UndefinedObject does not understand  #'loadUsing:'

I will further read metacello.pdf to find out what is going on...

Stack:
MessageNotUnderstood >> defaultAction (envId 0) @2 line 3
AbstractException >> _signalWith: (envId 0) @5 line 25
AbstractException >> signal (envId 0) @2 line 47
Object >> doesNotUnderstand: (envId 0) @9 line 10
Object >> _doesNotUnderstand:args:envId:reason: (envId 0) @7 line 12
MetacelloMCProjectSpec >> ensureLoadedForDevelopmentUsing: (envId 0) @39 line 27
[] in  MetacelloMCVersionSpecLoader >> load (envId 0) @2 line 8
Collection >> do: (envId 0) @5 line 10
MetacelloMCVersionSpecLoader >> load (envId 0) @8 line 7
MetacelloMCVersion >> executeLoadFromArray: (envId 0) @9 line 7
[] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @2 line 11
[] in  MetacelloPlatform >> useStackCacheDuring:defaultDictionary: (envId 0) @2 line 9
ExecBlock >> on:do: (envId 0) @3 line 42
MetacelloPlatform >> useStackCacheDuring:defaultDictionary: (envId 0) @9 line 10
[] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @6 line 11
ExecBlock >> ensure: (envId 0) @2 line 12
[] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @2 line 12
MetacelloPlatform >> do:displaying: (envId 0) @2 line 3
MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @17 line 7
[] in  MetacelloMCVersion >> doLoadRequiredFromArray: (envId 0) @3 line 10
ExecBlock >> ensure: (envId 0) @2 line 12
MetacelloMCVersion >> doLoadRequiredFromArray: (envId 0) @22 line 16
MetacelloMCVersion >> load (envId 0) @4 line 3
Executed Code            @4 line 1
GsNMethod class >> _gsReturnToC (envId 0) @1 line 1
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] Metacello questions

Dale Henrichs-3
Bruno,

Try validating your configuration using this expression:

  MetacelloToolBox validateConfiguration: ConfigurationOfXXX

and inspect the  result. If you have trouble interpretting the results print out the lines that don't make sense and I'll try to help. The results of the validation are easier to deal with than walkbacks:)

 I suspect that you are referencing a project named  'XML-Parser' from version:, but you've defined a project named  'XMLSupport' in the baseline: ...

Dale


On Tue, May 27, 2014 at 8:00 AM, BrunoBB <[hidden email]> wrote:
Hi,

Ok, thanks, error fixed.

Now i get:
a MessageNotUnderstood occurred (error 2010), a UndefinedObject does not
understand  #'loadUsing:'

I will further read metacello.pdf to find out what is going on...

Stack:
MessageNotUnderstood >> defaultAction (envId 0) @2 line 3
AbstractException >> _signalWith: (envId 0) @5 line 25
AbstractException >> signal (envId 0) @2 line 47
Object >> doesNotUnderstand: (envId 0) @9 line 10
Object >> _doesNotUnderstand:args:envId:reason: (envId 0) @7 line 12
MetacelloMCProjectSpec >> ensureLoadedForDevelopmentUsing: (envId 0) @39
line 27
[] in  MetacelloMCVersionSpecLoader >> load (envId 0) @2 line 8
Collection >> do: (envId 0) @5 line 10
MetacelloMCVersionSpecLoader >> load (envId 0) @8 line 7
MetacelloMCVersion >> executeLoadFromArray: (envId 0) @9 line 7
[] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @2 line 11
[] in  MetacelloPlatform >> useStackCacheDuring:defaultDictionary: (envId 0)
@2 line 9
ExecBlock >> on:do: (envId 0) @3 line 42
MetacelloPlatform >> useStackCacheDuring:defaultDictionary: (envId 0) @9
line 10
[] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @6 line 11
ExecBlock >> ensure: (envId 0) @2 line 12
[] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @2 line 12
MetacelloPlatform >> do:displaying: (envId 0) @2 line 3
MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @17 line 7
[] in  MetacelloMCVersion >> doLoadRequiredFromArray: (envId 0) @3 line 10
ExecBlock >> ensure: (envId 0) @2 line 12
MetacelloMCVersion >> doLoadRequiredFromArray: (envId 0) @22 line 16
MetacelloMCVersion >> load (envId 0) @4 line 3
Executed Code            @4 line 1
GsNMethod class >> _gsReturnToC (envId 0) @1 line 1



--
View this message in context: http://forum.world.st/Metacello-questions-tp4760533p4760535.html
Sent from the GLASS mailing list archive at Nabble.com.
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] Metacello questions

BrunoBB
Dale,

MetacelloToolBox validateConfiguration: ConfigurationOfXXX it is very helpful !!!

I will try to interpret the result and fix it.

MetacelloToolBox validateConfiguration:

...again very very cool !

regards,
Bruno
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] Metacello questions

Dale Henrichs-3
Bruno,

I'm glad that it helps ... it is too easy to define a configuration that has errors or possible errors, so I invented the validator:)

Dale


On Tue, May 27, 2014 at 10:08 AM, BrunoBB <[hidden email]> wrote:
Dale,

MetacelloToolBox validateConfiguration: ConfigurationOfXXX it is very
helpful !!!

I will try to interpret the result and fix it.

MetacelloToolBox validateConfiguration:

...again very very cool !

regards,
Bruno



--
View this message in context: http://forum.world.st/Metacello-questions-tp4760533p4760544.html
Sent from the GLASS mailing list archive at Nabble.com.
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass