DistributedProofreaders / guiguts

Perl/Tk text editor designed for editing and formatting public domain material for inclusion at Project Gutenberg
GNU General Public License v2.0
9 stars 10 forks source link

Error message: `bad text index "0"...` when re-indexing footnotes #503

Closed windymilla closed 3 years ago

windymilla commented 3 years ago

Describe the bug When re-indexing footnotes in etym-v6.txt the following errors are output:

06:14:41: Guiguts 1.2.3: If you have any problems, please include any error messages that appear here with your bug report.
09:19:40: Tk::Error: bad text index "0" at C:/Strawberry/perl/site/lib/Tk.pm line 251.
Tk callback for .frame.linenumbertext.frame.textunicode
Tk::__ANON__ at C:/Strawberry/perl/site/lib/Tk.pm line 251
Tk::Submethods::__ANON__ at C:/Strawberry/perl/site/lib/Tk/Submethods.pm line 19
Tk::Derived::Delegate at C:/Strawberry/perl/site/lib/Tk/Derived.pm line 469
Tk::Widget::__ANON__ at C:/Strawberry/perl/site/lib/Tk/Widget.pm line 322
Guiguts::Footnotes::footnoteadjust at C:/guiguts 1.2.3/lib/Guiguts/Footnotes.pm line 1112
Guiguts::Footnotes::fninsertmarkers at C:/guiguts 1.2.3/lib/Guiguts/Footnotes.pm line 427
Guiguts::Footnotes::footnotefixup at C:/guiguts 1.2.3/lib/Guiguts/Footnotes.pm line 821
Guiguts::Footnotes::__ANON__ at C:/guiguts 1.2.3/lib/Guiguts/Footnotes.pm line 216
Tk callback for .toplevel5.frame4.button
Tk::__ANON__ at C:/Strawberry/perl/site/lib/Tk.pm line 251
Tk::Button::butUp at C:/Strawberry/perl/site/lib/Tk/Button.pm line 175
<ButtonRelease-1>
(command bound to event)

To Reproduce Steps to reproduce the behavior:

  1. Open etym-v6.txt in Guiguts
  2. Open the Tools-->Footnote FIxup dialog
  3. Run First Pass and see there are only brown "long footnote" warnings
  4. Run Re-index
  5. See errors

Expected behavior Either First Pass should report errors or Re-index should work

Environment

windymilla commented 3 years ago

See here for details on what in the footnotes is causing the error.