The Goto Line expert raises an unhandled exception when the user invokes it while the form designer is the current view:
FEditRead: No editor interface.
Root cause:
TGotoExpert.Execute looks up the current source file with Ota.GetCurrentSourceFile, which calls GetCurrentModule.GetCurrentEditor.FileName. When the form designer is the current editor, that returns the .dfm filename. The dialog passes it to TUnitPositions.Create, which calls TEditReader.GetText(<.dfm>). Inside TEditReader.AllocateFileData:
The unit-source and project-source views work fine, including for unsaved files. The crash is specific to the form designer being current.
Steps to reproduce (Delphi 2007 and presumably others):
Expected:
Goto should either work (operate on the source of the unit behind the form) or fail silently with an empty unit-positions list - the user should at minimum be able to type a line number and hit Go.
Actually: The expected behavior would be that the Goto should simply not be opened at all, just like the Search -> Goto menu item gets disabled in that case. But hey, Claude Code just added code so it actually works, so why not?
fixed in revision #5446