Dragging a file and the ensuing refactoring breaks destructuring of auto-resolved keywords #2295
Open
Description
I dragged a file to a different folder and the namespace automatically updated in the file itself, and in other files that referenced it. All that was good.
But then things wouldn’t compile and after poking a bit I found that anywhere in the file where I was destructuring with auto-resolved keywords, what used to be this:
(fn [{:as request ::keys [payload]}] ...)
got updated to this:
(fn [{:as request ::keys [:new.dragged-to.namespace/payload]}] ...)
which of course clojure compiler did not like.
Similar things happened in other files that referenced the relocated file.
In all cases, none of the destructured keywords needed to be renamed, they should have just stayed [payload]
.