[Glass] Name not found: 'OB-Metacello'

Johan Brichau johan at yesplan.be
Tue Jun 10 14:45:39 PDT 2014


It’s raining Metacello load problems today… well, actually mine is a MetacelloPreview issue with a twist ;-)
And I might have found what’s wrong with this one so I want to check on what to do next…

- In a standard GLASS-1.0-beta.9 (GS 3.1), with MyProject loaded, I upgraded to the MetacelloPreview. 
- The ConfigurationOfMyProject references GLASS 1.0-beta.9 as a prerequisite.
- I load an updated #development version of MyProject using the MetacelloPreview scripting API and I am denying all project upgrades/downgrades/conflicts
- Everything works as expected but a subsequent (identical) load of ConfigurationOfMyProject will fail as follows:

--transcript--'DENIED: a MetacelloAllowProjectDowngrade occurred (notification 2741) Metacello (1.0-beta.32.1)->Metacello (1.0-beta.32)'
--transcript--'Project: Metacello Tools 1.0-beta.32'
ERROR 2318 , a UserDefinedError occurred (error 2318), reason:halt, Name not found: OB-Metacello (UserDefinedError)

What (I think) happens here is this:
- The Metacello registry says ConfigurationOfMetacello is 1.0-beta.32.1 from http://seaside.gemstone.com/ss/metacello (only after the first load with the MetacelloPreview!)
- The ConfigurationOfMyProject references GLASS 1.0-beta.9 which references the package ‘OB-Metacello’ in Metacello 1.0-beta.32
- The (loaded) version 1.0-beta.32.1, however, does not have the package ‘OB-Metacello’ in its spec.
- Because I deny all upgrades/downgrades, the loading still tries to find ‘OB-Metacello’ in the 1.0-beta.32.1 version of Metacello

I have two solutions:
- not reference GLASS in ConfigurationOfMyProject until it references the latest Metacello (or MetacelloPreview)
- not use MetacelloPreview (If I revert to using Metacello 1.0-beta.32 and I erase the registry, it works again)

I also noticed that if I load my project in a clean image using the MetacelloPreview, many more configurations and packages are being loaded than using the ‘standard’ Metacello.
I do all loads using the Metacello scripting api.

Could it be that MetacelloPreview goes on walking the referenced projects even if you deny an upgrade? I have that impression… but I will try to demonstrate it more.

Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140610/0cd73c80/attachment.html>


More information about the Glass mailing list