Fork me on GitHub
#cider
<
2017-01-05
>
clodeindustrie00:01:31

@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,

clodeindustrie00:01:24

that’s alright I loaded the env myself

seancorfield01:01:34

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.

seancorfield01:01:55

But the application state — what I assumed you meant by “env” — is already in memory.

Chris Bidler02:01:56

bah, why do I always have to spend a bunch of cycles puttering with my tools before I can settle down to work 😐

Chris Bidler02:01:35

so what I’m trying to do right now is get, essentially, a cider-jack-in session working with a Node CLJS env

Chris Bidler02:01:43

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

Chris Bidler02:01:45

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

Chris Bidler02:01:11

anyone had any good, bad, or indifferent experiences running a Node-backed CLJS REPL in CIDER?

dpsutton02:01:45

from earlier today

Chris Bidler02:01:59

that was it! Specifically, running (cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env)) instead of (cljs.repl/repl (cljs.repl.node/repl-env))

dpsutton02:01:31

haha you responded to that person as well 🙂

dpsutton02:01:53

noticed you in the conversation when i was scrolling up

Chris Bidler02:01:57

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

dpsutton02:01:40

happy coding

clodeindustrie03:01:18

@seancorfield ok I think I was missing the require part I thought by "loading the env” the doc meant everything was required, 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?

seancorfield04:01:25

Never used step debugging myself, never needed it.

clodeindustrie04:01:19

cool, thanks for your help, I’ll keep playing around

qqq08:01:00

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).

seancorfield08:01:58

M-. jumps to the definition (source) of a var doesn't?

qqq08:01:50

@seancorfield : what's the function name? for me, it's evil-repeat-pop-next, whatever that's supposed to do

seancorfield08:01:00

Evil mode? Vim? Never used that.

qqq08:01:23

@seancorfield: I'm using evil mode in emacs, which overwrote the cider key bindings.

qqq08:01:44

@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-. ?

qqq08:01:59

I just need to know what function M-. is calling for you to jump to definition

clodeindustrie09:01:40

you can restart emacs without loading Evil and then check

qqq10:01:04

there's an emacs option for disabling init.el, but disabling every part that uses evil is going to be quite messy

qqq10:01:15

is there an implicit hatred here of people who use evil mode with cider?

clodeindustrie10:01:43

can’t you just comment the require?

qqq10:01:34

@clodeindustrie : have you ever used evil / setup config files / init.els that depend heavily on evil ?

clodeindustrie10:01:24

I use https://github.com/jwiegley/use-package I’ve got almost everything related to evil in one file

qqq10:01:10

it appears the real problem is that my init.el is poorly organized

qqq10:01:25

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

qqq10:01:56

It appears M-. is xref-find-definitions ,

qqq10:01:00

but that does not seem very useful

qqq10:01:19

Either that, or I'm mis-using xref-find-definitions too.

clodeindustrie10:01:27

it’s cider-find-var what you are looking for

clodeindustrie10:01:40

at least it appears so 😄

qqq10:01:45

error: Wrong type argument: stringp, nil -- lol, looks like something else is broken

qqq10:01:55

the xref-find-definitions turns up aftedr "turn-off-evil-mode"

clodeindustrie10:01:14

I don’t have that function in my current environment

clodeindustrie11:01:14

oh that’s an emacs 25 thing

dpsutton12:01:07

yeah that's a new and really really nice feature

dpsutton12:01:22

in CIDER you can use C-c C-d d to load up some documentation

dpsutton12:01:38

which would be similar to C-h f from emacs

dpsutton12:01:50

and then there are the grimoire, javadoc, and other ones as well

richiardiandrea17:01:08

is anybody here using some function for def-ing let bindings (like protorepl) ?

benedek17:01:28

not sure i follow...

richiardiandrea17:01:01

for example, at the repl I would like to def the let bindings, like (let [a "string" ...] ...) would become (def a "string")

richiardiandrea17:01:16

for debugging purposes and to inspect data