This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-03
Channels
- # announcements (6)
- # babashka (14)
- # beginners (17)
- # biff (3)
- # calva (19)
- # circleci (3)
- # clj-on-windows (1)
- # cljdoc (21)
- # cljs-dev (6)
- # clojure (119)
- # clojure-australia (2)
- # clojure-europe (28)
- # clojure-france (3)
- # clojure-norway (12)
- # clojure-survey (2)
- # clojure-uk (7)
- # clojurescript (25)
- # core-typed (1)
- # cursive (11)
- # datomic (53)
- # emacs (14)
- # events (1)
- # gratitude (1)
- # holy-lambda (21)
- # integrant (2)
- # jobs (1)
- # jobs-discuss (3)
- # juxt (3)
- # kaocha (1)
- # lsp (17)
- # nbb (14)
- # off-topic (25)
- # pathom (11)
- # re-frame (24)
- # releases (1)
- # remote-jobs (2)
- # rewrite-clj (10)
- # shadow-cljs (11)
- # sql (3)
- # tools-build (6)
- # tools-deps (83)
- # vim (26)
- # xtdb (10)
when clean-ns
sorts the :require
form, it seems to always put entries which use reader conditionals (`#?(:clj [some.clj-lib :as foo])`) as last. Is this something that could be configured (I couldn't find an appropriate setting)? Most of the projects I've seen tend to put these kinds of conditional requires first, followed by the regular ones.
actually, it doesn't sort them as last. It seems to sort them somewhere between read*
-`reae*`.
(:require [p :as p]
[q :as q]
[r :as r]
[ra :as ra]
[rb :as rb]
[rc :as rc]
[rd :as rd]
[re :as re]
[rea :as rea]
[read :as read]
#?(:clj [foobar :as f])
[reader :as reader]
[reae :as reae]
[rf :as rf]
[s :as s]
[t :as t]))
I think you are the first one to complain about that, so not sure if this is a common need. The reader conditional between read and reader makes no sense to me, do you know why that?
No idea. My original plan was to fix all the unsorted namespaces in our project, and while looking at the dry run output I noticed that those reader conditional rows were sorted in a funny way
Then I duplicated it in emacs using the normal clean ns code action
Hum, I see, it's clojure-lsp that is moving to that position, I thought you said your project had it in that way on purpose
Nope, we typically have those reader conditional rows first
Alright, A issue makes sense, not sure if we should always sort the reader conditionals as last or first, but the current way looks weird indeed
I can test this a bit more and make an issue
In the Calva outline view, defmethods don’t show up. Is there a setting to recognize them as symbols for the ns? I’ve seen https://github.com/clojure-lsp/clojure-lsp/issues/662 which seems related, although my usage isn’t for integrant.
Ok, thanks.
I’m actually not sure what to ask for. There’s both the method and the keyword, (of course, it doesn’t have to be a keyword).