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 152855 - stacktrace to source navigation missing for scripts
Summary: stacktrace to source navigation missing for scripts
Status: RESOLVED DUPLICATE of bug 228786
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Martin Janicek
URL:
Keywords:
: 154662 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-10 11:22 UTC by Lukas Jungmann
Modified: 2013-08-08 10:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-11-10 11:22:49 UTC
-have following GroovyScript.groovy script:

x = "a"
println getName(x)
def getName(a) {
    assert false
}

-run it from the IDE

=> prints following stacktrace in the output:

...
run-single:
Exception in thread "main" java.lang.AssertionError: Expression: false
        at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:393)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:683)
        at GroovyScript.getName(GroovyScript.groovy:7)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ...
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
        at GroovyScript.run(GroovyScript.groovy:3)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ...
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
        at GroovyScript.main(GroovyScript.groovy)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

but there's no hyperlink for occurrences of known GroovyScript.groovy file from the output tab to the editor
Comment 1 Petr Hejl 2009-04-23 13:01:19 UTC
*** Issue 154662 has been marked as a duplicate of this issue. ***
Comment 2 Martin Janicek 2011-12-12 12:45:26 UTC
Still valid issue, but it's a minority problem at the moment. Setting TM --> Next
Comment 3 Martin Janicek 2013-08-08 10:02:17 UTC

*** This bug has been marked as a duplicate of bug 228786 ***