Menu

#89 NEdit hangs when editing .nedit

release
closed-fixed
Program (402)
3
2002-02-11
2001-11-13
No

When starting nedit with .nedit (nedit .nedit) without
disabling the language mode, nedit loads the file, but
hangs afterwards.

When starting without syntax highlighting (nedit -lm
none .nedit) everything works fine.

There seems to be a problem in the highlighting
patterns.

That happend after upgrading NEdit to 5.2 (from 5.1) on
HP-UX 10.20 and saving defaults (which were of version
5.1 first, where the problem did not occur)

Discussion

  • Roland Lammel

    Roland Lammel - 2001-11-13

    Logged In: YES
    user_id=24042

    Might be related to bug #477516 (infinite loop in Syntax
    highlighting)

     
  • Eddy De Greef

    Eddy De Greef - 2001-11-13

    Logged In: YES
    user_id=73597

    Can you please attach the .nedit file that
    is causing the problem ?
    Without it, it's nearly impossible to track
    this down.
    Thanks.

    (Yes, it's probably the same problem as #477516,
    that's why I would really like to be able to
    reproduce it.)

     
  • Scott Tringali

    Scott Tringali - 2001-11-28

    Logged In: YES
    user_id=11321

    Please attach .nedit file or confirm fix in 5.2. Otherwise,
    we'll close it.

     
  • Roland Lammel

    Roland Lammel - 2001-11-28

    Logged In: YES
    user_id=24042

    Sorry, haven't got the notification on Nov-13, I'll attach
    the file tomorrow at work.

     
  • Roland Lammel

    Roland Lammel - 2001-11-29

    Logged In: YES
    user_id=24042

    Verified the problem, it still exists.
    Reproduceable every time by starting
    > nedit .nedit

    Attaching .nedti file

     
  • Roland Lammel

    Roland Lammel - 2001-11-29

    Nedit configfile .nedit

     
  • Eddy De Greef

    Eddy De Greef - 2001-11-29

    Logged In: YES
    user_id=73597

    Thanks, it's indeed reproducable.

    But NEdit does not really hang. If you are
    patient enough, it will finish the highlighting.
    (On a "slow" HPUX 10 workstation, it takes +/- 1.5 minutes;
    on a simple 866MHz Pentium III it takes only 7 seconds).

    The highlighting code was heavily modified in 5.2,
    and in general performs much better, but unfortunately
    there are now some pathological cases where highlight
    patterns can be very inefficient on certain inputs.

    Especially patterns with line continuations seem to
    be sensitive to this problem when the file contains
    very long continued lines.

    So this is not a functional bug, but a performance bug.

    I will try to find out what exactly is going on and
    whether we can improve performance, but I won't give
    it a high priority.

    You can work around the problem by disabling highlighting
    for your .nedit file: Default Settings->Language Modes->
    X Resources -> remove .nedit from the list of file
    extensions.

    (So it isn't related to #477516 :-( )

     
  • Alexander Mai

    Alexander Mai - 2002-02-07

    Logged In: YES
    user_id=15180

    Adjust priority and assign

     
  • Alexander Mai

    Alexander Mai - 2002-02-07
    • priority: 5 --> 3
    • assigned_to: nobody --> edg
    • status: open --> open-later
     
  • Eddy De Greef

    Eddy De Greef - 2002-02-11
    • status: open-later --> closed-fixed
     
  • Eddy De Greef

    Eddy De Greef - 2002-02-11

    Logged In: YES
    user_id=73597

    I've updated the patterns in CVS.
    Highlight times on the "slow" HPUX10 machine
    have been reduced to +/- 3 seconds.

     

Log in to post a comment.