This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-16
Channels
- # adventofcode (1)
- # announcements (16)
- # babashka (7)
- # beginners (77)
- # calva (31)
- # cider (18)
- # clj-commons (16)
- # cljfx (5)
- # clojars (5)
- # clojure (33)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (15)
- # clojure-uk (4)
- # clojurescript (1)
- # conjure (1)
- # core-logic (7)
- # cursive (16)
- # data-science (4)
- # datalevin (6)
- # emacs (20)
- # events (5)
- # fulcro (15)
- # holy-lambda (1)
- # introduce-yourself (1)
- # jobs (2)
- # lsp (30)
- # luminus (3)
- # malli (3)
- # membrane-term (19)
- # missionary (62)
- # off-topic (39)
- # pathom (24)
- # polylith (5)
- # portal (9)
- # practicalli (3)
- # re-frame (16)
- # reagent (5)
- # remote-jobs (1)
- # reveal (21)
- # rewrite-clj (8)
- # shadow-cljs (13)
- # spacemacs (23)
- # sql (12)
- # timbre (2)
- # tools-deps (1)
- # xtdb (4)
Is it possible to have css autocomplete from CLJS react components using :className key in cider? I’m using Cursive which doesn’t support this. I’m just wondering if it’s possible with emacs / cider.
It sounds possible but I would bet it's not implemented. If you wish to peek/hack, cider-nrepl's stack is Compliment (for pluggable completion sources) + Suitable (for a cljs-specific source: https://github.com/clojure-emacs/clj-suitable/blob/8ec4258709d3a41f3cdd51c646674e0dba80219d/src/main/suitable/compliment/sources/cljs.clj)
Is it possible to complete java methods with complete-symbol
? If my cursor is at the pipe here: (.| (java.time.LocalDate/now))
can I somehow have type-appropriate completions? It feels like I’ve had this before, but I can’t get it to work now :thinking_face:
One certainly can get high-quality Java completions. https://github.com/alexander-yakushev/compliment/ as embedded in CIDER is the responsible for this.
Whether things like (.
or (->
will be parsed depends on compliment's impl.
If you can get some completions but others not, you can always report an issue / offer a PR in Compliment
The reason it didn’t work earlier was that I did:
(.| (java.time.LocalDate/now))
in a REPL where java.time.LocalDate
wasn’t imported. If I import LocalDate first, suggestions are available.My next question is this: I get a lot of suggestions for completions that aren’t relevant to the specific type. For instance, it suggests (.isRegisteredAsParallelCapable (LocalDate/now))
, which isn’t possible. This happens even with a type hint in front of the object?
> If I import LocalDate first, suggestions are available.
I can't confirm or deny that :) in general I wouldn't expect import
itself to make a difference, but maybe I'm wrong or it triggers a coincidentally-useful side-effect.
Compliment has partial support for observing type hints. IIRC it observes them for .
but not ->
. Personally I use a fork adding things here and there, I'll eventually wrap that up and contribute it upstream
Any issues you observe, probably would be welcome as Compliment issues. For making a particularly useful report you can even try reproducing it with a test case (that's in pure Clojure, doesn't need you to be a tooling expert)
I see there are a couple open issues for .
access, they lacked feedback from the people who reported it though
hello everyone, how are you all doing? i wanted to get some help because CIDER doesn't appear to be highlighting correctly the cljs.core
namespace symbols on a project i'm working on. i tried running (cider-resolve-core-ns)
on a cljs buffer, with the REPL running and all, but the return is always '(dict)
, while in clj buffers it returns the full dict object; i believe this is why it isn't highlighting the core symbols. i'm using shadow-cljs
if that helps with anything
ℹ️ clj-refactor.el 3.2.2 is out! New: a couple defcustoms, which if tweaked, will match more closely Stuart Sierra's https://stuartsierra.com/2016/08/27/how-to-ns guide. Doc here: https://github.com/clojure-emacs/clj-refactor.el/blob/v3.2.2/clj-refactor.el#L918-L935