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 222463 - Browser log (stacktrace) not always clickable
Summary: Browser log (stacktrace) not always clickable
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-20 12:55 UTC by Vladimir Riha
Modified: 2012-12-05 22:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (397.03 KB, application/zip)
2012-11-20 12:55 UTC, Vladimir Riha
Details
screenshot (156.79 KB, image/png)
2012-12-04 12:01 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-11-20 12:55:39 UTC
Created attachment 128127 [details]
sample project

I know David mentioned it in some previous email but I haven't noticed it until now. Sometimes stacktrace in browser log is not clickable, so you cannot click on it and navigate to given line.

I'm attaching sample project, just run it and check output:

TypeError: Cannot read property 'length' of undefined
    at Object.MyCtrl1.$scope.fetch (app/js/controllers.js:12:36)
    at new MyCtrl1 (app/js/controllers.js:17:12)
    at invoke (app/lib/angular/angular.js:2795:28)
    at Object.instantiate (app/lib/angular/angular.js:2805:23)
    at http://localhost:8383/HTML5Application25/lib/angular/angular.js:4621:24
....

This:
http://localhost:8383/HTML5Application25/lib/angular/angular.js:4621:24

is not clickable. I noticed it in some other projects with angular and it happens when there is URL instead of function name.



Product Version: NetBeans IDE Dev (Build web-main-9266-on-20121120)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b16
System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Martin Entlicher 2012-11-20 17:08:10 UTC
Reproduced. The parsing of messages needs to be adjusted...
Comment 2 Martin Entlicher 2012-11-21 17:10:44 UTC
Fixed by changeset:   239939:d4c2ace75c2f
http://hg.netbeans.org/web-main/rev/d4c2ace75c2f
Comment 3 David Konecny 2012-11-21 19:53:25 UTC
Thanks Martin for fixing it in jstestdriver too. Awesome! :-)
Comment 4 Quality Engineering 2012-11-22 02:45:07 UTC
Integrated into 'main-golden', will be available in build *201211220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d4c2ace75c2f
User: mentlicher@netbeans.org
Log: #222463: Test an URL in the output for a project's file, to add the appropriate link. JSTestDriverSupport.LineConvertorImpl.convert() made in sync with BrowserConsoleLogger.tryToConvertLineToHyperlink().
Comment 5 Vladimir Riha 2012-12-04 12:01:32 UTC
It looks fine in case it comes from running page but ouput from jstestdriver is not correctly formatted, please check the screenshot.

To reproduce:
- download sampleApp from https://github.com/ladariha/sampleapp/downloads
- download jstestdriver 1.3.4b
- test the project
=> output in test results and also Output|Running JS unit tests is badly formatted



Product Version: NetBeans IDE Dev (Build web-main-9421-on-20121203)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 6 Vladimir Riha 2012-12-04 12:01:49 UTC
Created attachment 128831 [details]
screenshot
Comment 7 Martin Entlicher 2012-12-04 13:47:15 UTC
This concerns debugger, where it was fixed. Please submit a separate issue for the test output.
Comment 8 Vladimir Riha 2012-12-04 13:52:40 UTC
I'm sorry, my bad. I didn't realize that it applies only to Browser log. The output in likely formatted from JSTestDriver as such. 

Verified
Comment 9 David Konecny 2012-12-05 22:19:31 UTC
I filed misconfigured output of jstestdriver output as issue 223355.