This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-20
Channels
- # announcements (8)
- # babashka (19)
- # beginners (100)
- # boot (3)
- # calva (16)
- # cider (8)
- # cljdoc (6)
- # cljsrn (15)
- # clojure (73)
- # clojure-europe (7)
- # clojure-france (1)
- # clojure-italy (12)
- # clojure-nl (11)
- # clojure-sg (1)
- # clojure-uk (17)
- # clojurescript (63)
- # cursive (22)
- # data-science (2)
- # datomic (2)
- # defnpodcast (1)
- # docs (1)
- # fulcro (7)
- # graalvm (8)
- # jackdaw (1)
- # kaocha (11)
- # off-topic (26)
- # pedestal (4)
- # planck (1)
- # re-frame (35)
- # reitit (5)
- # ring (3)
- # shadow-cljs (25)
- # slack-help (11)
- # spacemacs (8)
- # specter (2)
- # tools-deps (61)
- # vscode (6)
- # xtdb (3)
Hi all! I am having some trouble making CIDER + shadow-cljs work with clj suitable. I cider-jack-in-cljs
to my app and try to get JS autocompletion for instance in (.| js/console)
(with | being my cursor) but with no result. The messages I get when I enable nrepl logging are
(-->
id "25"
op "complete"
session "dbea4a15-21ca-4b01-b3de-79dd32d13472"
time-stamp "2020-01-20 21:22:35.206522000"
context ":same"
enhanced-cljs-completion? "t"
ns "cljs.user"
symbol #("." 0 1 (type "special-form" ns "cljs.core"))
)
(<--
id "25"
session "dbea4a15-21ca-4b01-b3de-79dd32d13472"
time-stamp "2020-01-20 21:22:35.244830000"
completions ((dict "candidate" "." "ns" "cljs.core" "type" "special-form")
(dict "candidate" ".." "ns" "cljs.core" "type" "macro"))
status ("done")
)
Any idea how I could further debug my issue?So it should work out of the box with recent cider and shadow cljs versions. Does it work e.g. with figwheel or node cljs repls?
I tried with a figwheel-main project, unfortunately with the same results. One thing I was wondering is wether I should be seeing a context = `(prefix__ js/console)` in the message exchange with nrepl..
Dunno if that helps at all: https://github.com/rksm/clj-suitable/issues/2#issuecomment-578447046
Here is what I'm seeing for
(-->
id "31"
op "complete"
session "50c693bf-d907-4d7d-af0c-402105498456"
time-stamp "2020-01-25 23:07:46.616102642"
context "(__prefix__ js/console)"
enhanced-cljs-completion? "t"
ns "foo.main"
symbol "."
)
(<--
id "31"
session "50c693bf-d907-4d7d-af0c-402105498456"
time-stamp "2020-01-25 23:07:46.672047154"
completions ((dict "candidate" "." "ns" "cljs.core" "type" "special-form") ...)
status ("done")
)
That should help me forward, I’ll try to replicate your example and see where I can go from there - thank you very much @U08LZDL1H!