This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-02
Channels
- # announcements (2)
- # babashka (21)
- # beginners (80)
- # bristol-clojurians (1)
- # calva (1)
- # cider (4)
- # clara (2)
- # clj-kondo (5)
- # cljs-dev (41)
- # clojure (8)
- # clojure-dev (2)
- # clojure-europe (28)
- # clojure-italy (11)
- # clojure-nl (4)
- # clojure-spec (13)
- # clojure-sweden (1)
- # clojure-uk (11)
- # clojuredesign-podcast (5)
- # clojurescript (5)
- # code-reviews (4)
- # cursive (25)
- # data-science (5)
- # datomic (25)
- # duct (15)
- # emacs (6)
- # fulcro (13)
- # graalvm (1)
- # graphql (5)
- # helix (2)
- # jobs (3)
- # jobs-discuss (4)
- # luminus (1)
- # malli (13)
- # meander (3)
- # off-topic (16)
- # pathom (2)
- # pedestal (1)
- # re-frame (5)
- # ring-swagger (3)
- # spacemacs (4)
- # sql (16)
- # tools-deps (1)
- # tree-sitter (8)
- # vrac (2)
- # xtdb (16)
- # yada (2)
Hello guys, in Emacs cljr-clean-ns
doesn't work well with shadow-cljs's npm import syntax, e.g.
(ns foo
(:require ["react" :as react]
["@material-ui/core/Button" :default Button]))
After I run cljr-clean-ns
both would be removed even though they are used in this ns ...
Is this not supported, or am i missing something that could make it work?created a github issue https://github.com/clojure-emacs/clj-refactor.el/issues/476
I think that it would be nice in general to have a "non-destructive" clean-ns
, which doesn't remove unused deps. Sometimes I require in a library that I am using in the repl but have not yet used in the buffer, and it gets lost when I use add-missing-libspec
. I think it would be a good candidate for a prefixed-version of the refactor
Looks like it can be set via a configuration option here: https://github.com/clojure-emacs/refactor-nrepl/blob/master/README.md#configuration