-
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
Rename symbol breaks in the presence of ::
keywords (regression)
#164
Comments
I just experimented some more and noticed that it only happens some of the time. So far I can only reproduce it with a partially compiled project. Calling
|
Ya, the project has to be loaded into the repl for some of this stuff to work. Otherwise the reader won't know what namespace Most people seem to use the reloaded workflow, with |
Oh, I see! I figured that the evaluation that mode warns about for certain refactorings would already do something like this so I was a bit confused as to why |
Oops, accidentally hit "close and comment" ;-) |
That's a reasonable assumption, but that's the evaluation related to building an AST. In order to work with macros (which have been expanded away by the AST gets built) we have to do some manual reading of our own. This is what fails in the stacktrace above.
Yeah, but as soon as a new occurrence of a keyword of type I agree that the situation as it is now is pretty bad, and I think it could be improved by just providing a better error message. The only reason I haven't done that is because we'd have to rethrow based on the text in the exception-info :/ |
Can't reproduce this on the latest snapshot. Closing this for now. We're doing a push for another stable release, sometime later this month, if you don't want to run a snapshot. |
Steps to reproduce the problem
When
::
style keywords (e.g.::foo
or::foo/bar
) are present anywhere in the project, the rename symbol refactoring fails with this exception:Seems to be a regression of #106
Environment & Version information
clj-refactor.el and refactor-nrepl version information
clj-refactor 2.2.0, refactor-nrepl 2.2.0
CIDER version information
Leiningen or Boot version
Leiningen 2.6.1
Emacs version
Operating system
NixOS 16.09pre85533.2a16e37 (Flounder)
The text was updated successfully, but these errors were encountered: