This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-12
Channels
- # announcements (6)
- # babashka (45)
- # beginners (4)
- # calva (19)
- # cider (2)
- # clj-kondo (10)
- # clj-yaml (10)
- # clojure (25)
- # clojure-boston (1)
- # clojure-conj (3)
- # clojure-europe (34)
- # clojure-losangeles (5)
- # clojure-nl (1)
- # clojure-norway (11)
- # clojure-uk (2)
- # clojurescript (84)
- # cursive (10)
- # datalevin (3)
- # figwheel-main (1)
- # fulcro (1)
- # jobs (5)
- # joyride (25)
- # lsp (17)
- # malli (18)
- # nbb (1)
- # off-topic (1)
- # re-frame (22)
- # remote-jobs (9)
- # scittle (3)
- # shadow-cljs (26)
- # sql (16)
- # tools-build (12)
- # xtdb (44)
I would set them to 'indent only' https://cursive-ide.com/userguide/formatting.html#code-style-settings
I noticed that if I require clojure.core
with :refer
lots of symbols is highlighted. Possibly a bug. Have a look at the screenshots.
I'm using Idea 2022.3.1 (IU-223.8214.52) & Cursive 1.12.7-2022.3.
Yes, probably a better question I should have asked would be: what are you trying to achieve with that? Since clojure.core symbols are usually all referred anyway.
Tbh possibly I added it by mistake, what I realised when @U08BJGV6E pointed it out, still, acting like the previous refer (in this case the implicit refer of clojure.core) is cancelled, therefore highlighting all symbols from the first one, doesn't reflect how clojure namespace works. Another example:
(ns dev-client.test
(:require
[clojure.set :refer [union]]
[clojure.set :refer [intersection]]))
(union #{:a :b} #{:a})
(intersection #{:a :b} #{:a})
Despite an error of duplicated require it is working example, but Cursive highlights the symbols required in the first refer line.If something should be highlighted or suggested (eg. via IntelliJ inspections) is "redundant refer" or "duplicated refer".
> Looks like a bug, yeah - could you file an issue for that, please? I opened the issue here: https://github.com/cursive-ide/cursive/issues/2761