clojure-emacs / clj-refactor.el

A CIDER extension that provides powerful commands for refactoring Clojure code.
GNU General Public License v3.0
771 stars 111 forks source link

cljr-slash breaks whenever there's a Unicode character used as an alias in a codebase #540

Closed vemv closed 1 year ago

vemv commented 1 year ago

If anywhere in a given codebase there's an alias like [com.brunobonacci.mulog :as μ], cljr-slash will stop working in general, silently.

vemv commented 1 year ago

Hey @dgtized , I wonder if you'd like giving a go at this one?

btw I should retake work on the refactor-nrepl feature we laid out. I've just had very reduced bandwidth in recent times 😔 but it's getting better.

dgtized commented 1 year ago

Is that with cljr-slash-uses-suggest-libspec enabled or the current default system? It's working locally for me but I'm using cljr-slash-uses-suggest-libspec.

I tried adding [foo.bar as 𝛌] to one namespace and then typed 𝛌/bar in another and it imported it just fine. Could you give a more reproducible example of the problem?

vemv commented 1 year ago

Hmmm, since you confirm that it's working fine with your setup, I'll assume that it's some oddity related to mine, which is partly forked. I also tend to use older Emacs versions.

Thanks for investing the time.

btw, do feel free to nudge me for the WIP refactor-nrepl feature.