Fork me on GitHub
#cider
<
2019-02-10
>
practicalli-johnny16:02:26

@chase-lambert make sure you are using the latest version of Leiningen. If not, update Leiningen to version 2.8.3

practicalli-johnny17:02:51

I suggest always using cider-jack-in rather than cider-connect, as CIDER will manage library versions for you and you do not need to add tool specific libraries to your project or profile settings for all your project that you will have to change each time you update CIDER.

practicalli-johnny17:02:57

If you really need to use cider-connect for all your projects, then put the following code into ~/.lein/profiles.clj and just remember to check if you need to update the version when ever you update CIDER.

{:repl {:plugins [[cider/cider-nrepl "0.20.0"]]}}

Chase17:02:54

a lot of times when people are debugging cider issues they are told to clear out those global profiles.clj right? So I was thinking you put that dependency call in the actual project's project.clj instead

practicalli-johnny22:02:21

You can of course put dependencies in a project.clj file, but this does mean that everyone using that project has extra dependencies to download. Putting the dependency is okay for your personal projects I guess. For production code I avoid adding dependencies to the project that are tool specific. This is yet another reason why I always use cider-jack-in rather than cider-connect, so the right dependencies are just added (using an update-in) when the REPL starts. Having had to regularly update the profiles.clj file because of mis-matched versions in CIDER version 0.10 and earlier was a real pain.

Chase00:02:55

good stuff. I saw your other post about using multiple repls within emacs. makes perfect sense

Chase17:02:18

I do have leiningen 2.8.3. Yeah, I almost always use cider-jack-in for that very reason. Some tutorials though have you starting servers and such from the repl but then I seem to lose access to the repl. So I use lein repl to do the server initiation and such and then have to use cider-connect.

Chase17:02:12

or lein figwheel right. You would do that in the terminal and then use cider-connect in that instance too. or am I going about that the wrong way?

practicalli-johnny22:02:56

I start ClojureScript / figwheel projects from Emacs/Spacemacs using cider-jack-in as well. The latest version of CIDER now use sesman to manage multiple repl sessions. http://www.cider.mx/en/latest/managing_connections/ I often have several project running, each with their own REPL and that works just fine. I use layouts in Emacs to keep REPL buffers with their project file buffers. Since then I havent lots a REPL buffer, yet 🙂

phill23:02:41

Error message "error in process filter: [nREPL] No response handler with id nil found" - what to do?

phill23:02:00

The answer seems to be "don't throw an exception" 😕