LiTiang / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Coverage source processing errors specify a line and column number, but no file name #205

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add this to one if your source files 'var f = new function(){};'
2. Try to generate coverage

I expect to see something like this:

pkg/MyClass.js, line 1269:35 no viable alternative at input 'function'
pkg/MyClass.js, line 1269:44 no viable alternative at input ')'

But instead I see this

line 1269:35 no viable alternative at input 'function'
line 1269:44 no viable alternative at input ')'

where there is no indication of the file where the error occurred.

What version of the product are you using? On what operating system?

js-test-driver 1.3.1 on WindowsXP.

Please provide any additional information below.

Original issue reported on code.google.com by dominic....@gmail.com on 25 Feb 2011 at 11:22

GoogleCodeExporter commented 9 years ago
Work around: run with --runnerMode=DEBUG_NO_TRACE.

Original comment by corbinrs...@gmail.com on 21 Mar 2011 at 12:22

GoogleCodeExporter commented 9 years ago
Excellent, thanks for the work around!

Original comment by dominic....@gmail.com on 25 Mar 2011 at 3:34