This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-15
Channels
- # announcements (1)
- # aws (79)
- # babashka (47)
- # beginners (82)
- # calva (65)
- # cider (27)
- # cljdoc (18)
- # cljs-dev (29)
- # clojure (189)
- # clojure-dev (5)
- # clojure-europe (3)
- # clojure-italy (1)
- # clojure-madison (6)
- # clojure-nl (4)
- # clojure-spec (10)
- # clojure-uk (41)
- # clojured (3)
- # clojurescript (5)
- # clojurex (17)
- # cursive (30)
- # data-science (7)
- # datomic (17)
- # emacs (3)
- # events (6)
- # fulcro (2)
- # funcool (9)
- # graalvm (29)
- # jobs-discuss (3)
- # joker (3)
- # kaocha (6)
- # malli (5)
- # music (6)
- # off-topic (21)
- # reagent (3)
- # reitit (4)
- # rewrite-clj (8)
- # shadow-cljs (49)
- # spacemacs (7)
- # sql (23)
- # tools-deps (15)
- # vim (43)
- # xtdb (19)
Crossposting because not sure if Spacemacs or CIDER: https://clojurians.slack.com/archives/C09C8GRLY/p1573790183157300
I stepped through the company complete code and it’s not fun. But I think it was lsp and cider both fighting over completions for me @lvh
Fixup completion in CIDER
few issues:
- CIDER uses dumb completion in the repl for some reason. Need to use
'company-indent-or-complete-common' as the 'cider-repl-tab-command'
- set TAB to be ("TAB" . company-indent-or-complete-common)
globally.
Was having interesting issue: autocomplete at the repl sucked, but if
invoking company-complete-common manually it worked fine. However, was
getting no completion in source buffers just a "no completions found"
error. Still not exactly sure why this solved that but cargo cults
abound. Possible it had to do with the capf cache and it gets really
hairy in there at that point.
from a commit message in my init.elin my use-package cider ... :config (setq cider-repl-tab-command #'company-indent-or-complete-common))
@lvh one thing to check is if your autocomplete works normally in a source buffer but this neutered way in the repl. if so the above should fix it for you
How can I connect the REBL into a Cider workflow from Emacs?
https://github.com/cognitect-labs/REBL-distro
It says:
>Replace your normal repl invocation (clj, or clojure e.g. for inferior-lisp) with REBL:
> clj -R:rebl -m cognitect.rebl
Thanks!!!
I don’t know much about spacemacs, but are you using company mode as the back-end or ac?
That’s what I was trying to find out, company’s minimum prefix length is 3 characters. https://github.com/company-mode/company-mode/blob/master/company.el#L520