bugGNU Octave - Bugs: bug #35619, Link error in 'Terminal' tab with...

 
 

bug #35619: Link error in 'Terminal' tab with the corresponding m-file

Submitter:  Fritz <deraltefritz>
Submitted:  Fri 24 Feb 2012 01:22:11 PM UTC
   
 
Category:  GUI Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Wont Fix Assigned to:  ttl
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 10 Mar 2019 06:59:13 PM UTC, comment #11: 

Since there are already plans to redesign the gui console, this feature won't be implemented for the current console for windows.

There is already the workaround that after selecting the error message with file and line number, the context menu offers an entry for opening the file at the corresponding line.

Torsten Lilge <ttl>
Group Member
Tue 16 May 2017 05:28:57 PM UTC, comment #10: 

Changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/f45402b9dcc4
makes parse error message clickable. So, this bug seems to be resolved for Linux and Mac OS. Regarding Windows, I will have a look at using the Filter feature in the windows terminal, too.

Changed the OS to Windows.

Torsten Lilge <ttl>
Group Member
Tue 09 May 2017 07:32:32 PM UTC, comment #9: 

The attached patch provides a possibility to highlight error and warning messages by escape sequences in the message strings (only for unix terminal). Since this requires changes in error.cc, I would like to know if there are any objections against this approach.

(file #40637)

Torsten Lilge <ttl>
Group Member
Sun 07 May 2017 01:38:17 PM UTC, comment #8: 

I have pushed changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/c8722519330a
which handles links to erroneous files like ordinary links: underlined when the mouse cursor is over it. Other highlighting of these links and the related error messages are removed due to the issues when scrolling the console output. I am currently looking for a possibility to highlight error message by coloring them via escape sequences.

Torsten Lilge <ttl>
Group Member
Mon 17 Apr 2017 07:49:27 PM UTC, comment #7: 

Changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/314ac710f2ae
provides highlighting of errors and related files in the terminal. The link to the file is clickable and opens the file at the erroneous line. By this, all error messages in the terminal buffer are highlighted and clickable, not only the one of the last error. When scrolling the terminal window with highlighted errors, some artifacts will appear, which can hopefully be fixed soon.

Patches for highlighting syntax errors and warnings will follow.

For now, this method does not work in windows.


Torsten Lilge <ttl>
Group Member
Sat 19 Nov 2016 08:20:00 PM UTC, comment #6: 

This very useful feature is still very hidden in Octave 4.2.0.

I've used the Octave GUI for years without knowing about it. So I'd like to also vote for the suggestion in comment #5.

Hartmut <hardy>
Fri 26 Feb 2016 01:57:41 PM UTC, comment #5: 

Torsten, that feature is nice, but a little hidden.  I needed to read the code to discover that I had to select the text for it to appear in the context menu.

How about just calling (F)lasterror and add that to the context menu even if no error message is selected?

Lachlan Andrew <lachlan>
Mon 28 Dec 2015 04:21:59 PM UTC, comment #4: 

Changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/aab7a3c7168e
provides the possibility to edit a file from a selected error message via the context menu.

Torsten Lilge <ttl>
Group Member
Mon 20 Jan 2014 04:22:23 AM UTC, comment #3: 

This might depend on bug #41076, adding support for clickable hyperlinks in the command window.

Mike Miller <mtmiller>
Group Member
Sun 26 Feb 2012 02:55:02 AM UTC, comment #2: 

Ok. I see the category has already been marked as "GUI"

Ben Abbott <bpabbott>
Group Member
Sun 26 Feb 2012 02:37:26 AM UTC, comment #1: 

Fritz are you running the developer's experimental gui ?


Ben Abbott <bpabbott>
Group Member
Fri 24 Feb 2012 01:22:11 PM UTC, original submission:  

When a script stops on an error, octave's error message is displayed in the 'Terminal' tab.

It would be very helpful if clicking on that error message could bring you directly to the corresponding line of the tab showing that m-file (open file in new tab if it's not opened already).

This is the way it's done in Matlab, and I'm sure it would increase the productivity using octave-gui enormously.

Fritz <deraltefritz>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #40637:  highlight_error.patch added by ttl (9KiB - text/x-patch)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by deraltefritz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-10 mtmiller Carbon-CopyRemoved 80942 -
    2019-03-10 ttl StatusIn Progress Wont Fix
        Open/ClosedOpen Closed
    2017-05-16 ttl StatusReady For Test In Progress
        Operating SystemAny Microsoft Windows
    2017-05-09 ttl Attached File- Added highlight_error.patch, #40637
    2017-04-17 ttl Assigned toNone ttl
    2015-12-28 ttl StatusConfirmed Ready For Test
    2014-01-20 mtmiller Severity3 - Normal 1 - Wish
        StatusNone Confirmed
        Dependencies- Depends on bugs #41076

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code