FogBugz (Case [Issue]12310) Tools - Move to package from nautilus does not fully take extensions into account so it breaks code :(

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]12310) Tools - Move to package from nautilus does not fully take extensions into account so it breaks code :(

Pharo Issue Tracker
FogBugz Notification
avatar
Bug in Project:  Tools: 1. Pharo Image  •  You are subscribed to this case
I moved

RBTransformationRule subclass: #RBRemoveAssignmentWithoutEffectRule
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Manifest-Core'

to

RBTransformationRule subclass: #RBRemoveAssignmentWithoutEffectRule
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Refactoring-Critics'

RBRemoveAssignmentWithoutEffectRule defined longDescription that was packaged with '*Manifest-Core' in the first place (yes it was probably silly).

When I moved the class to 'Refactoring-Critics'
I got this error:

packageDefiningOrExtendingSelector: aSelector inClassNamed: aClassNameSymbol
"this implementation is slower
aClass packages detect: [:each | each includesSelector: aSelector ofClass: aClass ]"
| classPackage |

classPackage := self packageOfClassNamed: aClassNameSymbol.
(classPackage includesSelector: aSelector ofClassName: aClassNameSymbol)
ifTrue: [ ^classPackage ].

^(self extendingPackagesOfClassNamed: aClassNameSymbol)
detect: [ :p | p includesSelector: aSelector ofClassName: aClassNameSymbol ]
ifNone: [ self error: ('No package found for selector {1} in class {2}'
format: { aSelector . aClassNameSymbol }) ]

#longDescription #RBRemoveAssignmentWithoutEffectRule

Stef
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker