Rhino stack traces

I am using Rhino to compile JS files. It produces stack traces where the .js file name and line number are listed, but IDEA won't link to the source.

Is there any way to get IDEA to make JS file line numbers from Rhino generated byte codes linkable?

Thanks,
Bob Jervis

2 comments
Comment actions Permalink

On 2007-03-16 00:33:55 +0300, Bob Jervis <bjervis@google.com> said:

I am using Rhino to compile JS files. It produces stack traces where
the .js file name and line number are listed, but IDEA won't link to
the source.

Is there any way to get IDEA to make JS file line numbers from Rhino
generated byte codes linkable?

Thanks,
Bob Jervis


Would you please post a sample stacktrace here?

0
Comment actions Permalink

For example:

at org.mozilla.javascript.gen.c104._c1(/*** actual path obscured ***/.js:49)
at org.mozilla.javascript.gen.c104.call(/*** actual path obscured ***/.js)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:307)

Sorry that I can't include the actual path's, but these are full Linux source file path's. Apparently, Rhino generates byte codes and maps them to JS sources. Verifying by hand shows that these line numbers are good.

In the above snippet, baseFunction.java:307 is a live link the Intellij will route to an appropriate editor, but the .js path is not.

If this is something I could write a plugin to address, I would be ahppy to do that, but I didn't see anything relevant in the plugin docs.

0

Please sign in to leave a comment.