This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-06
Channels
- # beginners (147)
- # boot (12)
- # chestnut (12)
- # cider (22)
- # clara (10)
- # cljs-dev (6)
- # cljs-experience (3)
- # cljsrn (12)
- # clojure (58)
- # clojure-austin (3)
- # clojure-dusseldorf (25)
- # clojure-finland (20)
- # clojure-gamedev (1)
- # clojure-greece (3)
- # clojure-italy (32)
- # clojure-new-zealand (5)
- # clojure-russia (12)
- # clojure-serbia (1)
- # clojure-spec (4)
- # clojure-uk (51)
- # clojurescript (75)
- # cursive (8)
- # datomic (81)
- # fulcro (29)
- # graphql (16)
- # heroku (6)
- # incanter (1)
- # keechma (1)
- # lumo (44)
- # off-topic (21)
- # onyx (22)
- # parinfer (5)
- # portkey (40)
- # re-frame (43)
- # reagent (5)
- # spacemacs (37)
- # specter (8)
- # unrepl (3)
has anyone succeeded running cljs repl while connected to a clojure.repl in Emacs?
(require 'cljs.repl)
(require 'cljs.repl.node)
(def repl-env (cljs.repl.node/repl-env))
(cljs.repl/repl repl-env)
This doesn't really workit kinda works (I think), but not really once it's connected to cljs repl - it prompts for input in minibuffer, not in the cider-repl
@dominicm oh, yeah, I forgot about that. Now I need to find a way to wrap piggieback around cljs.repl/repl
if it helps you at all, I have a cljs project set up with the following in the project.clj:
:plugins [[lein-cljsbuild "1.1.4"]
[lein-figwheel "0.5.8"]]
:profiles {:dev {:dependencies [[com.cemerick/piggieback "0.2.1"]
[figwheel-sidecar "0.5.8"]]}}
and then also a .dir-locals.el
in the same directory with ((nil . ((cider-cljs-lein-repl . "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))"))))
you're not using cider, if I read this correctly? But what I'm calling with cider-cljs-lein-repl
should be runnable from any clojure repl if the right libraries are loaded to start a cljs repl
(if this isn't actually useful, then just ignore me 🙂 )
@U236LQYB0 cljs.repl and figwheel repl aren't the same thing
yep, didn't read that close enough. so ignore me
okay, made it:
(require 'cljs.repl)
(require 'cljs.repl.node)
(require 'cemerick.piggieback)
(def repl-env (cljs.repl.node/repl-env))
(cemerick.piggieback/cljs-repl repl-env)
@fabrao If you use Spacemacs then C-c C-f a p - add project dependency and load it to current repl without restart (hotreload)
@fabrao alembic works too.
also you may try https://github.com/arichiardi/vinyasa
My pretty-printing in the REPL has stopped working, it seems. cider-repl-use-pretty-printing
is t
and cider-pprint-fn
is fipp
but my REPL looks like this http://i.imgur.com/8ahdIZg.png Any ideas?