Fork me on GitHub
#cider
<
2018-05-18
>
wusticality02:05:11

@bozhidar perhaps the best approach is to open an nrepl server inside my game and then cider-connect to it? not sure if there’s feature parity with the repl using that approach

dpsutton02:05:02

If you include the deps that cider injects it should be equivalent

wusticality03:05:35

a higher level question would be - if I use cider-connect can I still do everything as expected - aka, change code and reload it while it’s running, etc

dpsutton03:05:53

Yes. Cider just invokes lein (or whatever) and will speak to that nrepl server. It's deps add and modify some operations in the nrepl communication to add it's features

dpsutton03:05:14

But cider doesn't care if it started the process or just connects to a running one

dpsutton03:05:41

I'm looking for the exact deps you need right now. It should be more clear in the read me or the docs. But I think you can just include cider-nrepl without a version that matches your CIDER client version

dpsutton03:05:58

But you can run code etc with no dependencies

bozhidar05:05:08

Without a version? 🙂

dpsutton05:05:19

I mean without any cider dependencies it can just bare nrepl eval and work with the code

dpsutton05:05:46

I'll do a pr for instructions for cider connect what to include

dpsutton05:05:18

Should be up top. There's a section that talks about cider connect but not the thing to include if you want a full experience

bozhidar05:05:28

Yeah, few things work without the extra middleware, but eval is certainly one of them.

Casey08:05:49

Ah but I see that cider's test features don't support clojurescript.

Casey08:05:41

what's the best/recommended way to run tests in emacs then? have an eshell window open ?

bozhidar10:05:46

Yeah, that’s what I’d do.

bozhidar10:05:16

And I hope we’ll port the test-related functionality to cljs soon, but we aren’t there yet unfortunately.

Casey10:05:30

one negative thing about running tests in an eshell is i dont get colored output 😕

bozhidar10:05:13

There’s also M-x ansi-term

Casey10:05:52

well, doo doesn't output colors anyway afaik

dominicm10:05:53

Xterm also works?

Casey10:05:14

its not about color codes not working in eshell

manuel11:05:12

shell also should support colours

manuel11:05:20

I mean, shell-mode

dominicm14:05:35

What's the story with cider.el, clojure cli and clojurescript? Edge is gaining a set of instructions that I don't want to maintain.

bozhidar15:05:54

@dominicm What do you mean? There’s nothing really special there.

dominicm15:05:34

Sorry, should be in the cljs section ^^

dominicm15:05:39

@bozhidar essentially, is it possible for jack-in to inject piggieback?

dpsutton16:05:35

Ah I just realized why there's a big slow down for @bhauman with his large reader forms. The font lock for locals backs up to include the top level form so it can know the locals. And with his large forms this is incredibly slow since it recurses onto subforms. I don't know why it's new but maybe we could inhibit this widening of scope

arrdem05:05:38

Hummmmmmm being less dumb here would actually be really hard. Is there at least a buffer-local people can use to toggle this behavior off?

arrdem05:05:03

It'd be cool if we could warn on "slow" font locking and suggest turning this off.

bozhidar20:05:11

> @bozhidar essentially, is it possible for jack-in to inject piggieback?

bozhidar20:05:26

@dominicm Yeah, it’s possible of course. I actually planned to tackle this when the whole nREPL transfer thing came along and then I decided that cleaning up nREPL and fixing some problems there is probably more important in the grand scheme of things.

dominicm20:05:48

Sure, I'm not trying to prioritise this on your list. Asking if there's reasons it isn't done, technical blockers.

bozhidar20:05:09

Basically I just plan to augment the deps when doing cider-jack-in-cljs and that should be enough.

bozhidar20:05:25

No technical reasons, it’s fairly simple.

dominicm20:05:36

That's what I was thinking would make sense.

dominicm20:05:10

Does cider-jack-in-cljs always prompt for how to create the sibling repl? In the case of t.d.a/edge there isn't really a standard way to get the running figwheel.

dominicm20:05:31

(Asking for a friend 😉)

bozhidar21:05:03

It prompts unless you set the variable cider-default-cljs-repl. If it’s non-nil CIDER will just use its value for the sibling REPL.

bozhidar21:05:44

Another thing I’m planning to change is creating two repls always - probably many people need just a cljs REPL and the second REPL is kind of redundant for them.

dominicm21:05:43

I might see about setting cider-default-cljs-repl for edge in dir-locals.el then.

dominicm21:05:59

It's interesting to watch my emacs colleagues use things, and be surprised when they don't work 😛

dominicm21:05:12

Mostly because there's more "stuff" in cider than in vim.