Fork me on GitHub
#cider
<
2016-12-28
>
benedek06:12:29

@richiardiandrea yup you are getting it now ;) CLI usually has the higher precedence I guess... does not mean validation is a bad idea...

bhauman15:12:28

so this has probably been asked and answered a bunch of times: how do I get an eval on a cljc file to dispatch to the cljs repl?

dpsutton15:12:18

i just recently fixed this issue

dpsutton15:12:24

or at least the load-buffer issue

dpsutton15:12:41

but an easy hack if you ever run into an issue is to change your mode to clojurescript-mode

dpsutton15:12:02

but CIDER has deeply ingrained assumptions that there is a single connection for each buffer

dpsutton15:12:18

so it feels free to reach out to the "current connection" in lots of places

dpsutton15:12:25

but I'm working on fixing that soon

dpsutton15:12:45

but if you are in a cljc file and you M-x load-buffer it should send to both repls just fine

dpsutton15:12:55

assuming you are running CIDER from melpa and not melpa stable

dpsutton15:12:50

this commit is an explanation of the fix

dpsutton15:12:39

and the issue that was raised about it here

dpsutton15:12:36

@bhauman if eval is not dispatching to both repls, can you lodge an issue and I'll tackle it soon?

bhauman15:12:37

sweet, changing to clojurescript mode

bhauman15:12:45

did the trick

dpsutton15:12:07

but it should load in both buffers

dpsutton15:12:20

I'd like to get cljs support better in CIDER. But I don't use it enough

bhauman15:12:30

I'm was trying to fix ctrl-x e

dpsutton15:12:31

cljs experience is greatly needed in CIDER right now

bhauman15:12:55

ctrl-c l isn't working as you are suggesting

dpsutton16:12:01

if you trace what ctrl-x e does, you eventually find a call to cider-map-connections and is passed a function that takes a connection

bhauman16:12:04

"ctrl-c l"

dpsutton16:12:36

and that function feels free to reach out for any connection (technically session id) rather than the session id for the connection you gave it

bhauman16:12:39

I'm glad you are working on this

dpsutton16:12:40

so load buffer didn't work?

dpsutton16:12:47

ie, send to both repls?

bhauman16:12:51

I'm in an older version of cider

dpsutton16:12:00

my fix is in 15-snapshot

dpsutton16:12:10

but clojurescript mode is a fix if you don't feel like updating

bhauman16:12:30

I'm going to update, I just do it slowly

dpsutton16:12:48

nothing worse than a broken package written in a dynamically scoped lisp

bhauman16:12:08

but this meets my needs for now

bhauman16:12:23

don't know why I didn't try the clojurescript mode thing