Uploaded image for project: 'ClojureScript'
  1. CLJS-2917

cljs.main: Failure to load user.cljs if temp out dir

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None
    • Environment:

      {:deps {org.clojure/clojurescript {:mvn/version "1.10.339"}}}

    • Patch:
      Code

      Description

      src/user.cljs
      (def a 3)
      
      $ clj -Srepro -m cljs.main
      java.lang.IllegalArgumentException: /var/folders/gx/nymj3l7x4zq3gxb97v2zwzb40000gn/T/out6255758032123683761473031144485066/cljs/user/userAE725FA.js is not a relative path
      	at clojure.java.io$as_relative_path.invokeStatic(io.clj:414)
      	at clojure.java.io$file.invokeStatic(io.clj:426)
      	at clojure.java.io$file.invoke(io.clj:418)
      	at cljs.closure$compile_file.invokeStatic(closure.clj:633)
      	at cljs.closure$compile_file.invoke(closure.clj:625)
      	at cljs.closure$fn__5175.invokeStatic(closure.clj:721)
      	at cljs.closure$fn__5175.invoke(closure.clj:715)
      	at cljs.closure$fn__5088$G__5081__5095.invoke(closure.clj:543)
      	at cljs.closure$compile.invokeStatic(closure.clj:595)
      	at cljs.closure$compile.invoke(closure.clj:592)
      	at cljs.repl$load_file$fn__6454.invoke(repl.cljc:601)
      	at cljs.repl$load_file.invokeStatic(repl.cljc:600)
      	at cljs.repl$load_file.invoke(repl.cljc:592)
      	at cljs.repl$repl_STAR_$maybe_load_user_file__6612.invoke(repl.cljc:958)
      	at cljs.repl$repl_STAR_$fn__6621$fn__6622.invoke(repl.cljc:989)
      	at cljs.repl$repl_STAR_$fn__6621.invoke(repl.cljc:982)
      	at cljs.compiler$with_core_cljs.invokeStatic(compiler.cljc:1289)
      	at cljs.compiler$with_core_cljs.invoke(compiler.cljc:1278)
      	at cljs.repl$repl_STAR_.invokeStatic(repl.cljc:979)
      	at cljs.repl$repl_STAR_.invoke(repl.cljc:855)
      	at cljs.cli$repl_opt.invokeStatic(cli.clj:305)
      	at cljs.cli$repl_opt.invoke(cli.clj:292)
      	at cljs.cli$main.invokeStatic(cli.clj:638)
      	at cljs.cli$main.doInvoke(cli.clj:625)
      	at clojure.lang.RestFn.invoke(RestFn.java:410)
      	at clojure.lang.AFn.applyToHelper(AFn.java:154)
      	at clojure.lang.RestFn.applyTo(RestFn.java:132)
      	at clojure.core$apply.invokeStatic(core.clj:659)
      	at clojure.core$apply.invoke(core.clj:652)
      	at cljs.main$_main.invokeStatic(main.clj:61)
      	at cljs.main$_main.doInvoke(main.clj:52)
      	at clojure.lang.RestFn.invoke(RestFn.java:397)
      	at clojure.lang.AFn.applyToHelper(AFn.java:152)
      	at clojure.lang.RestFn.applyTo(RestFn.java:132)
      	at clojure.lang.Var.applyTo(Var.java:702)
      	at clojure.core$apply.invokeStatic(core.clj:657)
      	at clojure.main$main_opt.invokeStatic(main.clj:317)
      	at clojure.main$main_opt.invoke(main.clj:313)
      	at clojure.main$main.invokeStatic(main.clj:424)
      	at clojure.main$main.doInvoke(main.clj:387)
      	at clojure.lang.RestFn.applyTo(RestFn.java:137)
      	at clojure.lang.Var.applyTo(Var.java:702)
      	at clojure.main.main(main.java:37)
      ClojureScript 1.10.339
      cljs.user=>
      

      If, on the other hand you specify an output directory (via -d) things work.

        Attachments

          Activity

            People

            • Assignee:
              dnolen David Nolen
              Reporter:
              mfikes Mike Fikes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: