Status: Accepted
Owner:
[hidden email]
Labels: Type-Defect Priority-Medium Product-Core Version-1.0-beta.30
New issue 146 by
[hidden email]: unrecognized SystemVersion results in
assuming system is on #gemstone...
http://code.google.com/p/metacello/issues/detail?id=146see
http://forum.world.st/Seaside-3-0-Metacello-Configuration-broken-for-Squeak-td3720943.html
for more details.
Here's the method in MetacelloPlatform:
defaultPlatformAttributes
| versionString |
Smalltalk at: #SystemVersion ifPresent: [:cl |
versionString := cl current version.
(versionString beginsWith: 'Pharo')
ifTrue: [ ^ #(#squeakCommon #pharo ) ].
(versionString beginsWith: 'Squeak')
ifTrue: [^ #(#squeakCommon #squeak )]].
^ #(#gemstone )
I'm pretty sure that the logic is "required" for the system to bootstrap in
GemStone, but the fact that SystemVersion should preclude answering
#gemstone ... guessing wrong ends up with surprising results, so should
throw an error if the versionString doesn't begin with 'Pharo'
or 'Squeak'...should have a solid test for GemStone as well so that an
error can be thrown as well ...