This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-23
Channels
- # beginners (169)
- # boot (8)
- # cider (20)
- # cljdoc (66)
- # cljs-dev (1)
- # cljsrn (1)
- # clojure (185)
- # clojure-greece (11)
- # clojure-italy (16)
- # clojure-nl (5)
- # clojure-spec (16)
- # clojure-uk (39)
- # clojurescript (11)
- # cursive (26)
- # data-science (2)
- # datavis (1)
- # datomic (40)
- # emacs (10)
- # figwheel-main (64)
- # graphql (10)
- # hyperfiddle (1)
- # jobs (2)
- # leiningen (9)
- # luminus (3)
- # nyc (1)
- # off-topic (19)
- # om (1)
- # onyx (6)
- # pedestal (2)
- # re-frame (35)
- # reagent (17)
- # ring-swagger (9)
- # rum (1)
- # shadow-cljs (42)
- # spacemacs (8)
- # specter (7)
- # tools-deps (4)
- # yada (6)
hi, i'm having trouble loading leiningen profiles when running fighweel in cursive using figwheel-sidecar (in particular, i need to load a profile in order to load figwheel-sidecar). any ideas on how i can do it?
there's a library (https://github.com/bhauman/simple-lein-profile-merge) that looks like it can do this, but i don't really want to be manually merging profiles
i'm not sure i can specify dependencies in there though, and it's dependencies that i need from my profiles
to run figwheel i use figwheel-sidecar for example, but i don't need that in my production builds (and have a good reason to exclude it)
i can't work out how to specify which deps figwheel gets if i'm not allowed to use profiles, which seems to be the case with sidecar
not really; i think i only have one issue: how to specify deps for figwheel in a clojure.main process
I have a project with both clj and cljs in it. My clj won't start fast enough because too many deps, so I split clj and cljs deps into profiles.
now i can't run fighweel, because the deps it needs are in a profile which does not get merged.
ok, i see that i thought figwheel could do this, but now i see it is not a figwheel issue
re: running a figwheel-main REPL in CIDER: http://cider.readthedocs.io/en/latest/clojurescript/#using-figwheel-main
one missing step in that description is that you'll get prompted for the build to use, and you need to provide that as a keyword (that is, preceded by :
). for example, if you have a dev
build defined in a dev.cljs.edn, you need to respond :dev
when asked about it
note that while the instructions say you'll need to adapt them if you're not using Leiningen, if you're using cider-jack-in-cljs
there's nothing really to adapt
@euccastro I added that and I think I should tweak it so that it accepts a string...is there an issue open as reminder (pretty please :D)
I'm happy to add an issue, but what repo would that be in? I get a clojure traceback when providing plain dev
as my build, so I imagine this need to be fixed somewhere else than clojure-emacs/cider itself?
It is cider
because we shell out, it is actually a pretty easy fix to this fn https://github.com/clojure-emacs/cider/blob/e47ce978077479542d57fd2f15eb5523cf09826a/cider.el#L703-L708.
and the fix is similar to this one already there for shadow - but the opposite 😉 https://github.com/clojure-emacs/cider/blob/e47ce978077479542d57fd2f15eb5523cf09826a/cider.el#L691
probably would be good to normalize to a string with no :
and then add if/when necessary or something
I tried to not break the (undocumented?) case where a user might want to pass a map of options (which figwheel-main/start
supports, according to some docstring in cider.el), or even an arbitrary s-expr
Awesome work, just checked! Thank you!
Also I would make it point 1) and 2) less visible - at the end of the day they are not necessary - meaning....it should be more evident that there is no need to modify the configuration because cider does auto injection
@richiardiandrea this is fantastic
now the figwheel-main docs will be much simpler when getting folks started with an editor
Also there is a weird artifact in the docs a cut off clojure
which seems out of place
ah the doc was not me 😉 team work !