This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-13
Channels
- # beginners (67)
- # boot (18)
- # cider (28)
- # clara (11)
- # cljs-dev (1)
- # cljsrn (7)
- # clojure (134)
- # clojure-dev (2)
- # clojure-dusseldorf (1)
- # clojure-greece (1)
- # clojure-italy (13)
- # clojure-losangeles (2)
- # clojure-nl (2)
- # clojure-russia (2)
- # clojure-spec (2)
- # clojure-uk (52)
- # clojurebridge-ams (1)
- # clojurescript (78)
- # core-async (1)
- # core-matrix (2)
- # cursive (12)
- # data-science (22)
- # emacs (10)
- # events (1)
- # fulcro (28)
- # graphql (4)
- # hoplon (16)
- # jobs (1)
- # lein-figwheel (3)
- # leiningen (3)
- # nyc (1)
- # off-topic (19)
- # onyx (70)
- # parinfer (2)
- # pedestal (1)
- # portkey (9)
- # protorepl (2)
- # re-frame (16)
- # reagent (39)
- # ring-swagger (5)
- # rum (1)
- # schema (2)
- # shadow-cljs (216)
- # specter (5)
- # sql (1)
- # uncomplicate (4)
- # unrepl (6)
- # vim (25)
- # yada (5)
Hi, I'm looking at the inf-clojure
and I have several questions about it. I've managed to set it up with my spacemacs config, but looking at the source code I can tell that it uses clojure-complete
to provide completions from the repl. It seems to me that none of my projects have clojure-complete
in their dependencies. Am I right that completions doesn't work for me with inf-clojure
? I'm still getting some completions from somewhere so it's hard to tell if it works or not.
@achikin inf-clojure
targets the environment you are running in, so it should automatically get completions for Clojure REPL, Plank, Lumo
If you don't see them there must be some detection problem and it is very likely the REPL is not yet supported
What are you running against?
@richiardiandrea I understand that. But in case of the "default" environment it tries to call complete.core/completions
here https://github.com/clojure-emacs/inf-clojure/blob/master/inf-clojure.el#L794
Yep that's right
And when I'm trying to do that same call using that same running repl - it gives me an error
So I would check if the namespace is on the classpath
Ok ok so it's a documentation issue, I thought it was written somewhere that you need that (Dev) dependency for Clojure
And the project clojure-complete
seems abandoned https://github.com/ninjudd/clojure-complete
I would personally use https://github.com/alexander-yakushev/compliment
Maybe we can change that btw, cider can import things btw as transitive deps
Oh yes true
So I would raise an issue asking to someone (maybe it will be me) to switch things to compliment
https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/complete.clj#L12
In the meantime you can add the dependency and override inf-clojure-completions
IIRC, in order to use implement instead
It can get more sophisticated than that because compliment accepts a context and can complete locals..but one step at the time :))
@richiardiandrea @dpsutton thank you very much for clarifying the situation and pointing me to the appropriate places in the source code.
for sure. if you need a little intro on how to start messing with cider, checkout http://hackingcider.com. and if you put together some thoughts, add a PR and make an article to the site
@dpsutton I have severe freezes using cider+figwheel, that's why I'm looking at the inf-clojure.
Hey all. I’m looking to write a function that runs (require 'some-ns)
for the current buffer, which is similar to cider-repl-set-ns
, but should hopefully fetch the dependencies, etc… before I write this, I wanted to be sure that it doesn’t already exist and I’m missing it somehow