Fork me on GitHub
#cider
<
2017-02-16
>
sooheon06:02:12

austinbirch AFAIK company does not support completing from the middle of candidates.

sooheon06:02:49

Actually scratch that, this discussion may help: https://github.com/company-mode/company-mode/issues/296 the relevant part being customizing completion-styles

sooheon06:02:05

the substring style seems to be what you’re looking for

qqq07:02:54

when using eamcs+boot, do I want to use cider + cider-nrepl 0.15.0-snapshot or 0.14.0 ?

residentsummer08:02:33

@qqq my cider injects required deps on cider-jack-in (not on cider-connect, though). so to be sure you can inspect deps in cider’s repl

qqq08:02:50

I don't understand what that means

qqq08:02:21

either way, I got cider working, though refactor-nrepl now gives me:

no clojure project detected. The refacotr-nrepl middleware won't work and has been disabled

austinbirch09:02:08

sooheon thanks for the pointer. Reading related links got me back here: https://github.com/clojure-emacs/cider/blob/master/doc/code_completion.md#fuzzy-candidate-matching, which seems to be getting me what I wanted.

austinbirch09:02:27

And for extra context: I’m happy with the non-fuzzy matching normally, but fuzzy matching is really helpful when adding imports for Java-interop code.

sooheon09:02:05

austinbirch Great, that resource is a really good explanation of company mode in general. I'm curious though it doesn't quite have the use case you asked for, which is matching from an internal substring, no? It seems the very first letter needs to match still

austinbirch09:02:30

I thought that too, but tried it and it seems to be working!

austinbirch09:02:59

I’ll try in a fresh REPL session a bit later, in case there’s something weird going on. I’ll report back here if it stops working.

austinbirch09:02:32

Just restarted REPL & emacs to test: Not entirely sure what’s going on now. It seems like it might be treating the import case differently (which is all I care about – I don’t really want fuzzy matching elsewhere).

qqq09:02:09

okay, got that working 🙂

gingerwizard10:02:15

hi so we have recently split one large cljs app into multiple builds, and this all seems to work pretty well apart from one thing.

gingerwizard10:02:32

In my cljs repl I can play with namespaces in the default build but not others (so far so good)

gingerwizard10:02:43

Then I want to play with namespaces in another build so I do

gingerwizard10:02:54

(switch-to-build :build2)
Figwheel: Stopped watching build - build1
Figwheel: Watching build - build2
Compiling "resources/public/js/build2.js" from ["src/cljs"]...
Successfully compiled "resources/public/js/cms.js" in 3.759 seconds

gingerwizard10:02:06

so that seems to have worked - but I am still only able to see namespaces in build1 in my repl.

gingerwizard10:02:15

what am I missing?