This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-16
Channels
- # babashka (48)
- # beginners (72)
- # calva (65)
- # cider (10)
- # clerk (11)
- # clj-kondo (14)
- # clojure (85)
- # clojure-austin (11)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-uk (6)
- # core-matrix (1)
- # cursive (8)
- # datomic (20)
- # docker (38)
- # emacs (2)
- # events (1)
- # fulcro (6)
- # funcool (6)
- # hyperfiddle (79)
- # introduce-yourself (1)
- # lsp (131)
- # malli (32)
- # off-topic (11)
- # pathom (3)
- # re-frame (11)
- # reagent (15)
- # releases (2)
- # shadow-cljs (49)
- # sql (3)
- # tools-deps (36)
is there a way to automatically update namespace upon changing its enclosing package name?
i don't think it's currently supported. if u rename only the last segment of the namespace name, that will propagate though. otherwise 1. u would need to fall back to lower level file and text editing operations 2. use the rename NS refactoring support in CIDER/clojure-mode 3. clojure-lsp also supports such NS rename refactoring for awhile Disclaimer: I never actually tried 2. or 3. but I did read about these features in docs or release notes on twitter
i have practically 0 LSP server experience, but what i meant is u would need to use VS Code or Emacs as the LSP client.
i know there is some LSP support for intellij, but i don't think it's ready to be used with clojure-lsp
, especially alongside Cursive.
but again, im not an expert on the topic of LSP
let us know, if u could figure this out, because like once a month i would love to do such an operation myself too!
btw, i never used those other, smarter, automated NS rename solution, because the Replace in Files... action in IntelliJ is sufficiently effective, since it allows in-place editing of the search/replace results, so i can do additional adjustments to the replaced version of the code, if needed, like adding line breaks or changing the :as
part and what not...