pharo icon indicating copy to clipboard operation
pharo copied to clipboard

File out a package does not sort the classes so this is impossible to reload the file

Open Ducasse opened this issue 3 years ago • 4 comments

  • File out package should sort the classes by putting the root superclass before the subclasses, else we cannot reload the code

Ducasse avatar Nov 21 '22 17:11 Ducasse

this will still fail if the package references classes that are not in that one package.

We should really hook up UndefinedClass... to create a class with UndefinedClass as the superclass and then fix it later when the real class of that name gets loaded

MarcusDenker avatar Nov 22 '22 08:11 MarcusDenker

Well first a fully contained package should be able to reload. Right now this is totally silly.

Ducasse avatar Nov 22 '22 08:11 Ducasse

Hi, is this problem concern Pharo 13+?

LabordePierre avatar Nov 20 '25 13:11 LabordePierre

This was always the case I think. Some things are working by chance and might fail sometimes.

But Guille and Stephane are totally reworking the fileout/sources/changes/st/source condensing mechanism to avoid to have 4-5 export formats with their own bugs :)

jecisc avatar Nov 20 '25 13:11 jecisc