This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-17
Channels
- # announcements (13)
- # beginners (56)
- # brompton (1)
- # cider (2)
- # cljsrn (10)
- # clojure (369)
- # clojure-australia (4)
- # clojure-boston (1)
- # clojure-europe (28)
- # clojure-nl (1)
- # clojure-spec (1)
- # clojure-uk (18)
- # clojurescript (26)
- # data-science (2)
- # datahike (4)
- # datalog (2)
- # datasplash (6)
- # datomic (9)
- # events (1)
- # kaocha (4)
- # macro (1)
- # malli (22)
- # meander (40)
- # membrane (30)
- # music (1)
- # nbb (3)
- # news-and-articles (3)
- # off-topic (12)
- # practicalli (1)
- # re-frame (19)
- # remote-jobs (1)
- # sci (22)
- # shadow-cljs (15)
- # spacemacs (4)
- # tools-deps (40)
- # xtdb (26)
Introducing incomplete, a new simple Clojure code completion library https://metaredux.com/posts/2021/08/17/introducing-incomplete-a-simple-clojure-code-completion-library.html



Code size limits mostly. See https://github.com/trptcolin/reply/pull/153#issuecomment-193387725
It will be fairly easy to replace clojure-complete
with incomplete
when such remote code loading happens (which I assume is very rarely).
But if someone can use compliment
, they should use compliment
- it's a great library.
@U051BLM8F: so is the plan to eventually replace nrepl.util.completion
with this dependency?
I'll just keep the code of nrepl.util.completion
and the standalone library in sync. Same as I do for https://github.com/nrepl/bencode
That was my suspicion; thanks for clarifying
I’m guessing there’s no support for ::alias/keywords
?
(deftest keyword-completions-test
(testing "colon prefix"
(is (set/subset? #{":doc" ":refer" ":refer-clojure"}
(set (candidates ":" *ns*)))))
(testing "unqualified keywords"
(do #{:t-key-foo :t-key-bar :t-key-baz :t-key/quux}
(is (set/subset? #{":t-key-foo" ":t-key-bar" ":t-key-baz" ":t-key/quux"}
(set (candidates ":t-key" *ns*))))))
(testing "auto-resolved unqualified keywords"
(do #{::foo ::bar ::baz}
(is (set/subset? #{":incomplete.core-test/bar" ":incomplete.core-test/baz"}
(set (candidates ":incomplete.core-test/ba" *ns*))))
(is (set/subset? #{"::bar" "::baz"}
(set (candidates "::ba" 'incomplete.core-test))))))
(testing "auto-resolved qualified keywords"
(do #{:nrepl.core/aliased-one :nrepl.core/aliased-two}
(require '[nrepl.core :as core])
(is (set/subset? #{"::core/aliased-one" "::core/aliased-two"}
(set (candidates "::core/ali" *ns*))))))
(testing "namespace aliases"
(is (set/subset? #{"::set"}
(set (candidates "::s" 'incomplete.core-test)))))
(testing "namespace aliases without namespace"
(is (empty? (candidates "::/" *ns*)))))
[New release - RC4] Deep Learning for Programmers: An Interactive Tutorial with CUDA, OpenCL, DNNL, Java, and Clojure https://aiprobook.com/deep-learning-for-programmers/
