[Glass] Some trouble with github

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Thu Jul 14 10:16:27 PDT 2016


Bruno,

For Metacello load errors it also helps to include Transcript log for 
the load and the actual error message, but I'm guessing that the 
MetacelloPackageSpecResolutionError is complaining about the fact that 
it can't find the BaselineAbstractApplicationObjects in the repository: 
`github://brunobuzzi/AbstractApplicationObjects` ... To reference the 
AbstractApplicationObjects project from another project the expression 
should look like the following:

       spec
         baseline: 'AbstractApplicationObjects'
         with: [ spec repository: 
'github://brunobuzzi/AbstractApplicationObjects:master/repository' ].

Note the `/repisitory` at the end (and in your load expression) ... with 
that said, that particular line is not even needed in your BaselineOf 
specification...I am looking at 
BaselineOfAbstractApplicationObjects>>baseline:[1] up on github and it 
looks like the following:

   baseline: spec
   <baseline>
   spec
     for: #'common'
     do: [
       spec
         baseline: 'AbstractApplicationObjects'
         with: [ spec repository: 
'github://brunobuzzi/AbstractApplicationObjects:master' ].
       spec
         package: 'AbstractApplicationObjects']

and I think that for your project it should look like the following:

   baseline: spec
   <baseline>
   spec
     for: #'common'
     do: [
       spec
         package: 'AbstractApplicationObjects']

There's no need to include:

       spec
         baseline: 'AbstractApplicationObjects'
         with: [ spec repository: 
'github://brunobuzzi/AbstractApplicationObjects:master' ].

since it is already implied ... the repository for a BaselineOf is 
derived from the repository that the BaselineOf was loaded from.

Dale

[1] 
https://github.com/brunobuzzi/AbstractApplicationObjects/blob/master/repository/BaselineOfAbstractApplicationObjects.package/BaselineOfAbstractApplicationObjects.class/instance/baseline..st

