{"action":"created","issue":{"url":"https://api.github.com/repos/omcljs/ambly/issues/72","labels_url":"https://api.github.com/repos/omcljs/ambly/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/omcljs/ambly/issues/72/comments","events_url":"https://api.github.com/repos/omcljs/ambly/issues/72/events","html_url":"https://github.com/omcljs/ambly/issues/72","id":65584517,"number":72,"title":"Fail to read load-file source when mapping exception","user":{"login":"mfikes","id":1723464,"avatar_url":"https://avatars.githubusercontent.com/u/1723464?v=3","gravatar_id":"","url":"https://api.github.com/users/mfikes","html_url":"https://github.com/mfikes","followers_url":"https://api.github.com/users/mfikes/followers","following_url":"https://api.github.com/users/mfikes/following{/other_user}","gists_url":"https://api.github.com/users/mfikes/gists{/gist_id}","starred_url":"https://api.github.com/users/mfikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfikes/subscriptions","organizations_url":"https://api.github.com/users/mfikes/orgs","repos_url":"https://api.github.com/users/mfikes/repos","events_url":"https://api.github.com/users/mfikes/events{/privacy}","received_events_url":"https://api.github.com/users/mfikes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-01T01:55:13Z","updated_at":"2015-04-01T14:26:22Z","closed_at":null,"body":"In Ambly, make `src/foo/bar.cljs` with contents\r\n\r\n```clojure\r\n(ns foo.bar)\r\n\r\n(defn this-throws [] (ffirst 1))\r\n\r\n(defn call-me [] (this-throws))\r\n```\r\n\r\nThen \r\n\r\n```\r\ncljs.user=> (load-file \"foo/bar.cljs\")\r\nnil\r\ncljs.user=> (foo.bar/call-me)\r\nError: 1 is not ISeqable\r\nException in thread \"main\" java.io.FileNotFoundException: /Volumes/Ambly-0A1169FA/foo/bar.cljs (No such file or directory), compiling:(/private/var/folders/nm/97bx7f_n31z2t2g_gf2bn90w0h013l/T/form-init636739634677055485.clj:1:141)\r\n\tat clojure.lang.Compiler.load(Compiler.java:7142)\r\n\tat clojure.lang.Compiler.loadFile(Compiler.java:7086)\r\n\tat clojure.main$load_script.invoke(main.clj:274)\r\n\tat clojure.main$init_opt.invoke(main.clj:279)\r\n\tat clojure.main$initialize.invoke(main.clj:307)\r\n\tat clojure.main$null_opt.invoke(main.clj:342)\r\n\tat clojure.main$main.doInvoke(main.clj:420)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:421)\r\n\tat clojure.lang.Var.invoke(Var.java:383)\r\n\tat clojure.lang.AFn.applyToHelper(AFn.java:156)\r\n\tat clojure.lang.Var.applyTo(Var.java:700)\r\n\tat clojure.main.main(main.java:37)\r\nCaused by: java.io.FileNotFoundException: /Volumes/Ambly-0A1169FA/foo/bar.cljs (No such file or directory)\r\n\tat java.io.FileInputStream.open(Native Method)\r\n\tat java.io.FileInputStream.<init>(FileInputStream.java:138)\r\n\tat clojure.java.io$fn__8702.invoke(io.clj:229)\r\n\tat clojure.java.io$fn__8615$G__8606__8622.invoke(io.clj:69)\r\n\tat clojure.java.io$fn__8676.invoke(io.clj:165)\r\n\tat clojure.java.io$fn__8628$G__8610__8635.invoke(io.clj:69)\r\n\tat clojure.java.io$reader.doInvoke(io.clj:102)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:410)\r\n\tat cljs.analyzer$parse_ns$fn__1828.invoke(analyzer.clj:2049)\r\n\tat cljs.analyzer$parse_ns.invoke(analyzer.clj:2035)\r\n\tat cljs.analyzer$parse_ns.invoke(analyzer.clj:2026)\r\n\tat cljs.repl$read_source_map.invoke(repl.clj:218)\r\n\tat clojure.core$juxt$fn__4211.invoke(core.clj:2440)\r\n\tat cljs.repl$mapped_stacktrace$iter__3946__3950$fn__3951$fn__3952.invoke(repl.clj:287)\r\n\tat cljs.repl$mapped_stacktrace$iter__3946__3950$fn__3951.invoke(repl.clj:278)\r\n\tat clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n\tat clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n\tat clojure.lang.RT.seq(RT.java:484)\r\n\tat clojure.core$seq.invoke(core.clj:133)\r\n\tat clojure.core$map$fn__4245.invoke(core.clj:2551)\r\n\tat clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n\tat clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n\tat clojure.lang.LazySeq.more(LazySeq.java:85)\r\n\tat clojure.lang.RT.more(RT.java:607)\r\n\tat clojure.core$rest.invoke(core.clj:73)\r\n\tat cljs.repl$mapped_stacktrace.invoke(repl.clj:322)\r\n\tat ambly.repl.jsc.JscEnv._print_stacktrace(jsc.clj:374)\r\n\tat cljs.repl$display_error.invoke(repl.clj:402)\r\n\tat cljs.repl$repl_caught.invoke(repl.clj:696)\r\n\tat cljs.repl$repl_STAR_$fn__4119$fn__4126.invoke(repl.clj:835)\r\n\tat cljs.repl$repl_STAR_$fn__4119.invoke(repl.clj:832)\r\n\tat cljs.compiler$with_core_cljs.invoke(compiler.clj:951)\r\n\tat cljs.repl$repl_STAR_.invoke(repl.clj:798)\r\n\tat cljs.repl$repl.doInvoke(repl.clj:914)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:410)\r\n\tat ambly.repl.jsc$_main.invoke(jsc.clj:403)\r\n\tat clojure.lang.Var.invoke(Var.java:375)\r\n\tat user$eval5.invoke(form-init636739634677055485.clj:1)\r\n\tat clojure.lang.Compiler.eval(Compiler.java:6703)\r\n\tat clojure.lang.Compiler.eval(Compiler.java:6693)\r\n\tat clojure.lang.Compiler.load(Compiler.java:7130)\r\n\t... 11 more\r\n```\r\n\r\nYou can see that the \"derived\" compiler output is there, but not the file that was loaded:\r\n\r\n```\r\nMike-Fikess-MacBook-Pro:foo mfikes$ pwd\r\n/Volumes/Ambly-0A1169FA/foo\r\nMike-Fikess-MacBook-Pro:foo mfikes$ ls\r\nbar.cljs.cache.edn\tbar.js\t\t\tbar.js.map\r\nMike-Fikess-MacBook-Pro:foo mfikes$ \r\n```\r\n\r\nThis is with ClojureScript 0.0-3169. Don't know yet if it is an Ambly or ClojureScript issue, so logging here first."},"comment":{"url":"https://api.github.com/repos/omcljs/ambly/issues/comments/88504541","html_url":"https://github.com/omcljs/ambly/issues/72#issuecomment-88504541","issue_url":"https://api.github.com/repos/omcljs/ambly/issues/72","id":88504541,"user":{"login":"mfikes","id":1723464,"avatar_url":"https://avatars.githubusercontent.com/u/1723464?v=3","gravatar_id":"","url":"https://api.github.com/users/mfikes","html_url":"https://github.com/mfikes","followers_url":"https://api.github.com/users/mfikes/followers","following_url":"https://api.github.com/users/mfikes/following{/other_user}","gists_url":"https://api.github.com/users/mfikes/gists{/gist_id}","starred_url":"https://api.github.com/users/mfikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfikes/subscriptions","organizations_url":"https://api.github.com/users/mfikes/orgs","repos_url":"https://api.github.com/users/mfikes/repos","events_url":"https://api.github.com/users/mfikes/events{/privacy}","received_events_url":"https://api.github.com/users/mfikes/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T14:26:22Z","updated_at":"2015-04-01T14:26:22Z","body":"@swannodette After resetting my simulator (ensuring output directory is completely deleted), `(load-file \"src/foo/bar.cljs\")` fails in the same way (details below). If you believe that this variant should be considered valid usage, let me know and I'll put together a minimal repro with Quick Start. If not, we can close this issue as being invalid.\r\n\r\n```\r\nTo quit, type: :cljs/quit\r\ncljs.user=> (load-file \"src/foo/bar.cljs\")\r\nnil\r\ncljs.user=> (foo.bar/call-me)\r\nError: 1 is not ISeqable\r\nException in thread \"main\" java.io.FileNotFoundException: /Volumes/Ambly-0A1169FA/foo/bar.cljs (No such file or directory), compiling:(/private/var/folders/nm/97bx7f_n31z2t2g_gf2bn90w0h013l/T/form-init6679429748958357965.clj:1:142)\r\n\tat clojure.lang.Compiler.load(Compiler.java:7142)\r\n\tat clojure.lang.Compiler.loadFile(Compiler.java:7086)\r\n\tat clojure.main$load_script.invoke(main.clj:274)\r\n\tat clojure.main$init_opt.invoke(main.clj:279)\r\n\tat clojure.main$initialize.invoke(main.clj:307)\r\n\tat clojure.main$null_opt.invoke(main.clj:342)\r\n\tat clojure.main$main.doInvoke(main.clj:420)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:421)\r\n\tat clojure.lang.Var.invoke(Var.java:383)\r\n\tat clojure.lang.AFn.applyToHelper(AFn.java:156)\r\n\tat clojure.lang.Var.applyTo(Var.java:700)\r\n\tat clojure.main.main(main.java:37)\r\nCaused by: java.io.FileNotFoundException: /Volumes/Ambly-0A1169FA/foo/bar.cljs (No such file or directory)\r\n\tat java.io.FileInputStream.open(Native Method)\r\n\tat java.io.FileInputStream.<init>(FileInputStream.java:138)\r\n\tat clojure.java.io$fn__8702.invoke(io.clj:229)\r\n\tat clojure.java.io$fn__8615$G__8606__8622.invoke(io.clj:69)\r\n\tat clojure.java.io$fn__8676.invoke(io.clj:165)\r\n\tat clojure.java.io$fn__8628$G__8610__8635.invoke(io.clj:69)\r\n\tat clojure.java.io$reader.doInvoke(io.clj:102)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:410)\r\n\tat cljs.analyzer$parse_ns$fn__1828.invoke(analyzer.clj:2049)\r\n\tat cljs.analyzer$parse_ns.invoke(analyzer.clj:2035)\r\n\tat cljs.analyzer$parse_ns.invoke(analyzer.clj:2026)\r\n\tat cljs.repl$read_source_map.invoke(repl.clj:218)\r\n\tat clojure.core$juxt$fn__4211.invoke(core.clj:2440)\r\n\tat cljs.repl$mapped_stacktrace$iter__3946__3950$fn__3951$fn__3952.invoke(repl.clj:287)\r\n\tat cljs.repl$mapped_stacktrace$iter__3946__3950$fn__3951.invoke(repl.clj:278)\r\n\tat clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n\tat clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n\tat clojure.lang.RT.seq(RT.java:484)\r\n\tat clojure.core$seq.invoke(core.clj:133)\r\n\tat clojure.core$map$fn__4245.invoke(core.clj:2551)\r\n\tat clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n\tat clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n\tat clojure.lang.LazySeq.more(LazySeq.java:85)\r\n\tat clojure.lang.RT.more(RT.java:607)\r\n\tat clojure.core$rest.invoke(core.clj:73)\r\n\tat cljs.repl$mapped_stacktrace.invoke(repl.clj:322)\r\n\tat ambly.repl.jsc.JscEnv._print_stacktrace(jsc.clj:374)\r\n\tat cljs.repl$display_error.invoke(repl.clj:402)\r\n\tat cljs.repl$repl_caught.invoke(repl.clj:696)\r\n\tat cljs.repl$repl_STAR_$fn__4119$fn__4126.invoke(repl.clj:835)\r\n\tat cljs.repl$repl_STAR_$fn__4119.invoke(repl.clj:832)\r\n\tat cljs.compiler$with_core_cljs.invoke(compiler.clj:951)\r\n\tat cljs.repl$repl_STAR_.invoke(repl.clj:798)\r\n\tat cljs.repl$repl.doInvoke(repl.clj:914)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:410)\r\n\tat ambly.repl.jsc$_main.invoke(jsc.clj:403)\r\n\tat clojure.lang.Var.invoke(Var.java:375)\r\n\tat user$eval5.invoke(form-init6679429748958357965.clj:1)\r\n\tat clojure.lang.Compiler.eval(Compiler.java:6703)\r\n\tat clojure.lang.Compiler.eval(Compiler.java:6693)\r\n\tat clojure.lang.Compiler.load(Compiler.java:7130)\r\n\t... 11 more\r\n\r\n```\r\n\r\n```\r\nMike-Fikess-MacBook-Pro:Ambly-0A1169FA mfikes$ cd foo\r\nMike-Fikess-MacBook-Pro:foo mfikes$ ls \r\nbar.cljs.cache.edn\tbar.js\t\t\tbar.js.map\r\n```"}}