[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44924] lookfor function errors out when -all
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #44924] lookfor function errors out when -all option used |
Date: |
Sat, 25 Apr 2015 21:51:04 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33 |
Follow-up Comment #1, bug #44924 (project octave):
Had a short peek with 4.0.0-rc3 on Windows.
The actual error for "lookfor -all deblank" happens at L.118:
debug> [text, fmt] = get_help_text (fn)
error: class not found: double
error: called from
lookfor at line 118 column 25
debug>
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:
>> lookfor deblank
deblank Remove trailing whitespace and nulls from S.
>>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44924>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/