Skip to content

ChangeRecords point to dangling changes file after renaming image and changes file #132

Open
@LinqLover

Description

@LinqLover

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[WHAT] Something isn't working as expected. Automated tests beneficial. :-tools and libraries[SCOPE] From #asTextToHtml over JSON parsing to Debugger and Browser.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions