Fork me on GitHub
#cider
<
2018-10-03
>
bozhidar06:10:44

@avichalp Seems that the node binary is not on your PATH.

bozhidar06:10:57

> Cannot run program “node”: error=2, No such file or directory

bozhidar06:10:06

That’s the only important thing in this stacktrace.

Avichal07:10:49

Thanks @bozhidar. Figured out the problem. Earlier I was using emacs from shell and now I started using it via the emacs App on OSX. It turns out with the emacs app get different env variables from when you launch emacs from shell (it gets shells env variables) Fixed the PATH and exec-path and it works fine again. cider

bozhidar07:10:05

@norman Did you manage to figure out your problem as well?

Avichal08:10:12

Thanks, I will check it out.

magra11:10:11

When I jack in cljs or create a sibling cljs all goes well, figwheel starts, browser connects. The buffer modeline shows (cljs pending). But as soon as the cljs.user> promt shows the modeline switches to (clj) not (cljs). The repl works but cljs buffers modeline reads (ClojureScript cider[not connected] and trying to eval code responds "No cljs REPLs in current session". How do I tell the REPL it is a cljs repl?

magra11:10:28

I realised, I was still using cemerick/piggieback. Sorry for the noise!

magra11:10:10

And thanks to your work on cider!!

bozhidar12:10:12

@magra No worries! You’re welcome!

bozhidar12:10:40

I guess we really to implement some warning when cemerick/piggieback is detected. That should help in situations like this one.

magra12:10:41

jep, since lein ancient and update packages will miss this one 😉

orestis12:10:54

When doing cider-jack-in in a deps.edn project, is there a way to specify aliases? I need to add some extra dev-only paths and libraries when in CIDER.

dpsutton13:10:25

((nil
  (cider-clojure-cli-global-options . "-A:fig")))
i've been using this in dir-locals @orestis

orestis14:10:31

Works like a charm, thanks. I tried to look for clojure-cli in cider’s source but github search wasn’t helping.

hlolli13:10:37

Related question, when I jack-in to deps.edn project, I feel very quickly that things start to become slow. The emacs process is taking 160mb and 11%cpu for very little things. Would it be more wise to start the project from the shell and just connect, any tricks like making the startup time longer for a performance gain?

hlolli13:10:56

Ok, one big piece missing, I'm starting many subprocesses from clojure, that may be the main cause actually...

bozhidar14:10:51

@hlolli CIDER doesn’t really care how the server was started - it just needs a server to connect to. There should be no difference performance-wise between any of the different tools you can use to spin the server via cider-jack-in.

hlolli14:10:19

@bozhidar true, it's just that I was surprised that emacs started to become slow. But I believe the source is the java process, I try increasing memory and heap size in jvm-opts. So it's off-topic for cider. Cider rocks as always.

bozhidar15:10:46

:man-bowing:

Avichal18:10:39

@bozhidar > I guess we really to implement some warning when cemerick/piggieback is detected. That should help in situations like this one. Good idea. I was also bitten by this earlier.

dpsutton21:10:33

i'm overriding back to tools.nrepl for one project that's older