Skip to content

No completion candidates for desctucture namespaced keywords #3218

@rrudakov

Description

@rrudakov

Expected behavior

After updating compliment to the version 0.3.13 I would expect completion candidates for desctucture namespaced keywords in maps. Related PR: alexander-yakushev/compliment#83

Actual behavior

No candidates provided

relevant nrepl-messages

(-->
  id                        "89"
  op                        "complete"
  session                   "2e1a661d-92ae-4c07-81b5-f07b762748ed"
  time-stamp                "2022-06-23 21:37:32.753634571"
  context                   "(let [{:foo/keys [hello world]
       :bar/keys [one two]} m]
  __prefix__)
"
  enhanced-cljs-completion? "t"
  ns                        #("core" 0 4 (face font-lock-type-face cider-block-dynamic-font-lock t cider-locals nil help-echo cider--help-echo fontified t))
  prefix                    "hel"
)
(<--
  id          "89"
  session     "2e1a661d-92ae-4c07-81b5-f07b762748ed"
  time-stamp  "2022-06-23 21:37:32.760415942"
  completions nil
  status      ("done")
)

note variable cider-completion-use-context is set to t.

Steps to reproduce the problem

  • deps.edn
{:paths ["src"]}
  • src/core.clj
(ns core)

(def m
  {:foo/hello "One"
   :foo/world "Two"
   :bar/one   "Hello"
   :bar/two   "World"})

(let [{:foo/keys [hello world]
       :bar/keys [one two]} m]
  hell<cursor here>)

Environment & Version information

CIDER version information

;; Connected to nREPL server - nrepl://localhost:37793
;; CIDER 1.5.0-snapshot (package: 20220619.1106), nREPL 0.9.0
;; Clojure 1.11.1, Java 11.0.15
;;     Docs: (doc function-name)
;;           (find-doc part-of-name)
;;   Source: (source function-name)
;;  Javadoc: (javadoc java-object-or-class)
;;     Exit: <C-c C-q>
;;  Results: Stored in vars *1, *2, *3, an exception in *e;
;;  Startup: /usr/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.9.0"} cider/cider-nrepl {:mvn/version "0.28.5"} refactor-nrepl/refactor-nrepl {:mvn/version "3.5.2"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}}}' -M:cider/nrepl

Lein / Clojure CLI version

Clojure CLI 1.11.1

Emacs version

28.1

Operating system

Linux 5.18.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 16 Jun 2022 20:40:45 +0000 x86_64 GNU/Linux

JDK distribution

openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10)
OpenJDK 64-Bit Server VM (build 11.0.15+10, mixed mode)

cider-completion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions