Fork me on GitHub
#cider
<
2018-10-31
>
bozhidar06:10:09

@michal Sorry about the broken URL. We didn’t figure out that removing the files from which the old site was built would nuke it. I assume it would just stay like it used to be. Maybe it’s possible to redirect it somehow. We’ll see about that.

stardiviner07:10:15

When I try to dive into clj-http.cookies/cookie-store, I found it is created by object (BasicCookieStore.). Then I use cider-doc on it. But it's docstring is empty. I open the javadoc link in the popuped buffer. It opened wrong URL in browser. How can I check out doc for those Java class/objects easily in CIDER?

jakob07:10:39

Hi, how can I automatically call a function (start my webapp) when the REPL is connected? 🙂

puzzler09:10:30

I just upgraded to the latest version of Cider, still running Clojure 1.9, and the first time I enter an expression at the REPL, I get several dozen boxed math warnings emanating from fipp. What's going on and how do I stop these messages?

👍 4
bozhidar13:10:48

They are coming from a transitive dependency. There’s nothing I can do about those. They have to fixed upstream.

puzzler08:11:47

That makes sense, but why are the messages only appearing now after the upgrade if fipp itself hasn't changed?

puzzler08:11:22

Is there some variable controlling the warnings that is set to true by default now?

rickmoynihan10:10:09

I see the warning cider-cljs-lein-repl is obsolete (since 0.17); use 'cider-default-cljs-repl' instead in my emacs *Messages* but can’t find any mention of cider-cljs-lein-repl in my config. Does anyone know what to do?

rickmoynihan10:10:47

ahh it’s ok it’s set in a .dir-locals.el

rickmoynihan10:10:58

hmm looks like I probably need to set a custom repl type in cider-cljs-repl-types

alexyakushev11:10:29

@bozhidar You might want to rebuild cider-nrepl, I've pushed a fixed snapshot of Compliment that addresses the JDK10 issue

alexyakushev11:10:52

I also test against JDK11 now, works so far.

darnok13:10:20

I use refactor-clj and namespace clean (cljr-clean-ns) feature. It works great but I always have to add manually the namespaces I've required but not used in the code (like namespace with clojure.spec model or namespace with mount states). Is it possible to mark those namespaces so they won't be removed in the clean up process?

benedek14:10:58

i think there is rather a config option for this @darnok

benedek14:10:01

letme check

benedek14:10:32

i guess this is what you looking for

benedek14:10:39

(defcustom cljr-libspec-whitelist
  '("^cljsns" "^slingshot.test" "^monger.joda-time" "^monger.json")
  "List of regexes to match against libspec names which shouldn't be pruned.

This is useful when `clean-ns' should leave a libspec alone even
if it appears to be unused."
  :group 'cljr
  :type '(repeat string))

benedek14:10:07

you can also list files you don't want to be cleaned

darnok14:10:34

thanks 🙂

Ian Fernandez17:10:26

Guys, How can I set enviroment variables to Cider detect when I jack-in?

Ian Fernandez17:10:42

export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/[FILE_NAME].json"

Ian Fernandez17:10:52

I'm trying to export these credentials

Ian Fernandez17:10:32

I'm new using some spacemacs/cider

plexus17:10:54

There's an Emacs Lisp function called setenv. Not 100% sure if CIDER will pick up on that but it's worth a try.

plexus17:10:22

(setenv "GOOGLE_APPLICATION_CREDENTIALS" "/home/user/Downloads/[FILE_NAME].json")

❤️ 4
Ian Fernandez17:10:35

There's a way on customize group?

plexus17:10:50

you can evaluate that using M-:, or e.g. from the *scratch* buffer with C-x C-e

👍 4
Ian Fernandez17:10:02

I'll put on dotspacemacs/user-config

plexus17:10:09

yep that should work

Ian Fernandez17:10:40

I'll see if it works

Ian Fernandez17:10:30

There's a command to see the variables set?

Ian Fernandez17:10:35

like an env on bash?

plexus17:10:46

I think it should work, if it doesn't then you'll either have to set that env var before starting emacs, or customizing the command that CIDER runs to start Clojure

👍 4
plexus17:10:13

(shell-command-to-string "env") 😄

👍 4
Ian Fernandez17:10:15

I did env on eshell and went 😃

narendraj917:10:53

How can I make cider aware of :source-paths? For me, C-x C-e breaks when I set :source-paths to something like src/clj.

narendraj917:10:08

I get "Namespace not found" message in the echo area.

Ian Fernandez17:10:22

Cider didn't pick =|

plexus17:10:24

@d.ian.b are you using lein or boot or clojure cli?

Ian Fernandez17:10:48

when I use

lein repl
in bash it works

Ian Fernandez17:10:58

but in emacs it doesn't

Ian Fernandez17:10:36

when I start cider

plexus17:10:06

you can try something like this, create a wrapper script (e.g. ~/my-lein)

plexus17:10:10

#!/bin/bash
export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/[FILE_NAME].json"
lein "$@"

plexus17:10:28

then customize cider-lein-command to use your wrapper

plexus17:10:07

(make sure to chmod +x my-lein)

Ian Fernandez17:10:32

it didn't work

Ian Fernandez17:10:42

I don't know how cider is booting on spacemacs,

Ian Fernandez17:10:22

aw, it's clojure-cli

Ian Fernandez17:10:02

changing to lein and I'll see if it works

Ian Fernandez17:10:01

there's a way to jack-in a lein repl session

Ian Fernandez17:10:49

only with this I handled