Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cljr-clean-ns removes used CLJS import #404

Open
xiongtx opened this issue Jan 18, 2018 · 0 comments
Open

cljr-clean-ns removes used CLJS import #404

xiongtx opened this issue Jan 18, 2018 · 0 comments
Labels

Comments

@xiongtx
Copy link
Member

xiongtx commented Jan 18, 2018

Expected behavior

cljr-clean-ns does not remove used import.

Actual behavior

In a CLJS file, given the following:

(ns foo.bar
  (:import [goog.i18n NumberFormat]
           [goog.i18n.NumberFormat Format]))

(defn money [n]
  (let [fmt (NumberFormat. Format.CURRENCY)]
    (.format fmt n)))

cljr-clean-ns removes the goog.i18n.NumberFormat Format import.

Steps to reproduce the problem

As above

Environment & Version information

clj-refactor.el version information

clj-refactor 2.4.0-SNAPSHOT (package: 20171117.317), refactor-nrepl 2.4.0-SNAPSHOT

CIDER version information

;; CIDER 0.16.0snapshot (package: 20171001.112), nREPL 0.2.13
;; Clojure 1.9.0, Java 1.8.0_151

Leiningen or Boot version

Leiningen 2.8.1

Emacs version

26.0.50

Operating system

OS X 10.11.6 "El Capitan"

@expez expez added the bug label Jan 18, 2018
@clojure-emacs clojure-emacs deleted a comment from MalloZup Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants