Fork me on GitHub
#clj-commons
<
2021-12-16
>
Noah Bogart21:12:55

hey all, I cloned https://github.com/clj-commons/ordered to poke at it to see how it works, and it throws an error about “Conflicting data-reader mapping” for ordered/map. if I delete the src/data_readers.cljc file, it loads up normally. any ideas why that might happen?

borkdude21:12:02

@nbtheduke perhaps another ordered library in one of your deps? this is why reader tags should probably use organization/name for their reader tags

Noah Bogart21:12:30

looks like a library in my .lein/profiles.clj (antq) relies on ordered, meaning it’s in my path. removing that fixes the issue. thanks for the hint

seancorfield21:12:15

(`.lein/profiles.clj` seems to be the root of nearly every problem I see people reporting with Leiningen... 🙂 )

Noah Bogart21:12:50

ha yeah, i used to have it quite a bit bigger but it bit my ass too many times. this was the final lib to go!

1
borkdude21:12:43

but if both configs point at the same reader function, it shouldn't be a conflict right?

borkdude21:12:58

so now I'm curious what the other ordered reader function was

Noah Bogart21:12:43

my apologies, it relies on the clojars version of this library, but i think any overlap causes it to throw an error