Fork me on GitHub
#lein-figwheel
<
2016-06-13
>
bhauman13:06:44

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

wilkerlucio13:06:03

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

wilkerlucio13:06:49

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

wilkerlucio13:06:05

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

wilkerlucio13:06:08

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

wilkerlucio13:06:11

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

wilkerlucio13:06:22

then it complains if I use it

wilkerlucio13:06:39

to get around I wrote

wilkerlucio13:06:24

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)

bhauman13:06:14

Upgrade to 0.5.4-2

wilkerlucio13:06:40

@bhauman: upgraded here, still getting the same error

bhauman14:06:48

@wilkerlucio: sorry that is a new one.

bhauman14:06:22

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

wilkerlucio14:06:18

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

wilkerlucio14:06:13

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

bhauman14:06:32

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

wilkerlucio14:06:24

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

wilkerlucio14:06:13

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

bhauman15:06:20

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

bhauman15:06:31

Sorry for the trouble

wilkerlucio15:06:49

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

bhauman17:06:22

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

wilkerlucio18:06:42

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

wilkerlucio18:06:15

and thanks for adding that back, its pretty helpful

wilkerlucio18:06:27

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

bhauman18:06:56

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

grav20:06:03

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

grav20:06:24

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

grav21:06:56

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