Fork me on GitHub
#cursive
<
2020-11-20
>
Jakub Holý (HolyJak)18:11:02

Is there a way to teach Cursive to resolve symbols pointing to functions in another namespace, re-exported via a custom macro? There are fns such as tech.v3.dataset/column-count that are re-exported from a namespace that I require like this:

(exporter/export-symbols tech.v3.dataset
                         column-count
                         row-count)
When I require ☝️ as middleman-ns, I want Cursive to understand that middleman-ns/column-count is a fn. The exporter: https://github.com/cnuernber/dtype-next/blob/master/src/tech/v3/datatype/export_symbols.clj#L4

cfleming05:11:58

There isn’t out of the box right now, but I’m planning some support for this. There are a few libraries out there that do this just with def too, and I’ve planned to add support for that for a while now.

❤️ 3
cfleming05:11:27

I’ll take a look at that macro when I fix this.