Fork me on GitHub
#cider
<
2020-03-09
>
jmckitrick01:03:40

Is there an emacs mode connected with CIDER or REPL mode that shows a ‘¢’ in the mode line?

bozhidar06:03:00

There’s nothing that I know of.

slipset08:03:39

FWIW, just upgraded all emacs packages including CIDER, and I’m seeing this:

java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
	at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31) ~[netty-all-4.0.56.Final.jar:4.0.56.Final]
	at io.netty.util.internal.PlatformDependent0$4.run(PlatformDependent0.java:220) ~[netty-all-4.0.56.Final.jar:4.0.56.Final]
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) ~[na:na]
	at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:214) ~[netty-all-4.0.56.Final.jar:4.0.56.Final]
	at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:203) ~[netty-all-4.0.56.Final.jar:4.0.56.Final]
	at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:74) ~[netty-all-4.0.56.Final.jar:4.0.56.Final]
	at io.netty.buffer.UnpooledByteBufAllocator.<clinit>(UnpooledByteBufAllocator.java:37) ~[netty-all-4.0.56.Final.jar:4.0.56.Final]
	at io.netty.buffer.ByteBufUtil.<clinit>(ByteBufUtil.java:70) ~[netty-all-4.0.56.Final.jar:4.0.56.Final]
	at io.netty.buffer.ByteBufAllocator.<clinit>(ByteBufAllocator.java:24) ~[netty-all-4.0.56.Final.jar:4.0.56.Final]
	at java.base/java.lang.Class.forName0(Native Method) ~[na:na]
	at java.base/java.lang.Class.forName(Class.java:416) ~[na:na]
	at clojure.lang.RT.classForName(RT.java:2211) ~[clojure-1.10.1.jar:na]
	at clojure.lang.RT.classForName(RT.java:2220) ~[clojure-1.10.1.jar:na]
	at refactor_nrepl.inlined_deps.toolsanalyzerjvm.v0v7v3.clojure.tools.analyzer.jvm.utils$maybe_class_from_string.invokeStatic(utils.clj:85) ~[na:na]
	At refactor_nrepl.inlined_deps.toolsanalyzerjvm.v0v7v3.clojure.tools.analyzer.jvm.utils$maybe_class_from_string.invoke(utils.clj:78) ~[na:na]

slipset09:03:10

CIDER 0.25.0snapshot (package: <tel:202003081030|20200308.1030>), nREPL 0.7.0-beta1 Clojure 1.10.1, Java 13.0.1

bozhidar09:03:06

Seems like some issue with refactor-nrepl and Java 13. All is working fine without refactor-nrepl, right?

bozhidar09:03:44

Looking at the trace I’m guessing we’ll need to update the bundled tools.analyzer.

slipset09:03:54

That’s what I figured as well. You want me to file an issue against refactor-nrepl? (Or add this to some existing issue?)

slipset09:03:33

I know that expez is now on jdk 13, so maybe he’ll finally be motivated to fix some of this stuff…

bozhidar10:03:25

@slipset Yeah, please file a ticket and we’ll look more into this.

practicalli-johnny13:03:43

What CIDER function are people using to browse clojure spec definitions? I am asking as there are no Spacemacs keybindings for this as yet. The documentation shows cider-browse-spec if you know which spec you want and cider-browse-spec-all to browse all the specs in the project and filter the list of specs with a regex. Does this cover everyones use-cases? https://docs.cider.mx/cider/usage/misc_features.html#_browsing_the_clojure_spec_registry I am looking through https://github.com/clojure-emacs/cider/blob/master/cider-browse-spec.el and it seems the there are several interactive functions, just wondering if calling any of these functions directly are useful, as well as the above two functions: • cider-browse-spec--print-curr-spec-example - shows an example of the current spec, looks interesting • cider-browse-spec--example-revert-buffer-function although this just seems to call the above function • cider-browse-spec-regex - assuming this is just called via cider-browse-spec-all I haven't used Clojure spec that much yet, but will be doing soon, so just wondering what everyone else uses. Thank you.

dima15:03:19

Hello! Is there a way to pass cljfmt :indents option to cider nrepl?

bozhidar15:03:15

Not sure if we exposed it in CIDER via some config or not.

bozhidar15:03:17

Seems we didn’t but that shouldn’t be a hard change.

dima15:03:32

Thanks, i’ll dig more into that and open an issue (or maybe PR) about it

zilti20:03:24

What is the best way to cider-jack-in into a codebase inside a VM? I guess there isn't really a proper way? Or can it inject its dependencies when connecting to an already-running nrepl?

dominicm21:03:02

You could perhaps configure it to run "ssh 192... clj" instead of "clj"

zilti21:03:07

Hmm yes, that could be an option

zilti21:03:13

The problem with that approach is that those dependencies are going to be outdated inevitably, then ruin your day