cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Lucy Wang 2020-09-02T04:54:39.065200Z

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?

Lucy Wang 2020-09-02T13:03:07.065300Z

created a github issue https://github.com/clojure-emacs/clj-refactor.el/issues/476

Mitch 2020-09-02T19:31:43.065600Z

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

Mitch 2020-09-02T19:35:59.065800Z

Looks like it can be set via a configuration option here: https://github.com/clojure-emacs/refactor-nrepl/blob/master/README.md#configuration