pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Package copy does not respect class-side hierarchy

Open Inao0 opened this issue 1 year ago • 1 comments

Bug description When duplicating a package, class-side superclasses are not properly set. They are all as "Class" instead of the expected one

To Reproduce Right-click a package, copy all packages, put a new package name, and a pattern for generating new classes Screenshot 2024-02-12 at 20 01 41 Screenshot 2024-02-12 at 20 07 08

Actual Behavior Screenshot 2024-02-12 at 20 05 52

Expected behavior The previous example should show :

Object class << MyClass2 class
	slots: {}

Version information:

  • OS: MacOS
  • Pharo Version 12 (Pharo-12.0.0+SNAPSHOT.build.1363.sha.a84b1048f904d97b64a03cc1fc6c43d0e3aeb9ce)

Inao0 avatar Feb 12 '24 19:02 Inao0

I wonder if this is a refactoring or coding directly in a command. I tagged it as refactoring so that we do not forget it.

Ducasse avatar Feb 12 '24 20:02 Ducasse

@Inao0 I think that this was fixed when we fixed the class builder. If you have a moment could you check. Else I will try to follow your instructions.

Ducasse avatar Feb 24 '24 18:02 Ducasse

This is now fixed

balsa-sarenac avatar Feb 27 '24 11:02 balsa-sarenac