Fork me on GitHub
#cider
<
2015-07-09
>
pyr13:07:07

hi there !

pyr13:07:24

I wonder if anyone is using cider-nrepl with emacs using Cask to pull packages

pyr13:07:23

for some reason, Cask pulls the emacs 0.10.0-snapshot version and I'd like to stick to 0.9.1 to avoid potential asymetry

pyr13:07:03

I'm doing

(source melpa)
(depends-on "cider")
in my cask file

bozhidar14:07:46

@tsdh: did you remove a message or something? I got a notification from you but I can’t see the message

bozhidar14:07:20

@pyr: guess source should be melpa-stable

tsdh14:07:45

@bozhidar yes, I found the answer just after asking, so I deleted the message.

jrychter16:07:35

@bozhidar: did I hear you say "ClojureScript debugger"? As in, really?

bozhidar16:07:28

@malabarba is working on this, but unfortunately neither him nor me are well versed in cljs

bozhidar16:07:57

we’ll likely start a ticket about this and solicit help from more knowledgeable cljs hackers

gtrak16:07:17

i talked with him about it yesterday in #C03S1L9DN , sounds non-trivial

bozhidar16:07:13

I’m certain it’s not, but I also think that it’s doable

bozhidar16:07:50

playing more with cljs has been on my todo list for a while now

bozhidar16:07:06

but the combination of little time + little docs is kind of nasty

malabarba16:07:26

Yes. I want to play around with cljs for a few days

malabarba16:07:39

So I can get my basics right

jrychter16:07:01

Ok, the reason I'm both puzzled and amazed is because I never even got a ClojureScript REPL working. Not once. No amount of trying piggieback/weasel or figwheel etc got me a working REPL.

malabarba16:07:11

And have a good idea of what the obstacles are

jrychter16:07:20

The ClojureScript REPL is like a unicorn to me, and a ClojureScript debugger within Cider is, well, beyond magic

malabarba16:07:21

And then ask meaningful questions

gtrak16:07:33

it works well, but it's very sensitive to version dependencies and conflicts

gtrak16:07:40

last time i checked

jrychter16:07:51

Well, I wrote an app in ClojureScript and use it everyday, but I am most definitely not an expert.

bozhidar16:07:57

@gtrak: supposedly this is no longer the case with piggieback 0.2

gtrak16:07:17

it no longer works well, or it's no longer brittle? simple_smile

bozhidar16:07:35

I’ve started a cljs repl a few times in cider, so I know this works, but beyond this I’ve yet to do something meaningful with cljs

malabarba16:07:37

Yes. I got a cljs repl working on the first try at work, but when I tried it at home it took a lot of exception Googling

jrychter16:07:43

I just imagined working on my project (clj+cljs) with Cider automatically knowing that if I C-x C-e a form in a .cljs file it should go to the ClojureScript repl connection and in a Clojure file to the JVM repl connection… Wow. I'm holding my breath.

gtrak16:07:12

I don't know why people care about doing both in a single emacs process.

gtrak16:07:21

the whole point of nrepl is multiple clients.

gtrak16:07:20

anyway it's been productive for me to launch a repl wherever and boot up another emacs specifically for cljs

gtrak16:07:14

connecting to that first repl

jrychter16:07:16

@gtrak: I'm not sure I understand you — I want a single emacs process for two reasons. First, because a single Emacs is divinely ordained, as we all surely know. Second, because my app is conceptually a single app, with one part of it in Clojure and another in ClojureScript, so switching between buffers is natural.

gtrak16:07:12

meh, I use a tiling window manager, i3, so a single emacs frame feels all the more unnatural

gtrak16:07:28

but i do it anyway for most things

gtrak16:07:58

i think elisp isn't designed to make that sort of thing easy to implement

gtrak16:07:38

and you'd want to be able to specify which repl each buffer writes to in the case that there's more than just a cljs and clj repl

meow16:07:39

The boot-cljs-repl works.

bozhidar16:07:35

switching between 2 connections automatically won’t be hard to implement

bozhidar16:07:50

it’s not done mostly because I don’t need it

meow16:07:51

I did some work on it recently to update dependencies and more work is forthcoming but right now it uses the latest of everything - nrepl, piggieback, weasel - and everyone that has had an issue in the past is reporting success

bozhidar16:07:16

but I see no significant technical challenges to accomplish this

gtrak16:07:31

even if it were implemented, i imagine it would be confusing.

gtrak16:07:30

i managed without jack-in at all for years

jrychter16:07:43

Well I'm certainly not going to stop running my Emacs full screen (you heretics!). Anyway, thanks for the great work — I will be waiting for the ClojureScript stuff.

arrdem21:07:47

bozhidar: does cider-nrepl depend on tools analyzer at all?