Fork me on GitHub
#lein-figwheel
<
2016-01-15
>
hugesandwich00:01:05

@bhauman: thanks. I figured you would use leiningen.core. I was just trying to reduce the amount of duplicate config when using Cursive. I'll probably just rework my project files a bit down the line when I get a chance and live with some duplication for now. The reason I was more concerned is I have a lot of different web entry points that share quite a bit of code. I might just rework things into some smaller projects and install some stuff in my local repo, but been trying to avoid that while I still have a lot of architecture churn. Anyway, thanks, I appreciate the sanity check

hugesandwich00:01:05

other things is I just used some other repls so part of it is probably laziness with my cljsbuild since I switched to using figwheel more

David08:01:43

Hi, I’m having some weird issues with 0.5* figwheel; anyone else?

Could not locate cljs/analyzer__init.class or cljs/analyzer.clj on classpath: , compiling:(figwheel_sidecar/utils.clj:1:1)
. I’ve cleaned out my .lein/profiles.clj. I am able to connect within a Clojure REPL, but running lein figwheel fails with the above error. Any ideas?

meow13:01:31

anyone? ^

agile_geek13:01:12

@davidhumphreys: I had this. I was using leiningen and had to upgrade to 2.5.3+

David14:01:30

Thanks, that seems to fix it.

agile_geek14:01:58

W00t! Usually my advice is completely wrong! 😄

jeremys17:01:05

hey guys I’m in a bit of a bind. I have used lein profiles to separate my cljsbuilds. This way not all builds are started executed when I lein uberjar, only the ones in a specific profile that I explicitly merge in the uberjar profile. However it now seems that figwheels can’t see any of my :cljsbuild config. Any idea why ?

darwin17:01:50

@jeremys: I use the same technique and figwheel works as expected, it sees cljsbuild settings from selected profile only

darwin17:01:12

but figwheel config must be defined on root level I believe

darwin17:01:05

if I recall correctly, that is a documented shortcoming that figwheel cannot read its own config from profiles, because it parses project.clj on its own (without implementing the logic for handling profiles)

jeremys17:01:50

ok thanks then I’ll try wrinting a figwheel.edn file that I could merge in the project.clj

darwin17:01:43

hm, I’m looking at my project.clj here[1], and one point worth noting is that I don’t rely on any figwheel settings in cljsbuild map, I init client-side figwheel in my code, see src/figwheel, that is maybe why I have effectively dodged this issue [1] https://github.com/binaryage/dirac/blob/master/project.clj

jeremys17:01:44

I’ll take a look thanks!

darwin17:01:50

ah, no, forget my last post, this uses :figwheel true with profiles and works for me: https://github.com/binaryage/cljs-devtools-sample/blob/master/project.clj

jeremys17:01:01

tell me if I am wrong but it seems that you use figwheel as a lein plugin. Is it possible that the plugin uses a project map that leiningen gives it ? (in wich case everything is merged and project.clj is never read by figwheel itself)

jeremys17:01:50

I must precise I’m trying to use figwheel with figwheel-sidecar only from nrepl

darwin17:01:52

yes, I use figwheel’s lein plugin there, I’m not familiar using it directly without lein

jeremys17:01:41

I’ll try with the plugin and see how it behaves

jeremys17:01:02

well the plugin works fine

jeremys18:01:27

Thanks for the help