Fork me on GitHub
#cursive
<
2024-04-14
>
p-himik06:04:37

It seems that "Find Usages" for a namespace that's defined in a CLJC searches only in other CLJC files. Would be nice if it also included CLJS and CLJ files.

cfleming02:04:45

I’ll check this, thanks.

p-himik06:04:11

Another thing - renaming a namespace alias in the :require form for some reason searches something in other files, which can take some time.

cfleming02:04:01

I’ll check this too.

onetom16:04:28

i like how writing a namespace alias in a file, which hasn't declared that alias, will trigger Cursive to find what's the corresponding namespace in other namespaces and require it for me with the same NS alias. i guess, some of this ns-alias->ns resolution code is reused in the "ns-alias rename" feature too

Shantanu Kumar16:04:22

Hi, is "named" multi-method not supported in Cursive? (Or am I missing something?) When I specify a name, Cursive highlights the name as error saying "cannot be resolved". Example:

(defmulti foo (fn [op & args] op))
(defmethod foo :bar
  foo-bar [_ & args]
  ,,,)
See the name foo-bar above where I get the error.

p-himik19:04:40

Cursive thinks that it's an error, but you can safely ignore it.

cfleming02:04:20

That looks like a bug, I’ll get that fixed.

👍 1
tony.kay16:05:58

Any updates on this? I’m on the latest IntelliJ and cursive EAP. Still isn’t detecting correctly.

cfleming23:05:05

I haven’t fixed this yet sorry, but will do so for the next EAP.

❤️ 1
p-himik19:04:29

An another weird thing that has been bothering me for some time:

(defmulti f identity)

(f 1)
Putting the text cursor over f in the call form highlights both fs. But putting the text cursor over f in the defmulti form highlights f only in that form, not the call. It's similar to how "Find Usages" works with multimethods.

cfleming02:04:41

Ok, I’ll check that.