clj-commons

2021-12-16T21:34:55.088800Z

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?

borkdude 2021-12-16T21:45:02.089900Z

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

2021-12-16T21:48:30.091100Z

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

seancorfield 2021-12-16T21:49:15.091800Z

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

2021-12-16T21:50:50.092900Z

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
borkdude 2021-12-16T21:49:43.092300Z

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

borkdude 2021-12-16T21:49:58.092600Z

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

2021-12-16T21:54:43.094Z

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