Fork me on GitHub
#cider
<
2018-08-27
>
tatut06:08:23

I often want to evaluate some external code in the context of my project’s REPL… but I’m getting “No linked CIDER sessions” in 0.18, how do I link some random directory to an existing session?

bozhidar08:08:43

@tatut See the “Sesman” menu.

bozhidar08:08:51

There’s also a ticket about making the context check less strict in the presence of a single connection. We’re still wondering what’s the best approach there.

tatut08:08:50

thanks, I’ll check it out

bozhidar08:08:14

It’s safe to say at this point we didn’t consider this use-case when working on the new session management.

tatut08:08:41

fair enough, and it really isn’t something I do daily

tatut08:08:04

but when debugging libraries it is useful to work on them in the context of a real project

dominicm08:08:05

I usually jump to their source, and evaluate in the buffer

bozhidar08:08:18

The problem is this doesn’t work now without some extra effort as well, as connections refuse evaluations that didn’t originate from their project/dir/file context.

bozhidar08:08:46

This really simplified dealing with multiple connections, but added this unforeseen complication.

dominicm10:08:04

I need to figure out how this is handled by fireplace. It might be something like adding buffer local variables.

martinklepsch09:08:46

Traveling right now but I think I found a minor bug: When there's a space before (ns some.ns ,,,) cider doesn't correctly set the namespace when evaluating forms in the same namespace.

bozhidar13:08:02

@martinklepsch Likely a bug with the regexp that looks for an ns form.

fedreg20:08:19

HI all, I’m having some issues with my cljs repl and was hoping someone might help… I mostly do clj and cider works flawlessly.. but on the rare occasion that I need to do some clojurescript the repl seems to quit all the time. I use a figwheel template, jack-in clojurescript, select figwheel as my REPL type, and after the repl evaluates something once, it just stops working…. no error messages, just the second time I try to eval something I get the …`cider eval needs a Clojurescript REPL` message. I’m on cider 17 and all looks fine as per the figwheel docs in my project.clj. Can someone point me in the right direction? thanks!!

bozhidar22:08:37

More info about your problem is needed before we can help you. Have you seen http://www.cider.mx/en/latest/troubleshooting/

fedreg00:08:24

will try and then post more info if I can’t get it. thx!