Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

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:

  1. 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/
    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$fn2756$G27242765/invoke
    23 closure.clj: 418 cljs.closure/eval7540/fn
    24 js_deps.cljc: 121 cljs.js_deps$eval2733$fn
    2756$G27242765/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

2 Answers

0 votes
by
_Comment made by: xfcjscn_

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 }
0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2439 (reported by alex+import)
...