Fork me on GitHub
#cider
<
2015-09-17
>
malcolmsparks13:09:08

I'm stumped, setting up a new machine for a new employee here, and we're getting 'Symbol's function definition is void: clojure-project-dir'

malcolmsparks13:09:30

Thing is, gitk indicates the function has always been there, but I can't see where it's defined

malcolmsparks13:09:40

oh, maybe clojure-project-dir is in another package

malcolmsparks13:09:19

ah, that's working now, I guess cider assumes clojure-mode is install (isn't there some kind of dependency decl ability in emacs packages?)

malabarba13:09:53

@malcolmsparks: Yes clojure-mode is a dependency of Cider. If you install Cider with the package manager clojure-mode will get pulled along.

malcolmsparks14:09:56

ah, but not if you just do package-install right?

malcolmsparks14:09:13

I mean, I usually use package-install-packages as my interface

malcolmsparks14:09:20

but I think our new starter did package-install

malabarba14:09:43

If you package-install it should resolve deps as well.

malabarba14:09:58

simple_smile so that's not it either

malcolmsparks14:09:30

ok, well I don't know what happened in that case, but thanks anyway

bozhidar15:09:29

generally this happens when you’ve had clojure-mode installed before installing cider

bozhidar15:09:35

and you’re using melpa

bozhidar15:09:54

because the package versions there are meaningless dependencies aren’t properly resolved

bozhidar15:09:02

and it’s best to simply update everything all the time

bozhidar15:09:13

(by deps, I mean dependency versions)

daemianmack20:09:59

is there a way i can store cider-connect args in config? i can pass them easily enough with C-u M-x cider-jack-in but it'd be nicer if i could store those args somewhere ideally project-specific

jcsims20:09:13

daemianmack: you can set the variable cider-known-endpoints

jcsims20:09:41

actually, I don’t think that’s what you’re looking for

jcsims20:09:13

if you’re using jack-in, you can set config in your project.clj (e,g, repl port)

daemianmack20:09:03

jcsims: i considered that approach, but it's a multi-user project and i'm hoping to find something specific to my editor that won't collide with general usage

jcsims20:09:54

daemianmack: are you starting the repl with emacs, or externally?

daemianmack20:09:23

both happen with this project. i prefer straight-up cider-jack-in.

jcsims20:09:59

seems like a combination of :repl-options https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L335 and cider-known-endpoints would get you there

zentrope21:09:54

On Cider 9.1, using cider-connect to "lein repl" running in a terminal, I get a strange thing happening. If I C-c C-c inside a function and there's an error, the error is printed, and then the entire source file is also dumped to the repl.

zentrope21:09:25

Usually I use cider-jack-in, so I've never seen that before. Does that sound familiar?