ClojureScript

FileNoteFoundException thrown when have URL configed in :foreign-libs/:file

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.908, 1.10.238
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    OS: Ubuntu 16.04

Description

When I have URL configed in :foreign-libs/:file (via build option or deps.cljs), I get FileNoteFoundException.

URL example: https:/raw.githubusercontent.com/mrdoob/three.js/dev/examples/js/controls/OrbitControls.js

Error Log:

51. Unhandled java.io.FileNotFoundException
6 /home/shark/git/apps/https:/raw.githubusercontent.com/mrdoob/three.js/dev/examples/js/controls/OrbitControls.js
7 (No such file or directory)
8
9 FileInputStream.java: -2 java.io.FileInputStream/open0
10 FileInputStream.java: 195 java.io.FileInputStream/open
11 FileInputStream.java: 138 java.io.FileInputStream/<init>
12 io.clj: 238 clojure.java.io/fn
13 io.clj: 235 clojure.java.io/fn
14 io.clj: 69 clojure.java.io/fn/G
15 io.clj: 165 clojure.java.io/fn
16 io.clj: 69 clojure.java.io/fn/G
18 io.clj: 102 clojure.java.io/reader
19 io.clj: 86 clojure.java.io/reader
20 RestFn.java: 410 clojure.lang.RestFn/invoke
21 closure.clj: 422 cljs.closure/eval7540/fn
22 js_deps.cljc: 121 cljs.js_deps$eval2733$fn_2756$G2724_2765/invoke
23 closure.clj: 418 cljs.closure/eval7540/fn
24 js_deps.cljc: 121 cljs.js_deps$eval2733$fn_2756$G2724_2765/invoke
25 closure.clj: 1723 cljs.closure/write-javascript
26 closure.clj: 1699 cljs.closure/write-javascript
27 closure.clj: 1748 cljs.closure/source-on-disk
28 closure.clj: 1743 cljs.closure/source-on-disk
29 closure.clj: 2604 cljs.closure/build/fn
30 core.clj: 2646 clojure.core/map/fn
31 LazySeq.java: 40 clojure.lang.LazySeq/sval
32 LazySeq.java: 49 clojure.lang.LazySeq/seq
33 Cons.java: 39 clojure.lang.Cons/next
34 RT.java: 688 clojure.lang.RT/next
35 core.clj: 64 clojure.core/next
36 core.clj: 3033 clojure.core/dorun
37 core.clj: 3039 clojure.core/doall
38 closure.clj: 2604 cljs.closure/build
40 closure.clj: 2507 cljs.closure/build
41 api.clj: 205 cljs.build.api/build
42 api.clj: 189 cljs.build.api/build
43 api.clj: 192 cljs.build.api/build
44 api.clj: 189 cljs.build.api/build
45 REPL: 62 apps.cljs-rt-browser/-main

Activity

Hide
Shark Xu added a comment -

Add my config code:

1{:foreign-libs
2 [{:file "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/js/controls/OrbitControls.js"
3 :provides ["cljsjs.three-orbitcontrols"]
4 :requires ["cljsjs.three"]
5 }
6 {:file "https://raw.githubusercontent.com/dataarts/dat.gui/master/build/dat.gui.js"
7 :provides ["cljsjs.dat-gui"]
8 }
9 {:file "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/js/ParametricGeometries.js"
10 :provides ["cljsjs.three-parametricgeometries"]
11 :requires ["cljsjs.three"]
12 }
13
14 ]
15 }

Show
Shark Xu added a comment - Add my config code: 1{:foreign-libs 2 [{:file "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/js/controls/OrbitControls.js" 3 :provides ["cljsjs.three-orbitcontrols"] 4 :requires ["cljsjs.three"] 5 } 6 {:file "https://raw.githubusercontent.com/dataarts/dat.gui/master/build/dat.gui.js" 7 :provides ["cljsjs.dat-gui"] 8 } 9 {:file "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/js/ParametricGeometries.js" 10 :provides ["cljsjs.three-parametricgeometries"] 11 :requires ["cljsjs.three"] 12 } 13 14 ] 15 }

People

  • Assignee:
    Unassigned
    Reporter:
    Shark Xu
Vote (0)
Watch (0)

Dates

  • Created:
    Updated: