Fork me on GitHub
#cider
<
2019-11-26
>
bozhidar10:11:05

Thanks! I’ve left some feedback and we’ll have it merged soon. I didn’t initially understand this problem happened only when the target buffer is visible when doing the jump to it.

bozhidar10:11:28

For me that was desirable, that’s why I never considered it a problem. 🙂

witek12:11:37

Hi. I get an error using command cljr-find-usages in a .clj file on a project with mixed in ClojureScript:

error in process filter: cljr--get-error-value: Error in nrepl-refactor: java.util.concurrent.ExecutionException: clojure.lang.ExceptionInfo: Unparsable namespace form {:reason :refactor-nrepl.inlined-deps.toolsnamespace.v0v3v0.clojure.tools.namespace.parse/unparsable-ns-form, :form ["@material-ui/core" :as mui]}
Is this a bug I should file somewhere? Thank you!

ag16:11:17

find-usages is flaky. Use lsp, it works better there.

mhcat21:11:03

@U0G75ARHC do you use both cider and lsp? do they co-exist ok?

ag22:11:22

yeah, clojure-lsp is just a jar. the downside? You’d have to wait for clojure-lsp to connect, and you’d have to wait for CIDER to jack-in. It’s annoying. Luckily, you don’t have to do it very often. I’m hoping someone could speed it up by graalifying it https://github.com/snoe/clojure-lsp/issues/84 Unfortunately, I’m so swamped with the work, otherwise I would’ve attempted it myself

ag22:11:35

Maybe if we buy bunch of burritos and nicely ask @U04V15CAJ, he’d do it

borkdude22:11:43

You can also use clj-kondo to find usages, but you will have to use the analysis output. I wonder if it's possible to hook clj-kondo into cider as a middleware/plugin

borkdude22:11:55

as a JVM lib that is

funkrider14:11:13

Hi - I have been looking but I could not find a way to tell CIDER to evaluate code from a cljc file in the CLJ repl and not the CLJS repl when I use the C-c C-e command - any help would be appreciated?

ag15:11:35

If you're connected to cljs repl, it's what you get. If you have two repls simultaneously CIDER will evaluate .cljc file in clj repl by default. But it seems to me you have a single repl instance.

ag15:11:20

Then you'd have to either run two REPLS, or in your repl temporarily leave cljs, I think you need to type :`cljs`/`quit`

ag15:11:10

But if you have two repls, then you can change the mode of .cljc file buffer. Forced it to be clojure-mode or clojurescript-mode

funkrider15:11:30

hey thanks @U0G75ARHC - I have a cljs repl via jack-in and a clj REPL via cider-connect and maybe that is where the difference is. I will try the clojure-mode or clojurescript-mode commands thanks!

funkrider16:11:32

After trying to set the cljc file to use clojure-mode I find that the C-c C-e does not send to the REPL.

respatialized17:11:17

I'm cross-posting this here so that the question is in the most directly relevant channel as well as a broader one. Any help is much appreciated.