-
Notifications
You must be signed in to change notification settings - Fork 69
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
Exception caused by namespaced keyword #106
Comments
@Bronsa Is this something you can work around in |
@expez both |
@Bronsa Isn't that the job of Here's the code we use to build the AST: (defn- build-ast
[ns aliases]
(when (ns-on-cp? ns)
(binding [ana/macroexpand-1 noop-macroexpand-1
*file* (-> ns ajutils/ns-resource ajutils/source-path)
reader/*data-readers* *data-readers*]
(assoc-in (aj/analyze-ns ns) [0 :alias-info] aliases)))) I still need to add |
@expez yes, if you use t.a.jvm's analyze-ns it should work out of the box, I'll try to read your code tomorrow to see why it's failing |
@Bronsa after looking more closely at this, it turns out the bug is in the part of our code which uses the clj reader while looking for macros. Sorry about the noise. |
@grammati thanks for the report! I've pushed a new snapshot to clojars, which should work on your project. |
Having a namespaced keyword anywhere in a project causes rename-symbol (called via clj-refactor.el) to fail with an exception. Eg:
Minimal project to reproduce: https://github.com/grammati/refactor-nrepl-ns-kw-bug
The root cause seems to be this behavior of the clojure reader:
The text was updated successfully, but these errors were encountered: