This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-05
Channels
- # beginners (29)
- # boot (29)
- # cider (54)
- # cljs-dev (99)
- # cljsjs (31)
- # cljsrn (39)
- # clojars (32)
- # clojure (171)
- # clojure-austin (2)
- # clojure-berlin (5)
- # clojure-brasil (3)
- # clojure-greece (2)
- # clojure-italy (1)
- # clojure-korea (11)
- # clojure-spec (202)
- # clojure-uk (166)
- # clojurescript (130)
- # cursive (54)
- # datomic (99)
- # dirac (18)
- # figwheel (6)
- # hoplon (23)
- # lambdaisland (3)
- # leiningen (8)
- # luminus (14)
- # off-topic (11)
- # om (3)
- # om-next (24)
- # onyx (59)
- # planck (25)
- # protorepl (10)
- # re-frame (49)
- # reagent (14)
- # ring-swagger (2)
- # rum (46)
- # schema (1)
- # slack-help (6)
- # specter (7)
- # testing (7)
- # untangled (115)
- # yada (1)
@seancorfield mm, not sure what I’m doing wrong, I’m connected using cider-connect
but I can’t debug my code because it’s not loaded in the repl,
that’s alright I loaded the env myself
What do you mean by “loaded the env”? You’ll still have to require
things into the user
namespace that your REPL will start in.
But the application state — what I assumed you meant by “env” — is already in memory.
bah, why do I always have to spend a bunch of cycles puttering with my tools before I can settle down to work 😐
so what I’m trying to do right now is get, essentially, a cider-jack-in
session working with a Node CLJS env
so something like (cljs.repl/repl (cljs.repl.node/repl-env))
- which command works in that I get a REPL inside my jacked-in Clojure REPL, but the input is in the minibuffer like Stdin:
and has no multi-line capability and so on
and of course there seems to be just no way whatever to get Boot’s cljs-repl-env
to do anything but launch a Websocket server and wait for me to load a served up index.html
, which I don’t actually want to do for this project
anyone had any good, bad, or indifferent experiences running a Node-backed CLJS REPL in CIDER?
that was it! Specifically, running (cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))
instead of (cljs.repl/repl (cljs.repl.node/repl-env))
ha what’s really funny is that he posted that critical piece of info before he came back in asking about the problem I thought he had. Well, either way I’m very happy to be educated
@seancorfield ok I think I was missing the require
part I thought by "loading the env” the doc meant everything was require
d, I still can’t debug though, my assumption of how it works, is that I can instrument a function and then load a page and when that page calls the function, it would stop in Emacs and let me go step by step. Is this it?
Never used step debugging myself, never needed it.
cool, thanks for your help, I’ll keep playing around
I've recently fallen in love with (for elisp) C-h f .... function name ... click on source. Wth cider + projectile, can I get something similar? where I hit a hot key, helm starts completing function names for me, and then shows me doc string + jumps me to the source (it doesnt' have to devl into libraries, even if it only prolvides functions in my project -- as defined by projectile -- I'd be happy).
M-.
jumps to the definition (source) of a var doesn't?
@seancorfield : what's the function name? for me, it's evil-repeat-pop-next, whatever that's supposed to do
Evil mode? Vim? Never used that.
@seancorfield: I'm using evil mode in emacs, which overwrote the cider key bindings.
@seancorfield : I have the cider function installed; but I don't know the name of it. What do you Get when you press C-h k M-. ?
you can restart emacs without loading Evil and then check
there's an emacs option for disabling init.el, but disabling every part that uses evil is going to be quite messy
can’t you just comment the require
?
@clodeindustrie : have you ever used evil / setup config files / init.els that depend heavily on evil ?
I use https://github.com/jwiegley/use-package I’ve got almost everything related to evil in one file
I have heard of use-package, but never used it, and at the moment, my entire config is one init.el file that I have not split at all
fair enough
it’s cider-find-var
what you are looking for
at least it appears so 😄
I don’t have that function in my current environment
oh that’s an emacs 25 thing
is anybody here using some function for def
-ing let bindings (like protorepl) ?
for example, at the repl I would like to def
the let
bindings, like (let [a "string" ...] ...)
would become (def a "string")
for debugging purposes and to inspect data