Updates: Cc: cy.delau...@gmail.com
Comment #4 on issue 619 by stephane...@gmail.com: RPackage should deal with unknown extensions http://code.google.com/p/moose-technology/issues/detail?id=619
this is in essence what the code was doing. The halt is just to indetify the problem. I will check the implementation and we should add a test.
packageFromOrganizer: anRPackageOrganizer
self flag: #cyrille. "If the organizer is not able to find the package of a method, it is surely because something went wrong at one point. I got into that situation when having RPackage listening to the system. So a solution I have for now (this is maybe not the best one), is to check if the method is registered in RPackage, and if it is not, simulate a addMethod event to update the organizer. Specific behavior in RPackageOrganizer >> systemMethodRemovedActionFrom: " self methodClass packages detect: [:each | each includesSelector: self selector ofClass: self methodClass ] ifNone: [ self flag: 'should not arrive there now'. self halt. self category isNil ifTrue: [Error signal]. anRPackageOrganizer systemMethodAddedActionFrom: (AddedEvent method: self selector: self selector protocol: self category class: self methodClass) asSystemAnnouncement. ]. ^ anRPackageOrganizer packageDefiningOrExtendingMethod: self