On 07/14/2016 08:57 AM, BrunoBB via Glass wrote:
> Hi,
>
> All code is in github now. But i have problems when trying to load packages
> from Github.
> One project is baseline is:
> BaselineOfAbstractApplicationObjects
> baseline: spec
>    <baseline>
>    spec
>      for: #'common' do: [
> 		spec baseline: 'AbstractApplicationObjects' with: [
> 			  spec repository:
> 'github://brunobuzzi/AbstractApplicationObjects:master' ]].
>
> To load it into a new stone:
> GsDeployer deploy: [
>    Metacello new
>      baseline: 'AbstractApplicationObjects';
>      repository:
> 'github://brunobuzzi/AbstractApplicationObjects:master/repository';
>      onLock: [:ex | ex honor];
>      load ].
>
> Any idea what is wrong here ?
>
> But i got:
> MetacelloPackageSpecResolutionError (AbstractException) >> _signalWith: @6
> line 25
> MetacelloPackageSpecResolutionError (AbstractException) >> signal @2 line 47
> MetacelloPackageSpecResolutionError >> signal @4 line 5
> MetacelloEnsureFetchingMCSpecLoader (MetacelloCommonMCSpecLoader) >>
> retryingResolvePackageSpecReferences:gofer: @32 line 39
> [] in  ExecBlock0 (MetacelloFetchingMCSpecLoader) >>
> linearLoadPackageSpec:gofer: @18 line 18
> MetacelloGemStonePlatform (MetacelloPlatform) >> do:displaying: @2 line 3
> MetacelloEnsureFetchingMCSpecLoader (MetacelloFetchingMCSpecLoader) >>
> linearLoadPackageSpec:gofer: @6 line 3
> MetacelloPackageSpec >> loadUsing:gofer: @2 line 3
> [] in  ExecBlock1 (MetacelloCommonMCSpecLoader) >>
> linearLoadPackageSpecs:repositories: @3 line 6
> Array (Collection) >> do: @6 line 10
> MetacelloEnsureFetchingMCSpecLoader (MetacelloCommonMCSpecLoader) >>
> linearLoadPackageSpecs:repositories: @6 line 6
> [] in  ExecBlock0 (MetacelloFetchingMCSpecLoader) >>
> explicitLoadPackageSpecs:repositories: @3 line 5
> ExecBlock0 (ExecBlock) >> ensure: @2 line 12
> MetacelloLoaderPolicy >> pushLoadDirective:during: @7 line 7
> MetacelloLoaderPolicy >> pushExplicitLoadDirectivesDuring:for: @5 line 5
> MetacelloEnsureFetchingMCSpecLoader (MetacelloFetchingMCSpecLoader) >>
> explicitLoadPackageSpecs:repositories: @4 line 5
> MetacelloPackageSpec >> explicitLoadUsing: @25 line 14
> MetacelloPackageSpec >> ensureLoadUsing: @3 line 2
> MetacelloMCBaselineOfProjectSpec (MetacelloMCProjectSpec) >>
> ensureLoadUsing: @15 line 13
> [] in  ExecBlock0 (MetacelloMCBaselineOfProjectSpec) >> ensureLoadUsing: @3
> line 5
> ExecBlock0 (ExecBlock) >> on:do: @3 line 44
> MetacelloMCBaselineOfProjectSpec >> ensureLoadUsing: @3 line 6
> MetacelloMCBaselineOfProjectSpec (MetacelloMCProjectSpec) >>
> ensureLoadedForDevelopmentUsing: @21 line 23
> [] in  ExecBlock1 (MetacelloMCVersionSpecLoader) >> load @3 line 8
> OrderedCollection (Collection) >> do: @6 line 10
> MetacelloMCVersionSpecLoader >> load @9 line 7
> MetacelloMCVersion >> executeLoadFromArray: @10 line 7
> [] in  ExecBlock1 (MetacelloMCVersion) >> fetchRequiredFromArray: @3 line 11
> [] in  ExecBlock0 (MetacelloPlatform) >>
> useStackCacheDuring:defaultDictionary: @3 line 9
> ExecBlock0 (ExecBlock) >> on:do: @3 line 44
> MetacelloGemStonePlatform (MetacelloPlatform) >>
> useStackCacheDuring:defaultDictionary: @10 line 10
> [] in  ExecBlock0 (MetacelloMCVersion) >> fetchRequiredFromArray: @7 line 11
> ExecBlock0 (ExecBlock) >> ensure: @2 line 12
> [] in  ExecBlock0 (MetacelloMCVersion) >> fetchRequiredFromArray: @3 line 12
> MetacelloGemStonePlatform (MetacelloPlatform) >> do:displaying: @2 line 3
> MetacelloMCVersion >> fetchRequiredFromArray: @18 line 7
> [] in  ExecBlock0 (MetacelloMCVersion) >> doLoadRequiredFromArray: @4 line
> 10
> ExecBlock0 (ExecBlock) >> ensure: @2 line 12
> MetacelloMCVersion >> doLoadRequiredFromArray: @23 line 16
> MetacelloMCVersion >> load @4 line 3
> [] in  ExecBlock0 (MetacelloScriptEngine) >>
> load:onProjectDownGrade:onProjectUpgrade: @10 line 15
> ExecBlock0 (ExecBlock) >> on:do: @3 line 44
> [] in  ExecBlock0 (MetacelloScriptEngine) >> handleNotificationsForAction:
> @7 line 6
> ExecBlock0 (ExecBlock) >> on:do: @3 line 44
> [] in  ExecBlock0 (MetacelloScriptEngine) >> handleNotificationsForAction:
> @5 line 14
> ExecBlock0 (ExecBlock) >> on:do: @3 line 44
> [] in  ExecBlock0 (MetacelloScriptEngine) >> handleNotificationsForAction:
> @3 line 20
> ExecBlock0 (ExecBlock) >> on:do: @3 line 44
> MetacelloScriptEngine >> handleNotificationsForAction: @3 line 24
> [] in  ExecBlock0 (MetacelloScriptEngine) >>
> load:onProjectDownGrade:onProjectUpgrade: @3 line 5
> ExecBlock0 (ExecBlock) >> ensure: @2 line 12
> MetacelloProjectRegistration class >> copyRegistryRestoreOnErrorWhile: @9
> line 14
> MetacelloScriptEngine >> load:onProjectDownGrade:onProjectUpgrade: @3 line 3
> MetacelloScriptEngine >> load: @2 line 3
> MetacelloScriptEngine (Object) >> perform:withArguments: @1 line 1
> [] in  ExecBlock1 (MetacelloScriptExecutor) >> execute: @12 line 15
> [] in  ExecBlock1 (MetacelloScriptApiExecutor) >> executeString:do: @6 line
> 6
> Array (Collection) >> do: @6 line 10
> MetacelloScriptApiExecutor >> executeString:do: @7 line 4
> String >> execute:against: @2 line 2
> MetacelloScriptApiExecutor (MetacelloScriptExecutor) >> execute: @7 line 9
> Metacello >> execute:args: @9 line 5
> Metacello >> load @2 line 2
> [] in  Executed Code  @6 line 6
> [] in  ExecBlock0 (GsDeployer) >> deploy: @9 line 8
> ExecBlock0 (ExecBlock) >> on:do: @3 line 44
> [] in  ExecBlock0 (GsDeployer) >> deploy: @3 line 9
> MCPlatformSupport class >> commitOnAlmostOutOfMemoryDuring: @5 line 4
> [] in  ExecBlock0 (GsDeployer) >> mcPlatformSupportDo: @3 line 11
> ExecBlock0 (ExecBlock) >> ensure: @2 line 12
> GsDeployer >> mcPlatformSupportDo: @10 line 12
> GsDeployer >> deploy: @3 line 3
> GsDeployer class >> autoMigrate: @4 line 13
> GsDeployer class >> deploy: @2 line 12
> Executed Code  @2 line 1
> GsNMethod class >> _gsReturnToC @1 line 1
>
>
>
>
> --
> View this message in context: http://forum.world.st/Some-trouble-with-github-tp4906652.html
> Sent from the GLASS mailing list archive at Nabble.com.
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass



More information about the Glass mailing list