bugGNU Octave - Bugs: bug #50177, Qt global documentation search...

 
 

bug #50177: Qt global documentation search hangs for input text '.*'

Submitted by:  None
Submitted on:  Sun 29 Jan 2017 02:51:34 PM UTC  
 
Category: GUISeverity: 4 - Important
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 4.2.0
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 05 Feb 2017 06:36:27 PM UTC, comment #4:

The problem was that "words" for the global search were being interpreted as regular expressions. I made a small change to prevent that by escaping characters with special meaning before constructing the search pattern (http://hg.savannah.gnu.org/hgweb/octave/rev/8419d24ab8f7).

This will be a part of the 4.2.1 bug fix release.

Rik <rik5>
Project Administrator
Fri 03 Feb 2017 04:21:58 PM UTC, comment #3:

From libgui/src/qtinfo/webinfo.cc:

So the local search is using some regular find function, but the global_search is function is doing something else.

The function global_search is in libgui/src/qtinfo/parser.cc and I can see that it is using regular expressions so there must be some problem with the logic there.

Rik <rik5>
Project Administrator
Fri 03 Feb 2017 01:48:42 AM UTC, comment #2:

The OP may be referring to the GUI help browser. If I open the Documentation tab, type ".*" in the search field, and check the "global search" box, the GUI runs to 100% and has to be killed.

Seems like it's being interpreted as a regular expression. Except when I try other regexp syntaxes in the search box, they return empty results.

Mike Miller <mtmiller>
Project Administrator
Sun 29 Jan 2017 06:06:36 PM UTC, comment #1:

What command did you use exactly? Both of the following work on a Linux machine with the development version 23115:94c97f219f5c

Rik <rik5>
Project Administrator
Sun 29 Jan 2017 02:51:34 PM UTC, original submission:

Octave hangs if try to search for .* operator in documentation.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 Feb 2017 06:36:27 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 03 Feb 2017 04:21:58 PM UTCrik5Severity3 - Normal=>4 - Important
      StatusNeed Info=>Confirmed
      Releasedev=>4.2.0
      Operating SystemMac OS=>Any
      Summarydocumentation hangs=>Qt global documentation search hangs for input text '.*'
    Sun 29 Jan 2017 06:06:36 PM UTCrik5Item GroupNone=>Documentation
      StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1