Fork me on GitHub
#cider
<
2018-04-01
>
bozhidar00:04:02

@theeternalpulse I’ll take a look.

bozhidar00:04:33

@theeternalpulse Fixed. There was a missing car right before the split-string. Sorry about that.

bozhidar11:04:32

Btw, I hope to release CIDER 0.17 in the next couple of weeks, so if you’d like to get some patches in or help with some testing of the current master branch - now would be a great time to do so. 🙂

dominicm11:04:48

@bozhidar can you point me at how cider provides a list of all vars for use? https://github.com/clojure-emacs/cider-nrepl/blob/1168991da4b1c9221246196653372fce5013aeb6/src/cider/nrepl/middleware/ns.clj seems like the obvious answer, but it only provides either vars by ns, or vars by name. I'm thinking of something I could pass into a fuzzy finder.

dominicm11:04:29

Maybe I can (ab)use apropos 🤔

dominicm11:04:40

Now is probably the time to get this in.

dominicm11:04:35

the apropos namespace is using some hand-rolled version of info, so I can probably "fix" it by doing what I did to stacktrace

pauld11:04:50

I was also looking for a command in emacs cider for this but settled on just putting the namespace then hitting tab.

pauld11:04:35

autocomplete shows what I was looking for - didn't check if it was exactly equivalent to

dir

dominicm11:04:40

@pauld there's an operation for doing what dir does.

pauld11:04:35

oh? equivalent to clojure.repl/dir?

pauld11:04:00

What is it?

pauld11:04:53

I wonder what is operation is happening when I type ie. clojure.repl/<tab>.

pauld11:04:22

Helm completion at point.

pauld11:04:25

Sorry I just talking out loud - not much to contribute. Just that I was looking for this too.

dominicm12:04:48

cider-sync-request:ns-vars gets the vars for the current namespace 🤔

dominicm12:04:13

That's called by cider-browse-ns--items

dominicm12:04:33

I'm guessing that you want to do M-x cider-browse-ns

pauld12:04:42

Ah! yeah that's what I wanted.

pauld12:04:53

, h n on spacemacs

dominicm13:04:23

The spacemacs feature I was a bit confused about was helm-imenu, it apparently uses a regex to search open files only. Maybe I will PR to cider to add a live version of this which works across all namespaces 🙂

fedreg17:04:47

Hi all, debugger question. I've been using the debugger in spacemacs with no issues for the past several months. However I've switched to a very simplified emacs configuration and I cannot get the debugger to work. When I run C-u C-M-x on a form only the first result is evaluated and the debugger freezes; cannot step through the function, quit, etc. Same happens if I manually add the #dbg statement to the function. No errors that I can see; just won't work. Never had this issue before. What am I missing? ...sadly I've become way too dependent on that feature to work without it! thx!!

d4hines18:04:44

I want cider to load the :dev lein profile on jack in. How do I do that?

gonewest81823:04:24

IIRC, you can C-u C-c M-j and then customize the arguments to Leiningen.

d4hines18:04:27

Actually, nevermind! It’s being loaded, but a problem up the chain caused to think otherwise.

bozhidar19:04:14

> @bozhidar can you point me at how cider provides a list of all vars for use? https://github.com/clojure-emacs/cider-nrepl/blob/1168991da4b1c9221246196653372fce5013aeb6/src/cider/nrepl/middleware/ns.clj seems like the obvious answer, but it only provides either vars by ns, or vars by name. I’m thinking of something I could pass into a fuzzy finder. You’ve basically have the right idea. There’s nothing currently that just dumps all the vars (except compliment). There was some old ticket where we were discussing some fuzzy matching for vars. Let me find it.

bozhidar19:04:34

@dominicm ^^

dominicm19:04:03

@bozhidar I'll have a look through that, thanks.

bozhidar19:04:57

Basically we never agreed on what the UI for this should be, so we never implemented something in the middleware. As many commands operate on both java classes and vars dumping thousands of candidates seemed like a problematic solution. 🙂

dominicm19:04:01

^ this (ab)uses apropos to pull it off. Apropos needs a vim hand over it to hard-code in the file/line/column of all the vars it returns. A little difficult at the moment as info is still in cider-nrepl, and not orchard.

bozhidar20:04:00

It’s not exactly an abuse, because we tweaked apropos to support this, but yeah - that’s one way of approaching the problem.

bozhidar20:04:21

Moving the info stuff to orchard should be easy, now that most of the code is there anyways. I’ve stopped worked on this for now, but I plan to return to this eventually (and hope someone will beat me and help with that 😄 ).

dominicm20:04:58

I think there's some hold up around cljs stuff?

weslord23:04:45

I'm having some trouble with cider-nrepl

weslord23:04:06

I've created a ~/.lein/profiles.clj file and put {:repl {:plugins [[cider/cider-nrepl "0.16.0"]]}} inside it, but when I start lein repl, it doesn't look like it's using cider

weslord23:04:51

> lein repl
nREPL server started on port 58925 on host 127.0.0.1 - 
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 9.0.1+11