Skip to content

Instantly share code, notes, and snippets.

@tekacs

tekacs/build.edn Secret

Last active April 29, 2020 23:41
Show Gist options
  • Save tekacs/a46476615782a45f29005d15bc0f27b7 to your computer and use it in GitHub Desktop.
Save tekacs/a46476615782a45f29005d15bc0f27b7 to your computer and use it in GitHub Desktop.
{:main home.core
:output-to "out/index.js"
:output-dir "out"
:target :bundle}
$ clj -m cljs.main -co build.edn -ro repl.edn -v -w src -c -r
Options passed to ClojureScript compiler: {:infer-externs true, :output-dir "out", :closure-warnings {:check-types :off, :check-variabl
es :off}, :closure-defines {"cljs.core._STAR_target_STAR_" "bundle"}, :ups-libs nil, :cache-analysis true, :closure-module-roots [], :o
ptimizations :none, :ups-foreign-libs [], :verbose true, :aot-cache true, :preloads [process.env clojure.browser.repl.preload], :ignore
-js-module-exts [".css"], :output-to "out/index.js", :nodejs-rt false, :preamble ["cljs/imul.js"], :browser-repl true, :ups-externs ["d
atascript/externs.js"], :opts-cache "cljsc_opts.edn", :hashbang false, :watch #object[cljs.closure$compilable_input_paths$reify__5335 0
x451a4187 "cljs.closure$compilable_input_paths$reify__5335@451a4187"], :source-map true, :cache-analysis-format :transit, :target :node
js, :main home.core, :language-in :es6, :emit-constants nil, :npm-deps true}
Copying jar:file:/home/amar/.m2/repository/lilactown/helix/0.0.10/helix-0.0.10.jar!/helix/core.cljs to /home/amar/.cljs/.aot_cache/1.10
.741/646BC24/helix/core.cljs
Reading analysis cache for jar:file:/home/amar/.m2/repository/org/clojure/clojurescript/1.10.741/clojurescript-1.10.741.jar!/cljs/core.
cljs
Compiling /home/amar/.cljs/.aot_cache/1.10.741/646BC24/helix/core.cljs to /home/amar/.cljs/.aot_cache/1.10.741/646BC24/helix/core.js
Reading analysis cache for jar:file:/home/amar/.m2/repository/org/clojure/clojurescript/1.10.741/clojurescript-1.10.741.jar!/clojure/st
ring.cljs
Reading analysis cache for jar:file:/home/amar/.m2/repository/cljs-bean/cljs-bean/1.5.0/cljs-bean-1.5.0.jar!/cljs_bean/from/cljs/core.c
ljs
Reading analysis cache for jar:file:/home/amar/.m2/repository/cljs-bean/cljs-bean/1.5.0/cljs-bean-1.5.0.jar!/cljs_bean/core.cljs
Reading analysis cache for jar:file:/home/amar/.m2/repository/lilactown/helix/0.0.10/helix-0.0.10.jar!/helix/impl/props.cljc
Unexpected error (IllegalArgumentException) compiling at (REPL:1).
/_SLASH_impl_SLASH_class/js.cljs is not a relative path
{:deps
{org.clojure/clojurescript {:mvn/version "1.10.741"}
datascript {:mvn/version "0.18.11"}
datascript-transit {:mvn/version "0.3.0"}
binaryage/devtools {:mvn/version "0.9.10"}
lilactown/helix {:mvn/version "0.0.10"}
binaryage/oops {:mvn/version "0.7.0"}
cljs-bean {:mvn/version "1.5.0"}
com.rpl/specter {:mvn/version "1.1.3"}
instaparse {:mvn/version "1.4.10"}}}
{:clojure.main/message
"Unexpected error (IllegalArgumentException) compiling at (REPL:1).\n/_SLASH_impl_SLASH_class/js.cljs is not a relative path\n",
:clojure.main/triage
{:file
#object[java.io.File 0x3b399f5a "/home/amar/.cljs/.aot_cache/1.10.741/646BC24/helix/core.cljs"],
:clojure.error/phase :compilation,
:clojure.error/class java.lang.IllegalArgumentException,
:clojure.error/cause
"/_SLASH_impl_SLASH_class/js.cljs is not a relative path"},
:clojure.main/trace
{:via
[{:type clojure.lang.ExceptionInfo,
:message
"failed compiling file:/home/amar/.cljs/.aot_cache/1.10.741/646BC24/helix/core.cljs",
:data
{:file
#object[java.io.File 0x3b399f5a "/home/amar/.cljs/.aot_cache/1.10.741/646BC24/helix/core.cljs"],
:clojure.error/phase :compilation},
:at
[cljs.compiler$compile_file$fn__3894 invoke "compiler.cljc" 1720]}
{:type clojure.lang.ExceptionInfo,
:data
{:clojure.error/source nil,
:clojure.error/line nil,
:clojure.error/column nil,
:clojure.error/phase :compilation},
:at [cljs.analyzer$analyze invokeStatic "analyzer.cljc" 4253]}
{:type clojure.lang.ExceptionInfo,
:message
"/_SLASH_impl_SLASH_class/js.cljs is not a relative path in file /home/amar/.cljs/.aot_cache/1.10.741/646BC24/helix/core.cljs",
:data {:tag :cljs/analysis-error},
:at [cljs.analyzer$error invokeStatic "analyzer.cljc" 762]}
{:type java.lang.IllegalArgumentException,
:message "/_SLASH_impl_SLASH_class/js.cljs is not a relative path",
:at [clojure.java.io$as_relative_path invokeStatic "io.clj" 414]}],
:trace
[[clojure.java.io$as_relative_path invokeStatic "io.clj" 414]
[clojure.java.io$file invokeStatic "io.clj" 426]
[clojure.java.io$file invoke "io.clj" 418]
[cljs.analyzer$locate_src invokeStatic "analyzer.cljc" 2590]
[cljs.analyzer$locate_src invoke "analyzer.cljc" 2577]
[cljs.analyzer$analyze_deps invokeStatic "analyzer.cljc" 2633]
[cljs.analyzer$analyze_deps invoke "analyzer.cljc" 2605]
[cljs.analyzer$ns_side_effects invokeStatic "analyzer.cljc" 4115]
[cljs.analyzer$ns_side_effects invoke "analyzer.cljc" 4110]
[cljs.analyzer$analyze_STAR_$fn__2771 invoke "analyzer.cljc" 4237]
[clojure.lang.PersistentVector reduce "PersistentVector.java" 343]
[clojure.core$reduce invokeStatic "core.clj" 6827]
[clojure.core$reduce invoke "core.clj" 6810]
[cljs.analyzer$analyze_STAR_ invokeStatic "analyzer.cljc" 4237]
[cljs.analyzer$analyze_STAR_ invoke "analyzer.cljc" 4228]
[cljs.analyzer$analyze invokeStatic "analyzer.cljc" 4256]
[cljs.analyzer$analyze invoke "analyzer.cljc" 4239]
[cljs.compiler$emit_source invokeStatic "compiler.cljc" 1538]
[cljs.compiler$emit_source invoke "compiler.cljc" 1511]
[cljs.compiler$compile_file_STAR_$fn__3863
invoke
"compiler.cljc"
1623]
[cljs.compiler$with_core_cljs invokeStatic "compiler.cljc" 1431]
[cljs.compiler$with_core_cljs invoke "compiler.cljc" 1420]
[cljs.compiler$compile_file_STAR_ invokeStatic "compiler.cljc" 1607]
[cljs.compiler$compile_file_STAR_ invoke "compiler.cljc" 1600]
[cljs.compiler$compile_file$fn__3894 invoke "compiler.cljc" 1705]
[cljs.compiler$compile_file invokeStatic "compiler.cljc" 1680]
[cljs.compiler$compile_file invoke "compiler.cljc" 1656]
[cljs.closure$compile_file invokeStatic "closure.clj" 663]
[cljs.closure$compile_file invoke "closure.clj" 641]
[cljs.closure$fn__5394 invokeStatic "closure.clj" 737]
[cljs.closure$fn__5394 invoke "closure.clj" 731]
[cljs.closure$fn__5307$G__5300__5314 invoke "closure.clj" 559]
[cljs.closure$compile_from_jar invokeStatic "closure.clj" 713]
[cljs.closure$compile_from_jar invoke "closure.clj" 700]
[cljs.closure$fn__5398 invokeStatic "closure.clj" 747]
[cljs.closure$fn__5398 invoke "closure.clj" 731]
[cljs.closure$fn__5307$G__5300__5314 invoke "closure.clj" 559]
[cljs.closure$compile_sources$iter__5520__5524$fn__5525
invoke
"closure.clj"
1107]
[clojure.lang.LazySeq sval "LazySeq.java" 42]
[clojure.lang.LazySeq seq "LazySeq.java" 51]
[clojure.lang.Cons next "Cons.java" 39]
[clojure.lang.RT next "RT.java" 713]
[clojure.core$next__5386 invokeStatic "core.clj" 64]
[clojure.core$dorun invokeStatic "core.clj" 3142]
[clojure.core$doall invokeStatic "core.clj" 3148]
[clojure.core$doall invoke "core.clj" 3148]
[cljs.closure$compile_sources invokeStatic "closure.clj" 1103]
[cljs.closure$compile_sources invoke "closure.clj" 1092]
[cljs.closure$build invokeStatic "closure.clj" 3115]
[cljs.closure$build invoke "closure.clj" 3023]
[cljs.build.api$build invokeStatic "api.clj" 227]
[cljs.build.api$build invoke "api.clj" 210]
[cljs.cli$default_compile invokeStatic "cli.clj" 528]
[cljs.cli$default_compile invoke "cli.clj" 486]
[cljs.cli$compile_opt invokeStatic "cli.clj" 540]
[cljs.cli$compile_opt invoke "cli.clj" 538]
[cljs.cli$main invokeStatic "cli.clj" 701]
[cljs.cli$main doInvoke "cli.clj" 690]
[clojure.lang.RestFn applyTo "RestFn.java" 139]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.core$apply invoke "core.clj" 660]
[cljs.main$_main invokeStatic "main.clj" 65]
[cljs.main$_main doInvoke "main.clj" 56]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.core$apply invokeStatic "core.clj" 665]
[clojure.main$main_opt invokeStatic "main.clj" 514]
[clojure.main$main_opt invoke "main.clj" 510]
[clojure.main$main invokeStatic "main.clj" 664]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]],
:cause "/_SLASH_impl_SLASH_class/js.cljs is not a relative path",
:phase :compilation}}
{
"name": "home",
"scripts": {
"start": "clj -m cljs.main -co build.edn -ro repl.edn -v -w src -c -r",
"start:win": "powershell -command \"clj -m cljs.main -co build.edn -ro repl.edn -v -w src -c -r\""
},
"dependencies": {
"parcel": "^2.0.0-alpha.3.2",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
}
{:launch-browser false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment