Open
Description
STR:
- Change a method
- Open a versions browser on it, so you have loaded a ChangeRecord pointing to the changes file into the image
- Save and quit the image
- From the outside of the image, rename image + changes file
- Open the renamed image
Result: Error: primSetPosition:to: failed
because the ChangeRecord in the versions browser still points to the old changes file name.
Workaround:
ChangeRecord allInstancesDo: [:ea |
ea instVarNamed: 'file' put: ((ea file localName endsWith: '.sources') ifTrue: [SourceFiles first] ifFalse: [SourceFiles second])].
Perhaps we need a shutDown/startUp sequence for this ... But sometimes pointers to absolute changes files might also be intended.