Closed mike706574 closed 1 year ago
@mike706574 Hi Mike,
This is actually an issue with Clojure, not Timbre. Your example can be reduced to the following:
(let [x- 1
x_ 2]
(fn [] [x- x_])) ; => Duplicate field name "x_" with signature "J" in class file
I'm only aware of this since there was, remarkably, another report of this recently - also against Timbre.
As I mentioned on that issue, it's not obvious to me whether this is an intended Clojure limitation or a bug. I'd guess the former, but this would need to be verified.
Your options seem to be:
Sorry I can't suggest anything else. Best of luck!
Interesting! Yeah, we're just avoiding the duplicate naming, and this is temporary code anyways until casing issues are resolved. I don't know why any sane person would use names like this. Thanks!
We tried to log a formatted message where two args have the same var name, except one uses kebab case and the other uses snake case (
x_y
versusx-y
) - here's a simplified example:And got this exception:
Definitely an easy situation to avoid by changing the names, but is this something that should work?