bugGNU Octave - Bugs: bug #44924, lookfor function errors out when...

 
 

bug #44924: lookfor function errors out when -all option used

Submitted by:  Rik <rik5>
Submitted on:  Sat 25 Apr 2015 05:17:33 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 27 Apr 2015 04:15:45 AM UTC, comment #2:

Ugh. Turned out there was a lot of problems with lookfor.m. I overhauled the function and fixed this bug here (http://hg.savannah.gnu.org/hgweb/octave/rev/4c6d70a35192). Closing report.

Rik <rik5>
Project Administrator
Sat 25 Apr 2015 09:51:04 PM UTC, comment #1:

Had a short peek with 4.0.0-rc3 on Windows.

The actual error for "lookfor -all deblank" happens at L.118:

Variable "fn" turns out to have the value "DocSimpleDouble". Tracing back the code I think lookfor.m stumbles over some invalid help text from quite another function (see L. 92) before it has a chance to get to deblank's actual help text.
Up in the code (L.69-78) it setdiffs two PATHs, resulting in ".", and then that's where things go wrong as there's no file "doc-cache" in a random working directory. So the culprit seems to be that _pathorig_() returns no "." path entry while path() does.
Prepending a ".":
'orig_path = [".", orig_path]'
makes lookfor.m run fine. But I do not know if that is the right fix.

Your other example runs fine for me:

Philip Nienhuis <philipnienhuis>
Project Member
Sat 25 Apr 2015 05:17:33 AM UTC, original submission:

Example code:

There probably is something odd with the format because even something that should return a single line answer prefaces it with two newlines.

Rik <rik5>
Project Administrator

 

(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 rik5 (Submitted the item)
  •  

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 27 Apr 2015 04:15:45 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1