Ah ... sorry ... I had made one other change and forgot to mention that:( I did rename the version to 1.5.1 both in petitparser and dummy ...
On Sun, Jan 11, 2015 at 7:14 PM, Dale Henrichs <dale.henrichs@gemtalksystems.com> wrote:
Usman,
Well I don't have an official bugfix yet, but if you filein the attached method and run the following, PetitParser will downgrade and get loaded correctly (at least it worked for me)...The fist two statements are intended to replace GTMetacelloPlatform with MetacelloPharo30Platform and initialize the registry correctly ... not sure what impact on Moose these changes will have) :��
MetacelloPharo30Platform initialize.
�� [
�� MetacelloProjectRegistration
������ resetRegistry;
������ primeRegistryFromImage ]
������ on: Warning
������ do: [ :ex |
���������� Transcript
�������������� cr;
�������������� show: 'Warning resumed: ' , ex description.
���������� ex resume ].
Metacello new
������ configuration: 'DummyParser';
������ version: '1.0';
������ repository: '???';
������ onDowngrade: [:ex :existing :new |
������ ������ existing projectName = 'PetitParser'
������ ������ ������ ifTrue: [
������ ������ ������ ������ new projectSpec operator: #=.
������ ������ ������ ������ ex allow ]
������ ������ ������ ifFalse: [ ex disallow ] ]�� ;
������ load.
I tried this script as you told but it didn't load the specific version I was expecting. I had this message printed on Transcript:
Warning resumed: Warning: Error finding current version of ConfigurationOfMoose. Probably an invalid specification.Warning resumed: Warning: Error finding current version of ConfigurationOfSmallDude. Probably an invalid specification.Loading 1.0 of ConfigurationOfDummyParser...Project: PetitParser 1.51...finished 1.0
I can wait until you do an official release for this bug fix. In the meantime, I've created a configOf my own which means I can find alternate solutions to replace downgrade. I felt that downgrade is yet a must because one would not like to upgrade all the time. And one would not like to load packages by hand when configOf is complex. My configOf works currently but with downgrade available it'll be much more cleaner.