Fork me on GitHub
#rewrite-clj
<
2022-07-08
>
delaguardo12:07:07

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"}))

borkdude13:07:31

I can reproduce. Looking into it

borkdude13:07:16

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

delaguardo13:07:48

thanks, that works

delaguardo12:07:35

deps.edn is just {:deps {}}