I've upgraded some time ago to a recent version of Pier. Now I've got a problem (see subject) trying to export from the image... Seems like the class (PRReportView?) was removed but the reference is still somewhere in code and/or data. I don't know how to handle such things in Squeak (Pharo). Any help please?
-- Dennis Schetinin _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
> I've upgraded some time ago to a recent version of Pier. Now I've got a
> problem (see subject) trying to export from the image... Seems like the > class (PRReportView?) was removed but the reference is still somewhere in > code and/or data. I don't know how to handle such things in Squeak (Pharo). > Any help please? I would create an empty class of that name, import the snapshot and fix references to this class and its instances manually. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
I did tried that (created classes named #AnObsoletePRReportView and #PRReportView), but it doesn't help... I've found the error is generated DiskProxy >> #global:selector:args: if the name of the class begins with "AnAbsolete". Commenting those lines gave me the file... Too late now so will be back tomorrow :) -- Dennis Schetinin _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Sorry, I misread your mail. I thought you tried to import code that
contained this class into an image that did not contain this class. In your case your model already contains these obsolete classes. Try evaluating the following code to fix your model: PRComponent allInstances do: [ :comp | (comp componentClass includesBehavior: PRViewsWidget) ifTrue: [ comp settings at: PRViewsWidget descriptionViewClasses ifPresent: [ :classes | comp settings at: PRViewsWidget descriptionViewClasses put: (classes reject: [ :each | each isObsolete ]) ] ] ] After that the export should work fine. I will add that to the automatic migrations scripts. Cheers, Lukas On Sun, May 24, 2009 at 10:25 PM, Dennis Schetinin <[hidden email]> wrote: > > >> > I've upgraded some time ago to a recent version of Pier. Now I've got a >> > problem (see subject) trying to export from the image... Seems like the >> > class (PRReportView?) was removed but the reference is still somewhere >> > in >> > code and/or data. I don't know how to handle such things in Squeak >> > (Pharo). >> > Any help please? >> >> I would create an empty class of that name, import the snapshot and >> fix references to this class and its instances manually. >> >> Lukas > > I did tried that (created classes named #AnObsoletePRReportView and > #PRReportView), but it doesn't help... > > I've found the error is generated DiskProxy >> #global:selector:args: if the > name of the class begins with "AnAbsolete". Commenting those lines gave me > the file... Too late now so will be back tomorrow :) > > -- > Dennis Schetinin > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
On Sun, May 24, 2009 at 5:50 PM, Lukas Renggli <[hidden email]> wrote: Sorry, I misread your mail. I thought you tried to import code that what are automatic migration scripts ? where are they ? thanks! mariano
_______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by Lukas Renggli
It helps, thank you! -- Dennis Schetinin _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |