Fork me on GitHub
#cursive
<
2024-05-27
>
helios08:05:23

How can i tell Cursive about export-api in clojure.data.xml ? It can't resolve all those functions https://github.com/clojure/data.xml/blob/master/src/main/clojure/clojure/data/xml.clj#L34-L39

cfleming08:05:17

For the moment, I’ll have to tell Cursive about that, I’ll fix that for the next EAP

🙏 1
onetom22:05:17

i've just resolve clojure.data.xml.impl/export-api as clojure.core/declare and that solved this problem, iirc. it would be nice though if we wouldn't need to do this for such core libs. what would be even better, if there wouldn't be different ways to do this kind of hoisting between namespaces 🙂

cfleming23:05:15

Yes, resolving as declare will stop them being unresolved, and will allow autocomplete - that’s a good solution (although I’m surprised that it works with namespaced symbols!) However, it won’t allow you to get doc for the symbol or anything like that.