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 249697 - IllegalArgumentException: URI scheme is not "file"
Summary: IllegalArgumentException: URI scheme is not "file"
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: RequireJS (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 250220 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-08 14:09 UTC by Vladimir Riha
Modified: 2015-03-31 14:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 214661


Attachments
stacktrace (2.69 KB, text/plain)
2015-01-08 14:09 UTC, Vladimir Riha
Details
protractor-conf.js (297 bytes, text/plain)
2015-01-08 16:10 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-01-08 14:09:33 UTC
Build: NetBeans IDE Dev (Build 201501080001)
VM: Java HotSpot(TM) Client VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
vriha: Not really sure, I had opened AngularJSPhoneCatalog sample project and opened file test/protractor-conf.js in editor and was editing it (but did not invoke cc)




Stacktrace: 
java.lang.IllegalArgumentException: URI scheme is not "file"
   at java.io.File.<init>(File.java:421)
   at org.openide.util.BaseUtilities.toFile(BaseUtilities.java:1677)
   at org.openide.util.Utilities.toFile(Utilities.java:2014)
   at org.netbeans.modules.javascript2.requirejs.editor.FSCompletionUtils.computeRelativeItems(FSCompletionUtils.java:122)
   at org.netbeans.modules.javascript2.requirejs.editor.RequireJSCodeCompletion.complete(RequireJSCodeCompletion.java:217)
   at org.netbeans.modules.javascript2.editor.JsCodeCompletion.complete(JsCodeCompletion.java:228)
Comment 1 Vladimir Riha 2015-01-08 14:09:35 UTC
Created attachment 151410 [details]
stacktrace
Comment 2 Vladimir Riha 2015-01-08 14:12:14 UTC
The configuration file is the issue:
 - open test/protractor-conf.js
 - select the value (without quote) of "baseUrl" on line 14 and replace it 

http://localhost:8383/

=> IAE

The problem seems to be the "exports.config" which is being treated as RequireJS
Comment 3 Petr Pisl 2015-01-08 15:59:11 UTC
Could you please attach the file? Thanks
Comment 4 Vladimir Riha 2015-01-08 16:10:14 UTC
Created attachment 151412 [details]
protractor-conf.js

Sure, here it is
Comment 5 Petr Pisl 2015-01-08 16:32:01 UTC
Fixed in web-main. Thanks for the file.
Comment 6 Quality Engineering 2015-01-09 03:38:20 UTC
Integrated into 'main-silver', will be available in build *201501090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c8d004c0c53b
User: Petr Pisl <ppisl@netbeans.org>
Log: #249697 - IllegalArgumentException: URI scheme is not file
Comment 7 Vladimir Riha 2015-01-09 15:30:01 UTC
Verified, thank you

Product Version: NetBeans IDE Dev (Build 201501090001)
Java: 1.8.0_25; Java HotSpot(TM) Client VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 8 Roman Svitanic 2015-03-31 14:12:53 UTC
*** Bug 250220 has been marked as a duplicate of this bug. ***