-
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
move form refactoring doesn't follow symlinks #142
Comments
Ths is If not, I'd love a copy of the message being sent down to the middleware (you can find this is in the nrepl-messages buffer if nrepl-log-messages is t) |
So I had tossed out the environment generating that error. Recreating it and trying again, it worked. It moved the fn and generated a :refer correctly, but it did fail to add the correct :import statements in the new namespace, meaning that some type hints in the code caused compile errors (which I'm not too surprised about, since that's a pretty hard problem). Clean namespace was fine. So, might have been some sort of bad state the REPL environment and/or Emacs was in? Anyway, sorry to waste your time. Will re-open if I can get it to happen again. |
I think I've found why I couldn't repro this: It would be very handy to support this kind of refactor, since it would allow me to change things in the library project and the project using it simultaneously. |
Sure, I can see how that can come in handy and it's probably harmless to fix this. |
Great! Thanks |
Just to keep this open (since I still run into it fairly often!): I can confirm that this is still a problem as of cli-refactor 2.4.0 |
This one turned out to be a bug in clj-refactor.el, not refactor-nrepl. clj-refactor.el should handle symlinks better. I've closed the issue since now at least refactor-nrepl will fail more informatively. (refactor-nrepl 3.3.2 / clj-refactor.el 3.3.2) Will try to fix the bug clj-refactor.el side |
Hello, I'm trying to move a function to a new namespace ("move one or more forms to another namespace, :refer any functions"), but getting the exception below (note that this is from Emacs'
*Messages*
buffer and includes the fact that the file it's complaining about actually exists).The function is moved and the target namespace has some new require's added, but nothing else referring to it is updated.
I'm using clj-refactor 2.0 and the latest stable CIDER.
Any ideas, or things I should try?
The text was updated successfully, but these errors were encountered: