Exporting problem (Unable to export: 'Trying to write out, AnObsoletePRReportView')
renggli at gmail.com
Sun May 24 22:50:45 MEST 2009
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 |
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.
On Sun, May 24, 2009 at 10:25 PM, Dennis Schetinin <chaetal at gmail.com> 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.
> 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 ...
More information about the smallwiki