rewrite-clj

Kirill Chernyshov 2022-07-08T12:29:07.412579Z

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

borkdude 2022-07-08T12:58:53.057269Z

Hmm, I see

borkdude 2022-07-08T13:02:31.078529Z

I can reproduce. Looking into it

borkdude 2022-07-08T13:03:16.213819Z

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

Kirill Chernyshov 2022-07-08T13:04:48.057619Z

thanks, that works

Kirill Chernyshov 2022-07-08T12:30:35.796289Z

deps.edn is just {:deps {}}