cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
kah0ona 2020-08-11T07:28:35.038100Z

Hi y’all, got a question on .dir-locals Since I’ve never used it before (i know), I wonder how it is expected to work. I want to select ‘figwheel-main’ as the REPL and "dev" as the build ID. I jack in with cider-jack-in-clj&cljs

kah0ona 2020-08-11T07:28:45.038400Z

but then it still prompts me for which repl I want.

kah0ona 2020-08-11T07:28:56.038800Z

I have the .dir-locals.el file in my project root

kah0ona 2020-08-11T07:29:12.039200Z

should I have a .cljs file buffer open before jacking in?

dpsutton 2020-08-11T07:33:49.039400Z

can you paste your dirlocals file here?

kah0ona 2020-08-11T07:36:25.039700Z

((clojurescript-mode . ((cider-default-cljs-repl . figwheel-main)
                        (cider-figwheel-main-default-options . "dev"))))

kah0ona 2020-08-11T07:37:12.040300Z

also: i jack in using above cider-jack-in-clj&cljs using , \, my spacemacs binding

kah0ona 2020-08-11T07:37:17.040500Z

(not sure if that matters)

kah0ona 2020-08-11T07:37:30.040800Z

(imo it shoudln’t ;-))

dpsutton 2020-08-11T07:47:11.041300Z

yeah those are only available when the buffer is in clojurescript mode. i always use nil there instead

kah0ona 2020-08-11T07:48:26.041600Z

so:

((nil . ((cider-default-cljs-repl . figwheel-main)
                        (cider-figwheel-main-default-options . "dev"))))

kah0ona 2020-08-11T07:48:32.041800Z

?

dpsutton 2020-08-11T07:48:41.042Z

yeah restart and give that a whirl

kah0ona 2020-08-11T07:48:45.042200Z

thx

Casey 2020-08-11T09:26:35.043500Z

Can cider help automatically add/modify :require forms to the current namespace when an unresolved var from is typed?

bozhidar 2020-08-11T10:01:02.043600Z

I like using clojure-mode, as it's unlikely I'll do something with CIDER from another type of buffer. Applying the vars to all buffers is not a big deal, but it always felt excessive to me.

bozhidar 2020-08-11T10:01:44.044300Z

@ramblurr I think clj-refactor.el had some functionality that does this. CIDER itself doesn't having anything on the subject.

Casey 2020-08-11T10:06:40.044800Z

gotcha, I'll take a look

zackteo 2020-08-11T10:09:40.046400Z

By any chance does anyone know why my vector of string will be split up to 1 element per line?

volcanoes.core> (first csv-lines)
;; => ["Global Volcanism Program - Volcanoes of the World 4.7.6"
 ""
 ""
 "Basic List of Holocene Volcanoes"
 ""
 "Downloaded on 14 Mar 2019 at 12:00 PM"
 ""
 ""

zackteo 2020-08-11T10:11:34.047Z

this is in the cider-repl window

bozhidar 2020-08-11T10:24:52.048300Z

@zackteo CIDER enables pretty-printing by default. You can turn it off if you'd like.

zackteo 2020-08-11T10:25:37.049400Z

@bozhidar how do I turn it off/toggle it? :o

zackteo 2020-08-11T10:27:00.050400Z

Thank you!!!

dpsutton 2020-08-11T14:56:17.053Z

Can you jack in from dired? I’m not sure I’ve ever tried.

bozhidar 2020-08-11T16:01:45.053200Z

You can jack in from anywhere, but I always go to some file buffer in the project (typically the project file and jack in from there). That's why I never needed to apply those vars globally.

dpsutton 2020-08-11T16:11:39.054Z

Yeah I’m the same. Just thinking out loud.

MatD 2020-08-11T16:46:25.056200Z

Hi. If anyone is using Emacs Doom and have a few minutes to spare, I'm trying to test this demo repo and the sequence seems off using Emacs Doom (the author is not using doom). I'm trying to assert if doom is changing the cider prompts sequence somehow. https://github.com/robert-stuttaford/clj-cljs-app/issues/2

stardiviner 2020-08-11T23:31:03.001300Z

I use cider-doc on clojure.lang.RT. But it does not open with correct java doc URL. Is this an error bug? Do you have same behavior?

stardiviner 2020-08-12T09:06:03.004700Z

I got it, I installed package openjdk-src and openjdk-doc . The Javadoc is available now. Thanks a lot @jumar

jumar 2020-08-12T10:06:34.006500Z

Perfect; btw. which JDK version you use?

stardiviner 2020-08-12T10:06:53.006700Z

14.0.1 version

stardiviner 2020-08-12T10:07:08.006900Z

I'm using Arch Linux.

stardiviner 2020-08-12T10:07:36.007200Z

Installing source and docs package should also works for systems like Ubuntu etc.

jumar 2020-08-12T10:23:17.009900Z

You're lucky 🙂. I have sources installed on my Mac OS in /Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/Home/lib/src.zip but it doesn't work for me

stardiviner 2020-08-12T10:26:51.010200Z

I used to proposed a related feature request, https://github.com/clojure-emacs/cider/issues/2406 You might can inspired from it.