@wilkerlucio: darn sorry about that, I should A) put that back and B) use (:all-builds (figwheel-sidecar.config/fetch-config))
@bhauman: thanks π, I think would be nice to document that change, if you prefer the new fetch-config
I'm ok with using that
@bhauman: I still can't get it to work though...
I'm finding some strange things, for example, my config is this:
but when I run the fetch-config, this is what I get back:
notice that it renamed the key :compiler
to :build-options
then it complains if I use it
to get around I wrote
but still, that doesn't works, when I run it fails with: Exception in thread "main" java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.IPersistentMap, compiling:(figwheel.clj:12:26)
full stack:
Upgrade to 0.5.4-2
@wilkerlucio: ^
@bhauman: upgraded here, still getting the same error
@wilkerlucio: sorry that is a new one.
Need more details. Your are running lien figwheel? Can you show me your project.clj?
@wilkerlucio: ^
I'm running though Cursive, using a clojure.main process
you can see the project.clj here (still outdated regarding the figwheel dependency): https://github.com/daveconservatoire/dcex-cljs/blob/master/project.clj
@bhauman: ^
and I start Figwheel using this script: https://github.com/daveconservatoire/dcex-cljs/blob/master/script/figwheel.clj
oh I told you wrong (-> (figwheel-sidecar.config/fetch-config) :data :all-builds)
@wilkerlucio: ^
@bhauman: I noticed and fixed for that, but still having that issue about the stack that I pasted here
I also added a rename-keys to convert :build-options
into :compiler
because it was changing interanlly
@wilkerlucio: I'm on this and I'll get back to you when I find out something
Sorry for the trouble
no worries, thanks for the taking the time with it, please let me know if I can do anything to help you
@wilkerlucio: from your stack-trace it looks like the error is happening inside rename-keys
@wilkerlucio: I added get-project-builds
back with this commit https://github.com/bhauman/lein-figwheel/commit/115a2225399c009627fc9aeba892f62649349848
@bhauman: you are right, I fixed the rename keys and it works now π
and thanks for adding that back, its pretty helpful
and one more thanks for the new error messages, they are awesome!!
I'm planning on making better ones ... π
I see from the above discussion that Iβm not the only one having problems with figwheel-sidecar
after upβing to 0.5.4-2
It says
The key :build-options is deprecated and no longer valid. Please use :compiler
:all-builds [{
:build-options { :main sagsbehandler.core
:asset-path "js/compiled/out"
:output-to "resources/public/js/compiled/sagsbehandler.js"
... }
^ key :build-options should be :compiler
}]
when I start upOk, the snippit from @wilkerlucio fixed my issue as well