octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46852] error gripe appearing when it seemingl


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #46852] error gripe appearing when it seemingly shouldn't during length()
Date: Sat, 09 Jan 2016 00:47:09 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #2, bug #46852 (project octave):

OK, the reason you can't find that error message is that I wasn't in fact
running the current code, but a slightly older version.  I've uninstalled and
rebuilt again to verify that the day-old repository is what is running.

The error still exists but the message now reflects the current format.  This
suggests this may not be related to the gripe-code changes, but some obscure
structure bug that hasn't arisen before.  The message is now:

error: length(117): out of bound 1

The example you gave produces:

octave:3> ls = 1;
octave:4> ls ('u')
error: ls(117): out of bound 1

So, the above two bugs are not of the same nature.  Where the second error
message makes sense, the first doesn't.  length(x) is the syntax causing the
error.  length(117) is valid syntax if that is arising somehow.

I think that something (probably in the structure code) is causing an invalid
error to be thrown and then the gripe code prints out a message accordingly,
but it is a nonsensical error message.

I've tried to replicate this in a more direct way, but can't.  I've extracted
the structure and worked on it directly and no error occurs.  Only in the
circumstance of a bigger program.  I'll keep trying things and see if I can
find a pattern.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46852>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]