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 245931 - Karma debugging on Windows without basePath configuration
Summary: Karma debugging on Windows without basePath configuration
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-24 07:07 UTC by Vladimir Riha
Modified: 2014-08-11 07:35 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (621.54 KB, application/x-zip-compressed)
2014-07-24 07:07 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-07-24 07:07:37 UTC
Created attachment 148251 [details]
sample project

Please check the attached project, karma.conf.js contains relative paths but no basePath configuration. As a result, debugging does not work. 

The debug page contains links in form of 

<script type="text/javascript" src="/absoluteC:/Users/vlriha/Downloads/debug/project_debug_5/sample_karma/app/js/app.js"></script>


Thank you



Product Version: NetBeans IDE Dev (Build 201407240001)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Vladimir Riha 2014-07-24 07:10:59 UTC
For the record, the same happens if I have basePath and tests are outside of project folder
Comment 2 Tomas Mysik 2014-07-24 07:33:53 UTC
Will wait for feedback from Karma team, thanks.
Comment 3 Vladimir Riha 2014-07-24 11:31:50 UTC
Reported as https://github.com/karma-runner/karma/issues/1145 , let's see
Comment 4 Tomas Mysik 2014-07-30 07:57:43 UTC
Should be fixed now I hope, please verify. Thanks.

http://hg.netbeans.org/web-main/rev/3c90844c402f
Comment 5 Vladimir Riha 2014-07-30 11:19:31 UTC
Sorry, 1st case is still reproducible. If I use basePath (to project root) and external tests, debugger stops in sources but not in tests. Raising to P2 so it can be fixed for 8.0.1. Thank you


Product Version: NetBeans IDE Dev (Build web-main-1110-on-20140730)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 6 Quality Engineering 2014-07-31 08:59:30 UTC
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3c90844c402f
User: Tomas Mysik <tmysik@netbeans.org>
Log: #245931 - Karma debugging on Windows without basePath configuration
Comment 7 Tomas Mysik 2014-08-01 05:42:21 UTC
Should be fixed now, please verify (ideally all the scenarios).

Please, let me know once I can transplant it to the releases repo.

Thanks.

http://hg.netbeans.org/web-main/rev/b135408900dc
Comment 8 Vladimir Riha 2014-08-01 06:18:22 UTC
Thanks, I'll verify it in 1st available web-main build.
Comment 9 Vladimir Riha 2014-08-01 08:26:10 UTC
Verified on Windows (all cases) and Linux with whitespace in path to project. Please transplant to release801. Thank you.


Mariane, should we use 801_HR_FIX (CANDIDATE) keywords? They don't exist in BZ


Product Version: NetBeans IDE Dev (Build web-main-1119-on-20140801)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 10 Marian Mirilovic 2014-08-01 08:56:48 UTC
... we are not going to have a public RC builds, so we do not need HR_FIX keywords. Please proceed with integration and change TM to 8.0.1. Thanks in advance.
Comment 11 Tomas Mysik 2014-08-01 09:26:21 UTC
Done. Thanks.

http://hg.netbeans.org/releases/rev/c51aa5d6eda7
Comment 12 Quality Engineering 2014-08-02 05:07:33 UTC
Integrated into 'main-silver', will be available in build *201408020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b135408900dc
User: Tomas Mysik <tmysik@netbeans.org>
Log: #245931 - Karma debugging on Windows without basePath configuration
Comment 13 Vladimir Riha 2014-08-11 07:35:11 UTC
Verified in 8.0.1, thanks

Product Version: NetBeans IDE 8.0.1 RC1 (Build 201408102300)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)