lein-figwheel

bhauman 2016-06-13T13:01:44.000011Z

@wilkerlucio: darn sorry about that, I should A) put that back and B) use (:all-builds (figwheel-sidecar.config/fetch-config))

wilkerlucio 2016-06-13T13:15:03.000013Z

@bhauman: thanks πŸ™‚, I think would be nice to document that change, if you prefer the new fetch-config I'm ok with using that

wilkerlucio 2016-06-13T13:22:49.000015Z

@bhauman: I still can't get it to work though...

wilkerlucio 2016-06-13T13:23:05.000016Z

I'm finding some strange things, for example, my config is this:

wilkerlucio 2016-06-13T13:24:08.000018Z

but when I run the fetch-config, this is what I get back:

wilkerlucio 2016-06-13T13:25:11.000021Z

notice that it renamed the key :compiler to :build-options

wilkerlucio 2016-06-13T13:25:22.000022Z

then it complains if I use it

wilkerlucio 2016-06-13T13:25:39.000023Z

to get around I wrote

wilkerlucio 2016-06-13T13:26:24.000026Z

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)

wilkerlucio 2016-06-13T13:26:27.000027Z

full stack:

bhauman 2016-06-13T13:55:14.000030Z

Upgrade to 0.5.4-2

bhauman 2016-06-13T13:56:09.000031Z

@wilkerlucio: ^

wilkerlucio 2016-06-13T13:59:40.000032Z

@bhauman: upgraded here, still getting the same error

bhauman 2016-06-13T14:00:48.000033Z

@wilkerlucio: sorry that is a new one.

bhauman 2016-06-13T14:03:22.000034Z

Need more details. Your are running lien figwheel? Can you show me your project.clj?

bhauman 2016-06-13T14:03:36.000035Z

@wilkerlucio: ^

wilkerlucio 2016-06-13T14:04:18.000036Z

I'm running though Cursive, using a clojure.main process

wilkerlucio 2016-06-13T14:05:13.000037Z

you can see the project.clj here (still outdated regarding the figwheel dependency): https://github.com/daveconservatoire/dcex-cljs/blob/master/project.clj

wilkerlucio 2016-06-13T14:05:22.000039Z

@bhauman: ^

wilkerlucio 2016-06-13T14:05:40.000040Z

and I start Figwheel using this script: https://github.com/daveconservatoire/dcex-cljs/blob/master/script/figwheel.clj

bhauman 2016-06-13T14:16:32.000042Z

oh I told you wrong (-> (figwheel-sidecar.config/fetch-config) :data :all-builds)

bhauman 2016-06-13T14:16:51.000043Z

@wilkerlucio: ^

wilkerlucio 2016-06-13T14:17:24.000044Z

@bhauman: I noticed and fixed for that, but still having that issue about the stack that I pasted here

wilkerlucio 2016-06-13T14:18:13.000045Z

I also added a rename-keys to convert :build-options into :compiler because it was changing interanlly

bhauman 2016-06-13T15:20:20.000046Z

@wilkerlucio: I'm on this and I'll get back to you when I find out something

bhauman 2016-06-13T15:20:31.000047Z

Sorry for the trouble

wilkerlucio 2016-06-13T15:26:49.000048Z

no worries, thanks for the taking the time with it, please let me know if I can do anything to help you

bhauman 2016-06-13T17:11:22.000049Z

@wilkerlucio: from your stack-trace it looks like the error is happening inside rename-keys

bhauman 2016-06-13T18:07:43.000050Z

@wilkerlucio: I added get-project-builds back with this commit https://github.com/bhauman/lein-figwheel/commit/115a2225399c009627fc9aeba892f62649349848

wilkerlucio 2016-06-13T18:28:42.000051Z

@bhauman: you are right, I fixed the rename keys and it works now πŸ™‚

wilkerlucio 2016-06-13T18:29:15.000053Z

and thanks for adding that back, its pretty helpful

wilkerlucio 2016-06-13T18:29:27.000054Z

and one more thanks for the new error messages, they are awesome!!

bhauman 2016-06-13T18:29:56.000055Z

I'm planning on making better ones ... πŸ™‚

πŸ‘ 1
grav 2016-06-13T20:57:03.000058Z

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

grav 2016-06-13T20:57:24.000059Z

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 up

grav 2016-06-13T21:01:56.000060Z

Ok, the snippit from @wilkerlucio fixed my issue as well