Fork me on GitHub
#cider
<
2020-08-11
>
kah0ona07:08:35

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

kah0ona07:08:45

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

kah0ona07:08:56

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

kah0ona07:08:12

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

dpsutton07:08:49

can you paste your dirlocals file here?

kah0ona07:08:25

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

kah0ona07:08:12

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

kah0ona07:08:17

(not sure if that matters)

kah0ona07:08:30

(imo it shoudln’t ;-))

dpsutton07:08:11

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

kah0ona07:08:26

so:

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

dpsutton07:08:41

yeah restart and give that a whirl

Casey09:08:35

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

bozhidar10:08:44

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

Casey10:08:40

gotcha, I'll take a look

zackteo10:08:40

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"
 ""
 ""

zackteo10:08:34

this is in the cider-repl window

bozhidar10:08:52

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

zackteo10:08:37

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

zackteo10:08:00

Thank you!!!

MatD16:08:25

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

MatD01:08:24

Nevermind, I figured it out

stardiviner23:08:03

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?

jumar03:08:37

This depends on your setup, java version, etc. I haven't been able to do that either, at least since I'm using JDK version > 8. Advice usually goes like adding java sources to your project explicitly. Here's one issue mentioning this problem: https://github.com/clojure-emacs/cider/issues/2269

stardiviner09:08:03

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

jumar10:08:34

Perfect; btw. which JDK version you use?

stardiviner10:08:53

14.0.1 version

stardiviner10:08:08

I'm using Arch Linux.

stardiviner10:08:36

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

jumar10:08:17

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

stardiviner10:08:51

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