This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258667

Summary: Allow terminal to open hyperlinks
Product: cnd Reporter: ilia
Component: TerminalemulatorAssignee: ilia
Status: STARTED ---    
Severity: normal CC: apepin
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: screenshot

Description ilia 2016-04-05 16:15:36 UTC

    
Comment 1 ilia 2016-04-06 08:26:51 UTC
Partial fix in:
  hg.netbeans.org/cnd-main/rev/817fe2bef5eb

Added support for links to files with absolute path provided:

fprintf(stdout, "(\033]10;%s;%s\007)]\n", "/home/ilia/NetBeansProjects/CppApplication_48/main.cpp:20", "main.cpp:20");

[:lineNumber] is Optional
Comment 2 Quality Engineering 2016-04-07 01:53:19 UTC
Integrated into 'main-silver', will be available in build *201604070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/817fe2bef5eb
User: Ilia Gromov <ilia@netbeans.org>
Log: fixed #258667 - Allow terminal to open hyperlinks
Comment 3 Quality Engineering 2016-04-12 01:46:47 UTC
Integrated into 'main-silver', will be available in build *201604120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/102f74a99e14
User: Ilia Gromov <ilia@netbeans.org>
Log: remove extra unboxing - #258667 - Allow terminal to open hyperlinks
Comment 4 Alexander Pepin 2016-09-27 16:36:57 UTC
Hyperlinks do not work in the terminal for full remote projects.
Comment 5 Alexander Pepin 2016-10-20 14:15:26 UTC
One more issue is that after clicking on the hyperlink in the terminal the cursor is set to next line instead of the line mentioned in the hyperlink (see screenshot).

From the test log:
.....
[62000] The source file 'intTest.cc' should be opened in the editor now and the cursor should be set to the line pointed by the hyperlink.
[62017] The cursor is set to the line 14
[62017] The line pointed by the hyperlink is 13
[62017] TEST FAILED: The cursor is set to line 14 whereas is should be set to line 13 pointed by the hyperlink
Comment 6 Alexander Pepin 2016-10-20 14:17:42 UTC
Created attachment 162569 [details]
screenshot
Comment 7 Quality Engineering 2016-10-31 02:58:28 UTC
Integrated into 'main-silver', will be available in build *201610310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a27f1a866e32
User: Ilia Gromov <ilia@netbeans.org>
Log: additional fix for #258667 - Allow terminal to open hyperlin
(transplanted from 4ce5ae55fb9616bc855a85b190a4893f44e63660)