This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
@lee I'm trying to fix the problem that @delaguardo mentioned above, but I see that :track-position
has several spellings in this doc:
https://github.com/clj-commons/rewrite-clj/blob/main/doc/01-user-guide.adoc#position-tracking
:track-position ...
:track-position? ...
:track-positon ...
@U04V15CAJ Just in case you might not remember, I tried to fix that in https://github.com/borkdude/rewrite-edn/pull/11 but failed. Hope you can find a fix.
@U0HLDF4PL Yeah, I remember, thanks for bringing that up again. This time I tried to go a little deeper and discovered more issues with that...
So I'll have to go another round at this and yet go deeper... but luckily @lee offered to look at this as well.
Is my assumption wrong that when I insert new nodes with track-position true, that those nodes will have an updated position as well?
Yeah, that's the idea a zipper with :track-position?
enabled should mean a zipper that can return a position
(and position-span
if you are interested in that) that is correct after updates.
@lee I'll look into position
later, somehow the metadata was still nil
for newly inserted nodes, but maybe that's expected