rewrite-clj 2022-07-08

Hello there! I have a problem with rewrite-edn — I’m getting a NullPointer Exception when I try to use threading macro to pipe through consecutive r/assoc-in calls

(-> (r/parse-string (slurp "deps.edn"))
    (r/assoc-in [:deps 'foo] {:mvn/version "x"})
    (r/assoc-in [:deps 'bar] {:mvn/version "x"}))

I can reproduce. Looking into it

As a workaround, you can put str r/parse-string in between those calls

thanks, that works

deps.edn is just {:deps {}}