bugGNU Octave - Bugs: bug #54801, Errors in subfunctions do not...

 
 

bug #54801: Errors in subfunctions do not create a valid link to the source code in the command window

Submitted by:  Lars Kindermann <larskindermann>
Submitted on:  Sun 07 Oct 2018 01:47:55 PM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

( Jump to the original submission)

Thu 11 Oct 2018 04:48:02 PM UTC, comment #8:

The issue reported in comment #6 (bar>foo not found) should be fixed by changeset http://hg.savannah.gnu.org/hgweb/octave/rev/e9c24b5e8673

Torsten <ttl>
Project Member
Wed 10 Oct 2018 06:19:22 PM UTC, comment #7:

Okay, this new error message

is due to the fact that the gui does not check for this syntax (>) yet.

Torsten <ttl>
Project Member
Wed 10 Oct 2018 06:14:59 PM UTC, comment #6:

right, my example was a script file called "bar.m"
Maybe more intuitive, this bar.m shows a similar effect:

except that the message is a bit different now:

Now foo is recognized to sit within bar, but clicking the line

will open an "Ocatve Error" message box, now stating

Obviously scripts and functions are handled differently but neither correctly.

Lars Kindermann <larskindermann>
Wed 10 Oct 2018 05:48:10 PM UTC, comment #5:

As far as I understand, foo was declared in a script file. As a result, octave says (using exist or which) that "foo" is an inline function.

It would be helpful if the error messages contains the related file, where a function was defined. Is this information stored somewhere? I recognized that the "file" field in the return values from dbstatus is empty if there is a breakpoint set in "foo".

Torsten <ttl>
Project Member
Wed 10 Oct 2018 11:57:54 AM UTC, comment #4:

OK, so we need to fix the error messages to be better. What should they say?

Lars, did you post a complete example file? So in your case, foo is defined in a script file?

?

What do Matlab users expect to see?

John W. Eaton <jwe>
Project Administrator
Wed 10 Oct 2018 05:11:16 AM UTC, comment #3:

Yes, the unix version of the terminal has a filter functionality for detecting links in the terminal output, the windows version scans any selected text when the context menu is activated.

Torsten <ttl>
Project Member
Tue 09 Oct 2018 08:41:48 PM UTC, comment #2:

How does the GUI get info about the failure? Is it parsing the error message?

John W. Eaton <jwe>
Project Administrator
Tue 09 Oct 2018 08:29:31 PM UTC, comment #1:

Is there a way to get the information on the file related to the subfunction from octave? Both, "exist" and "which" (or "__which__") say it is a command-line function.

Torsten <ttl>
Project Member
Sun 07 Oct 2018 01:47:55 PM UTC, original submission:

When the interpreter encounters an error within a subfunction foo in file bar.m

the result in the command window is

While clicking the line

jumps to the correct location in the editor, clicking

pops up an error message window, titeled "Octace Editor", incorrectly stating that

In addition to create the correct link, I suggest to always include the filename to the error messages, e.g.

This would make debuging much easier.

Lars Kindermann <larskindermann>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by larskindermann (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-09 rik5 Carbon-CopyRemoved 72865 => -
    2018-10-09 rik5 SummaryErros in subfunctions do not create a valid link to the source code in the command window => Errors in subfunctions do not create a valid link to the source code in the command window

    Back to the top


    Powered by Savane 3.3