[Bug - Pharo 5.0] Remove a class but not remove for RPackage
Hello, When I delete a class, a window pop to inform me that some methods use this class. So I remove the methods because they are not usefull without my class to removed. But when I close the window, the methods stay on the Browser, so I remove this methods on the Browser. Then, I remove an other class and "BOOM" an error appears, the key which represents my class is not present in the SystemDictionnary (it's normal), but I can find the key in the RPackage metaclasses.
do you have a reprocible case? Stef Le 13/4/16 15:02, Yann Dubois a écrit :
Hello,
When I delete a class, a window pop to inform me that some methods use this class. So I remove the methods because they are not usefull without my class to removed.
But when I close the window, the methods stay on the Browser, so I remove this methods on the Browser.
Then, I remove an other class and "BOOM" an error appears, the key which represents my class is not present in the SystemDictionnary (it's normal), but I can find the key in the RPackage metaclasses.
On Wed, Apr 13, 2016 at 9:02 PM, Yann Dubois <yann59.dubois@gmail.com> wrote:
Hello,
When I delete a class, a window pop to inform me that some methods use this class. So I remove the methods because they are not usefull without my class to removed.
But when I close the window, the methods stay on the Browser, so I remove this methods on the Browser.
Then, I remove an other class and "BOOM" an error appears, the key which represents my class is not present in the SystemDictionnary (it's normal), but I can find the key in the RPackage metaclasses.
Partly it could be that Browser is not being told to update. If you can reproduce it, try opening a new second Browser before modifying anything more through the first Browser. cheers -ben
For exemple I have 2 packages PackageA - ClassA PackageB - ClassB #iDependToClassA #otherMethod I delete ClassA from the PackageA, so Pharo tell me that the method #iDependToClassA use the content of the ClassA. I delete the #iDependToClassA method but on the Browser, the method is not deleted. I remove the method on the Browser and then, At this moment, I see the methods was not deleted because it stay on the metaclass when I want get the method references of the ClassB (with RPackage>>methodReferences). Same think was happen after with a Class
participants (3)
-
Ben Coman -
stepharo -
Yann Dubois