Fork me on GitHub
#cider
<
2017-07-07
>
sooheon04:07:47

How do I set cider to prefer build.boot over project.clj when both exist? I need to be lein compatible for someone else using cursive, but I want things like cljr-add-project-dependency to work with the boot file.

dpsutton05:07:24

cider-preferred-build-tool

dpsutton05:07:52

> "Allow choosing a build system when there are many. > When there are artifacts from multiple build systems (\"lein\", \"boot\", > \"gradle\") the user is prompted to select one of them. When non-nil, this> > variable will suppress this behavior and will select whatever build system > is indicated by the variable if present. Note, this is only when CIDER > cannot decide which of many build systems to use and will never override a > command when there is no ambiguity."

dpsutton05:07:01

and the code in cider-project-type:

(cond ((and multiple-project-choices
                (member cider-preferred-build-tool choices))
           cider-preferred-build-tool)

sooheon05:07:20

Thanks very much

richiardiandrea05:07:34

Is there a way to produce html documentation from elisp's docstrings?

bozhidar06:07:12

Don’t think so.

sooheon08:07:16

@dpsutton cider-preferred-build-tool only seems to affect jack-in, adding a dependency with cljr-add-project-dependency still results in the dependency vector appearing in project.clj regardless.

bozhidar08:07:28

@sooheon Yep. Fixing this should be trivial, though. Just send a patch to cljr to honour the value of the defcustom. //cc @benedek

benedek08:07:03

@sooheon can you pls file a github issue in cljr?

dominicm14:07:35

https://github.com/clojure-emacs/cider-nrepl/issues/345 @arrdem any idea on the root cause of this? I'll tackle it if you can point me at either the bad inputs or what is different in jaunt that might cause it.

tcoupland16:07:03

been having all sorts of trouble using the debugger, think i've boiled it down to this:

(ns other)
(ns scratch)
(alias 'o 'other)

#dbg
(defn debugs
  [r]
  (inc (:n r)))

#dbg
(defn debugs-2
  [r]
  (inc (:other/n r)))

#dbg
(defn no-debug
  [r]
  (inc (::o/n r)))

(debugs {:n 1})
(debugs-2 {::o/n 1})
(no-debug {::o/n 1})
Had in confirmed by a colleague as well, so not just me! 🙂

tcoupland16:07:30

thought i'd check here before raising a issue