We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
paredit/kill
global-find-by-node
Version rewrite-clj/rewrite-clj {:mvn/version "1.1.47"}
rewrite-clj/rewrite-clj {:mvn/version "1.1.47"}
Platform Clojure version: 1.11.1
1.11.1
Symptom Two issues:
rewrite-clj.paredit/kill
Reproduction
(-> (z/of-string "[1 2 3 4]") z/down (z/insert-left (n/keyword-node :wrong-pos)) z/next (z/insert-left (n/keyword-node :nil-meta)) pe/kill z/print) :wrong-pos
Actual behavior
:wrong-pos
[:wrong-pos 1 :nil-meta ]
Expected behavior
2
[:wrong-pos 1 :nil-meta 2]
Diagnosis
nil
Action Let me know if a PR is preferred.
The text was updated successfully, but these errors were encountered:
Thanks @mrkam2!
I can take a peek sometime soon!
Sorry, something went wrong.
I'm starting to take a look at this one!
Thanks again for reporting, @mrkam2. Folks seem to be starting to use the paredit API a bit, and you've uncovered some very interesting flaws.
No branches or pull requests
Version
rewrite-clj/rewrite-clj {:mvn/version "1.1.47"}
Platform
Clojure version:
1.11.1
Symptom
Two issues:
rewrite-clj.paredit/kill
incorrectly positions the zipper after performing the operation.Reproduction
Actual behavior
:wrong-pos
.[:wrong-pos 1 :nil-meta ]
.Expected behavior
2
.[:wrong-pos 1 :nil-meta 2]
Diagnosis
global-find-by-node
search that compares nodes meta not taking into account that new nodes havenil
meta.Action
Let me know if a PR is preferred.
The text was updated successfully, but these errors were encountered: