Fork me on GitHub
#cider
<
2017-04-08
>
benedek08:04:02

@xiongtx also https://github.com/clojure-emacs/clj-refactor.el/issues/264 basically we have a backend to find unused locals

xiongtx17:04:20

Seems like an unimplemented feature request?

benedek14:04:06

indeed. my point is that we basically have the backend for this. to implement this is just the matter of getting the right response from refactor-NREPL and doing the removing in cljr

benedek14:04:31

sry for the late answer btw. this threading thing tricked me

xiongtx15:04:17

Seems like Joker very recently implemented finding unused fns/vars! https://github.com/candid82/joker/commit/6f73f08660b17adfd2a0d5c3d0c6e8cbb1c560b9

benedek09:04:54

indeed. seen this commit over the weekend. would be awesome to use joker as an analyzer of sorts

benedek09:04:02

only if i had time… 😉

benedek09:04:42

there is some work btw around #unrepl as well to do completion and stuff by pesterhazy

benedek09:04:49

project called unravel

benedek09:04:05

also pretty interesting

benedek08:04:55

as said above squiggly should already mark/highlight them

puzzler10:04:07

Does cider have any capability to auto-complete methods in cljs interop?

pesterhazy11:04:42

@puzzler, can you even auto-complete methods in clj?

pesterhazy11:04:41

I'm working on autocompleting in unravel (https://github.com/pesterhazy/unravel) and auto-completing methods could be super useful

puzzler11:04:07

I think I've gotten some good auto-complete on methods in Cursive, but I could be misremembering.

pesterhazy11:04:19

not sure how that would work with a termina based repl though, given that the method name precedes the object

puzzler11:04:40

Cursive's completion isn't based off of the REPL.

puzzler11:04:37

But that's my question with respect to cider. Is it "aware" of all the methods for the various objects available?

pesterhazy11:04:52

If I type (.c| co) and tab, how does it know that co is a connection?

puzzler11:04:54

It doesn't have to limit to method for the specific object in question.

puzzler11:04:03

Just all the methods in scope.

pesterhazy11:04:09

ahh interesting

pesterhazy11:04:25

although more specific might be even better

puzzler11:04:02

In theory, . or .. could do better because the object comes first.

pesterhazy11:04:43

hm in a terminal repl it would probably only work with vars

pesterhazy11:04:18

user=> (. my-var cl|<TAB>

pesterhazy11:04:49

not with let-bindings, fn args etc

dominicm11:04:34

I think cider does do something like this for java.

jfntn15:04:36

We have a project.clj for a full-stack project where sources and dependencies are split into backend and frontend lein profiles.

jfntn15:04:50

I’d like to have something like cider-jack-in-clojurescript where the clj repl starts with the backend profile, and the cljs one with the frontend profile.

jfntn15:04:53

I’m not sure I understand how the sibling repl is started though, is it correct that it’ll reuse the clj repl’s nrepl process? Meaning that I’d have to start another process in order to do what I want?