Fork me on GitHub
#cider
<
2018-09-09
>
martinklepsch13:09:26

I'm developing project A which depends on B, now I opened a file of B and would like to evaluate it in the REPL session of A to quickly test something. Is there a way to link the project to an existing session somehow?

andrea.crotti14:09:16

If A depends on B should not it not all work in the A repl directly?

dpsutton16:09:04

@martinklepsch i opened a project and jacked-in and then went to another project and ran sesman-link-buffer. you could try different "linkings" to eval that in the current project. presumably it would clobber and update the dependency?

martinklepsch16:09:48

@dpsutton that's probably what I was looking for

martinklepsch16:09:28

@andrea.crotti the two projects are in different directories and so cider thinks there's no connection for the current buffer. or so is my understanding at least

bozhidar19:09:31

Yep, that’s right. See http://www.cider.mx/en/latest/managing_connections/ for more details on how sesman currently works. I definitely want us to add some more permissive evaluation mode down the road to account for such situations. Especially if you have just a single connection.

pvillegas1222:09:56

With a deps.edn project, how do I run a repl from emacs? cider-jack-in fires a repl but does not import the required libraries. Running clj from the project root works (edited) I keep getting Could not locate ... in the classpath