[Glass] #ensureMetacello doesn't work without UI ?

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Thu Feb 26 09:10:16 PST 2015


Hey Mariano,

Sorry for the slow reply, I've been sick ...

This is a new error for me .... The dialog is red herring ... the 
"skipping" dialog is the result of an #inform: call ... when you are in 
a dev environment a dialog is raised, when you are in topaz the message 
is written to the transcript only ...

To get to the bottom of this we need to start by setting

   MetacelloCommonMCSpecLoader retryPackageResolution: false.

Before running the upgrade script ... then try to track down the source 
of the gofer error ...

Dale

On 2/24/15 6:57 AM, Mariano Martinez Peck via Glass wrote:
> Hi Dale,
>
> I am trying to execute the following code as part of my gemstone site 
> builder scripts:
>
> MCPlatformSupport commitOnAlmostOutOfMemoryDuring: [
>
> Gofer new
>   package: 'GsUpgrader-Core';
>   url: 'http://ss3.gemtalksystems.com/ss/gsUpgrader';
>   load.
> (Smalltalk at: #GsUpgrader)
>         upgradeGLASS;
>         upgradeGLASS1;
>         upgradeMetacello;
>         upgradeGrease.
>
> ].
>
> When i run that from a command line using topaz, I get the exception 
> pasted below.
> If I run the same code from the GemTools, I get a popup saying GLASS1 
> will be skipped (see attached screenshot). So watching the stacktrace 
> it seems the load in the topaz failed because I am not answering "yes" 
> but nil to that popup...
>
> So I wonder...could be skip this popup somehow? Should I use 
> #answering: true or similar method (which I don't remember which was 
> it) ?
>
> Thanks in advance,
>
>
>
>
> --transcript--'Project: Metacello'
> --transcript--'...RETRY->BaselineOfMetacello'
> --transcript--'...RETRY->BaselineOfMetacello'
> --transcript--'gofer repository error: ''GoferRepositoryError: a 
> ImproperOperation occurred (error 2085), Expected nil to be a 
> Boolean.''...ignoring'
> --transcript--'...FAILED->BaselineOfMetacello'
> -----------------------------------------------------
> GemStone: Error         Nonfatal
> a MetacelloPackageSpecResolutionError occurred (error 2710), Could
> not resolve: BaselineOfMetacello [BaselineOfMetacello] in cache 
> github://dalehen
> rich/metacello-work:e54f0a833fa31e7a7728bf886aca6c43e1e8f6a5/repository
> ERROR: 'GoferRepositoryError: a ImproperOperation occurred (error
> 2085), Expected nil to be a Boolean.'
> Error Category: 231169 [GemStone] Number: 2710  Arg Count: 4 Context : 
> 102543361 exception : 114253825
> Arg 1: [114254081 sz:12 cls: 27596289 MetacelloPackageSpec] 
> aMetacelloPackageSpec
> Arg 2: [114254337 sz:2 cls: 66817 Array] anArray
> Arg 3: [114254593 sz:11 cls: 28243969 GoferRepositoryError] a 
> GoferRepositoryError occurred (error 2710), a ImproperOperation 
> occurred (error 2085), Expected nil to be a Boolean.
> Arg 4: [20 sz:0 cls: 76289 UndefinedObject] nil
> topaz > exec iferr 1 : where
> ==> 1 AbstractException >> _signalWith:       (envId 0) @5 line 25   
> [methId 4594689]
> 2 AbstractException >> signal (envId 0) @2 line 47   [methId 4587009]
> 3 MetacelloPackageSpecResolutionError >> signal (envId 0) @4 line 5   
> [methId 101896961]
> 4 MetacelloCommonMCSpecLoader >> 
> retryingResolvePackageSpecReferences:gofer: (envId 0) @31 line 39   
> [methId 32444673]
> 5 [] in  MetacelloFetchingMCSpecLoader >> linearLoadPackageSpec:gofer: 
> (envId 0) @17 line 13 [methId 37844481]
> 6 MetacelloPlatform >> do:displaying: (envId 0) @2 line 3   [methId 
> 31848705]
> 7 MetacelloFetchingMCSpecLoader >> linearLoadPackageSpec:gofer: (envId 
> 0) @5 line 3   [methId 31467009]
> 8 MetacelloPackageSpec >> loadUsing:gofer:  (envId 0) @2 line 3   
> [methId 31503873]
> 9 [] in  MetacelloCommonMCSpecLoader >> 
> linearLoadPackageSpecs:repositories: (envId 0) @2 line 6 [methId 38637825]
> 10 Collection >> do: (envId 0) @5 line 10   [methId 2417409]
> 11 MetacelloCommonMCSpecLoader >> linearLoadPackageSpecs:repositories: 
> (envId 0) @5 line 6 [methId 32445441]
> 12 [] in  MetacelloFetchingMCSpecLoader >> 
> explicitLoadPackageSpecs:repositories: (envId 0) @2 line 5   [methId 
> 37842433]
> 13 ExecBlock >> ensure:  (envId 0) @2 line 12   [methId 3700481]
> 14 MetacelloLoaderPolicy >> pushLoadDirective:during: (envId 0) @6 
> line 7   [methId 31518209]
> 15 MetacelloLoaderPolicy >> pushExplicitLoadDirectivesDuring:for: 
> (envId 0) @4 line 5   [methId 31518721]
> 16 MetacelloFetchingMCSpecLoader >> 
> explicitLoadPackageSpecs:repositories: (envId 0) @3 line 5   [methId 
> 31465217]
> 17 MetacelloPackageSpec >> explicitLoadUsing:  (envId 0) @24 line 14   
> [methId 31506689]
> 18 MetacelloPackageSpec >> ensureLoadUsing:  (envId 0) @3 line 2   
> [methId 31509505]
> 19 MetacelloMCProjectSpec >> ensureLoadUsing:  (envId 0) @7 line 4   
> [methId 31455489]
> 20 MetacelloMCProjectSpec >> ensureProjectLoaded (envId 0) @24 line 20 
>   [methId 102813953]
> 21 MetacelloMCProjectSpec >> loadVersion:  (envId 0) @2 line 5   
> [methId 31452929]
> 22 MetacelloProjectSpecForLoad >> performLoad  (envId 0) @26 line 18   
> [methId 30312961]
> 23 MetacelloGenericProjectSpec >> load (envId 0) @6 line 4   [methId 
> 32392961]
> 24 MetacelloProjectReferenceSpec >> loadUsing:gofer: (envId 0) @5 line 
> 6   [methId 30302977]
> 25 [] in  MetacelloCommonMCSpecLoader >> 
> linearLoadPackageSpecs:repositories: (envId 0) @2 line 6 [methId 38637825]
> 26 Collection >> do: (envId 0) @5 line 10   [methId 2417409]
> 27 MetacelloCommonMCSpecLoader >> linearLoadPackageSpecs:repositories: 
> (envId 0) @5 line 6 [methId 32445441]
> 28 [] in  MetacelloFetchingMCSpecLoader >> 
> linearLoadPackageSpecs:repositories: (envId 0) @2 line 4 [methId 37839105]
> 29 ExecBlock >> ensure:  (envId 0) @2 line 12   [methId 3700481]
> 30 MetacelloLoaderPolicy >> pushLoadDirective:during: (envId 0) @6 
> line 7   [methId 31518209]
> 31 MetacelloLoaderPolicy >> pushLinearLoadDirectivesDuring:for: (envId 
> 0) @3 line 3 [methId 31515649]
> 32 MetacelloFetchingMCSpecLoader >> 
> linearLoadPackageSpecs:repositories: (envId 0) @3 line 4 [methId 31463169]
> 33 MetacelloCommonMCSpecLoader >> load (envId 0) @15 line 7   [methId 
> 32440065]
> 34 MetacelloMCVersionSpecLoader >> load  (envId 0) @13 line 16   
> [methId 31473409]
> 35 MetacelloMCVersion >> executeLoadFromArray: (envId 0) @9 line 7   
> [methId 32453377]
> 36 [] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @2 
> line 11   [methId 43145729]
> 37 [] in  MetacelloPlatform >> useStackCacheDuring:defaultDictionary: 
> (envId 0) @2 line 9   [methId 38147073]
> 38 ExecBlock >> on:do: (envId 0) @3 line 42   [methId 3730689]
> 39 MetacelloPlatform >> useStackCacheDuring:defaultDictionary: (envId 
> 0) @9 line 10   [methId 31842561]
> 40 [] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @6 
> line 11   [methId 42966017]
> 41 ExecBlock >> ensure:  (envId 0) @2 line 12   [methId 3700481]
> 42 [] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @2 
> line 12   [methId 38647553]
> 43 MetacelloPlatform >> do:displaying: (envId 0) @2 line 3   [methId 
> 31848705]
> 44 MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @17 line 7 
>   [methId 32452609]
> 45 [] in  MetacelloMCProjectSpec >> loadVersion: (envId 0) @26 line 38 
>   [methId 37827841]
> 46 [] in  MetacelloPlatform >> useStackCacheDuring:defaultDictionary: 
> (envId 0) @2 line 9   [methId 38147073]
> 47 ExecBlock >> on:do: (envId 0) @3 line 42   [methId 3730689]
> 48 MetacelloPlatform >> useStackCacheDuring:defaultDictionary: (envId 
> 0) @9 line 10   [methId 31842561]
> 49 MetacelloMCProjectSpec >> loadVersion:  (envId 0) @21 line 24   
> [methId 31452929]
> 50 MetacelloProjectSpecForLoad >> performLoad  (envId 0) @26 line 18   
> [methId 30312961]
> 51 MetacelloGenericProjectSpec >> load (envId 0) @6 line 4   [methId 
> 32392961]
> 52 MetacelloProjectReferenceSpec >> loadUsing:gofer: (envId 0) @5 line 
> 6   [methId 30302977]
> 53 [] in  MetacelloCommonMCSpecLoader >> 
> linearLoadPackageSpecs:repositories: (envId 0) @2 line 6 [methId 38637825]
> 54 Collection >> do: (envId 0) @5 line 10   [methId 2417409]
> 55 MetacelloCommonMCSpecLoader >> linearLoadPackageSpecs:repositories: 
> (envId 0) @5 line 6 [methId 32445441]
> 56 [] in  MetacelloFetchingMCSpecLoader >> 
> atomicLoadPackageSpecs:repositories: (envId 0) @2 line 4 [methId 37846017]
> 57 ExecBlock >> ensure:  (envId 0) @2 line 12   [methId 3700481]
> 58 MetacelloLoaderPolicy >> pushLoadDirective:during: (envId 0) @6 
> line 7   [methId 31518209]
> 59 MetacelloLoaderPolicy >> pushAtomicLoadDirectivesDuring:for: (envId 
> 0) @3 line 3 [methId 31514881]
> 60 MetacelloFetchingMCSpecLoader >> 
> atomicLoadPackageSpecs:repositories: (envId 0) @3 line 4 [methId 31468033]
> 61 MetacelloCommonMCSpecLoader >> load (envId 0) @11 line 5   [methId 
> 32440065]
> 62 MetacelloMCVersionSpecLoader >> load  (envId 0) @13 line 16   
> [methId 31473409]
> 63 MetacelloMCVersion >> executeLoadFromArray: (envId 0) @9 line 7   
> [methId 32453377]
> 64 [] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @2 
> line 11   [methId 43145729]
> 65 [] in  MetacelloPlatform >> useStackCacheDuring:defaultDictionary: 
> (envId 0) @2 line 9   [methId 38147073]
> 66 ExecBlock >> on:do: (envId 0) @3 line 42   [methId 3730689]
> 67 MetacelloPlatform >> useStackCacheDuring:defaultDictionary: (envId 
> 0) @9 line 10   [methId 31842561]
> 68 [] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @6 
> line 11   [methId 42966017]
> 69 ExecBlock >> ensure:  (envId 0) @2 line 12   [methId 3700481]
> 70 [] in  MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @2 
> line 12   [methId 38647553]
> 71 MetacelloPlatform >> do:displaying: (envId 0) @2 line 3   [methId 
> 31848705]
> 72 MetacelloMCVersion >> fetchRequiredFromArray: (envId 0) @17 line 7 
>   [methId 32452609]
> 73 [] in  MetacelloMCVersion >> doLoadRequiredFromArray: (envId 0) @3 
> line 10   [methId 38651905]
> 74 ExecBlock >> ensure:  (envId 0) @2 line 12   [methId 3700481]
> 75 MetacelloMCVersion >> doLoadRequiredFromArray: (envId 0) @22 line 
> 16   [methId 32455169]
> 76 MetacelloMCVersion >> load  (envId 0) @4 line 3   [methId 32452097]
> 77 [] in  GsUpgrader >> upgradeGLASS (envId 0) @27 line 62   [methId 
> 105701121]
> 78 [] in  GsDeployer >> deploy:  (envId 0) @8 line 8   [methId 42984961]
> 79 ExecBlock >> on:do: (envId 0) @3 line 42   [methId 3730689]
> 80 [] in  GsDeployer >> deploy:  (envId 0) @2 line 9   [methId 38729217]
> 81 MCPlatformSupport class >> commitOnAlmostOutOfMemoryDuring: (envId 
> 0) @4 line 4 [methId 33491969]
> 82 [] in  GsDeployer >> mcPlatformSupportDo: (envId 0) @2 line 10   
> [methId 38726401]
> 83 ExecBlock >> ensure:  (envId 0) @2 line 12   [methId 3700481]
> 84 GsDeployer >> mcPlatformSupportDo:  (envId 0) @10 line 10   [methId 
> 32535041]
> 85 GsDeployer >> deploy: (envId 0) @2 line 3   [methId 32536577]
> 86 GsDeployer class >> autoMigrate:  (envId 0) @3 line 12   [methId 
> 35471617]
> 87 GsDeployer class >> deploy: (envId 0) @2 line 12   [methId 35472129]
> 88 GsUpgrader >> deploy: (envId 0) @11 line 13   [methId 103553793]
> 89 GsUpgrader >> upgradeGLASS  (envId 0) @17 line 18   [methId 103551489]
> 90 GsUpgrader class >> upgradeGLASS  (envId 0) @3 line 4   [methId 
> 103539969]
> 91 [] in  Executed Code                          (envId 0) @7 line 9   
> [methId 114132225]
> 92 [] in  MCPlatformSupport class >> commitOnAlmostOutOfMemoryDuring: 
> (envId 0) @3 line 7 [methId 39023361]
> 93 ExecBlock >> ensure:  (envId 0) @2 line 12   [methId 3700481]
> 94 MCPlatformSupport class >> commitOnAlmostOutOfMemoryDuring: (envId 
> 0) @6 line 8 [methId 33491969]
> 95 Executed Code     @2 line 2   [methId 114127873]
> 96 GsNMethod class >> _gsReturnToC (envId 0) @1 line 1   [methId 4474625]
>   [GsProcess 102543361]
> topaz 1> topaz 1> Successful commit
> topaz 1> topaz 1>
>
>
> -- 
> Mariano
> http://marianopeck.wordpress.com
>
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150226/f6947127/attachment-0001.html>


More information about the Glass mailing list