This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-13
Channels
- # aleph (5)
- # beginners (92)
- # cider (37)
- # cljs-dev (38)
- # cljsjs (2)
- # cljsrn (3)
- # clojure (50)
- # clojure-berlin (1)
- # clojure-canada (3)
- # clojure-dusseldorf (4)
- # clojure-france (1)
- # clojure-germany (1)
- # clojure-italy (7)
- # clojure-nl (21)
- # clojure-spec (2)
- # clojure-uk (106)
- # clojurescript (165)
- # code-reviews (1)
- # community-development (3)
- # cursive (5)
- # datomic (13)
- # editors (12)
- # emacs (3)
- # figwheel-main (141)
- # fulcro (28)
- # graphql (1)
- # immutant (1)
- # jobs (1)
- # jobs-discuss (5)
- # midje (8)
- # nrepl (3)
- # off-topic (28)
- # onyx (4)
- # re-frame (21)
- # reagent (70)
- # ring (2)
- # ring-swagger (9)
- # shadow-cljs (18)
- # spacemacs (6)
- # specter (23)
- # tools-deps (21)
@bhauman I’m not sure how figwheel-main detects what is or isn’t on the classpath but it doesn’t really seem to work
ah so I know what my issue actually is - @bhauman I don’t necessarily want src
on the classpath
Would it help in your case if figwheel compiled files lazily instead of eagerly processing all the cljs files on the classpath?
but I normally only add "src" if your :main is in the "src" directory it would be helpful to know your specific case and which warning is getting printed
Anyone running into this exception when trying to startup figwheel?
conductor.core> (require 'figwheel.main)
CompilerException java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V, compiling:(figwheel/main.cljc:1:1)
In the event someone else runs into this, it’s caused by a transitive dependency in the autoclave library on an older version of guava. Adding
:exclude [com.google.guava/guava]
to the dependency resolved this issue.@dnolen gotcha, will make an option, but its good to know that there is also a bug in my code because it should have added "src/cljs"
so you are adding a :main
that is in cljs/src
but you don't want it on your classpath
I would argue for not making a switch - but only fixing it if you can determine it was a actually mistake
meanwhile I'm spending the day figuring out how to get a multi-domain HTTPs support running in an a letsencrypt world
@bhauman hrm, ignore what I’ve said for now - I can’t make it minimal - will hunt it down and put something together later
@bhauman hrm I’m seeing some bizarre behavior - when I run figwheel it generates a target directory?
if you don't have an output directory on the classpath figwheel can't server your assets
@dnolen there is a :target-dir option https://github.com/bhauman/figwheel-main/blob/master/doc/figwheel-main-options.md
thanks, working on some slides now - let me know if it’s too much fiddling, I can split the directory structure if so
I did this way mostly so I could share the resources directory when serving (i.e. index.html / CSS) which aren’t changing
Is it possible to provide a default and override it if someone provides a :target-dir? I'm liking figwheel.main's out-of-the-box experience and defaults.
@john not sure I understand, I'm keeping the behavior and making a switch turn the helpfulness off
and @dnolen hmm it was using the :output-to
to derive the target directory, changing it to :output-dir
also the code that was creating the source directory was naive in that it was creating the directory for the first source file with the :main
ns it found. It should have checked the classpath first.