This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-25
Channels
- # aleph (6)
- # beginners (6)
- # boot (94)
- # cider (34)
- # cljs-dev (36)
- # cljsrn (12)
- # clojure (124)
- # clojure-dev (41)
- # clojure-dusseldorf (6)
- # clojure-italy (3)
- # clojure-norway (1)
- # clojure-russia (161)
- # clojure-sg (7)
- # clojure-spec (71)
- # clojure-uk (95)
- # clojurescript (38)
- # core-async (16)
- # cursive (14)
- # data-science (1)
- # datascript (12)
- # datomic (15)
- # emacs (22)
- # funcool (2)
- # hoplon (15)
- # jobs-rus (2)
- # juxt (9)
- # liberator (7)
- # lumo (1)
- # off-topic (136)
- # onyx (24)
- # pedestal (39)
- # perun (2)
- # planck (20)
- # re-frame (23)
- # spacemacs (31)
- # unrepl (5)
- # untangled (1)
- # vim (1)
- # yada (29)
Any Clojurian from Singapore, please do join #clojure-sg channel:grinning:
anyone familiar with vim-fireplace, I have nrepl running with lein repl
, I can execute commands from within vim w/ cpr
. When I go to that repl and use piggieback I try to require namespaces in my project but I can't
I'm using cljs.repl.node as my repl-env
maybe I'm missing something on requiring clojurescript namespaces in a repl
@alexwheeler are you using :Require
(`(require 'myns :reload)`) or :Eval (require 'myns)
?
I'm using the first in that example. So with vim-fireplace, cpr
will call (load-file whatever-current-file-is)
. If I manually type (load-file whatever-current-file-is)
into my repl then I can succesfully require the namespace
it seems that maybe vim-fireplace isn't connecting to piggieback correctly when I start it, because when I try to connect to it from vim with :Connect
I get an error
@alexwheeler how are you starting the cljs repl?
(cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))
from within lein repl
so it seems that vim-fireplace isn't communicating correctly with my cljs repl. I can use the repl fine without vim
you guys have solved my problem!
that totally makes sense thank you so much. I was trying to :Connect to the port piggieback was running but seeing an error
yeah, the readme doesn't quite tell the whole story, :help fireplace
is a bit clearer on that point
@alexwheeler there's a vim-fireplace channel btw, for all things vim/closure
ah okay great to know, thanks for the help
I have a large EDN value that I would like to define to a var, but it's so large that it's making my editor slow down if I include it inline. can I save it to a file and load it to a var via a macro?
I feel like I knew how to do this a long time ago but none of the most obvious attempts I tried worked
(defmacro defvar [var-name edn-file] `(def ~var-name ~(clojure.edn/read-string (slurp edn-file))))
@mikepence https://github.com/bensu/doo is nice for cljs.test. Haven't used it myself, but https://github.com/xeqi/kerodon seems cool for interaction-style tests.
@mikepence I like devcards https://8thlight.com/blog/eric-smith/2016/10/05/a-testable-clojurescript-setup.html
@mikepence try lein doo with karma-cljs.