-
Notifications
You must be signed in to change notification settings - Fork 112
cljr-clean-ns doesn't support shadow-cljs's npm import syntax #476
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
Comments
It's not supported because it isn't valid clojure code. I searched the clojure(script) docs again, briefly, and I can't find anything stating that this is OK. I guess that means Anyway, happy to take a PR over in refactor-nrepl if you want to get involved, but I'm not going to work on this myself. |
FWIW the string |
Just chiming in to say I would really appreciate it if cljr-clean-ns would keep these types of imports. Also we could rename this issue to "cljr-clean-ns doesn't support npm import syntax", since as @thheller pointed out, this is not specific to shadow-cljs. |
@aiba : hi there! You created some related commits in refactor-nrepl which remain there since. What's been your experience since? What works and what doesn't? |
Alright so here's the deal!
If you find a new, specific issue please feel free to open one (from scratch). Cheers - V |
Thank you for looking into this! Ignoring the shadow-cljs-specific |
For anyone else watching: said issue is now fixed in refactor-nrepl 3.5.4 (released within a few minutes) and clj-refactor 3.5.5 (available in MELPA within a couple hours) |
Expected behavior
Given such a file:
After
M-x cljr-clean-ns
both requires should be preserved.Actual behavior
Both imports are removed, even though they are used in this ns.
Versions
Is this not supported, or am i missing something that could make it work?
The text was updated successfully, but these errors were encountered: