Closed aldebogdanov closed 1 month ago
Hi!
Thanks for using Eastwood.
Out of curiosity, did you try using the fully qualified example.api.buttons.TextButton
name?
It wouldn't surprise me if tools.analyzer was being more strict than the Clojure compiler by expecting a class name (those aren't alias-eable), not a symbol name.
Oh yes! Thank you. I tried now fully qualified class name and it was OK.
But it anyway looks weird that to achieve clean linter output we need use such uncommon notation
It's not that odd considering that extend-protocol works over one protocol (which is a var among other things) and N classes (which aren't vars).
One cannot refer to e.g. java.util.Date
using ju/Date
notation so the fact that Clojure allows b/TextButton
might be one of those historical oddities (such as https://clojure.org/guides/faq#unreadable_keywords)
Anyway, Eastwood is heavily based off the mentioned tools.analyzed library, and changing how strict it is, is beyond our scope.
Cheers - V
I have try to use
eastwood 1.4.3
plugin in my project, but encountered weird behaviour. It throws an exception in code where I am extending protocol for record from another namespace. Like this:On the line with
b/TextButton
Eastwood throws:If I try to use fully qualified namespace it throws the same.