Fork me on GitHub
#cursive
<
2018-11-09
>
cfleming02:11:04

@dnolen 1.8.0-eap9 is out now, hopefully fixing those two deps issues. https://dev.clojure.org/jira/browse/TDEPS-106 is tracking the deps part.

wilkerlucio15:11:00

@cfleming hello, you have an idea about can be happen that sometimes cursive doesn't offer to change how to resolve a form?

wilkerlucio17:11:00

I'm having this with some spec things, the problems happens more often in cljs/cljc files

wilkerlucio17:11:06

I press the alt+return but nothing happens, and I can confirm its a macro

wilkerlucio17:11:39

and just to add more info, not sure if matters, but when I try to navigate to the macro it shows 2 places, and I think should be only one:

cfleming19:11:40

@U066U8JQJ Hmm, yeah, that can be a problem when a symbol resolves to two different places. That usually happens when you have two versions of the same lib attached (like Clojure 1.7 & 1.8). I don’t know why it would show it twice from the same lib. Is it defined once using declare or anything like that?

cfleming19:11:49

It is defined in cljc?

wilkerlucio19:11:14

yes, defined in cljc, I tried to find if I had multiple versions of it, but I don't, its a single thing coming from just my project

cfleming20:11:11

Is the usage in cljc as well?

wilkerlucio20:11:17

no, usage in cljs

cfleming20:11:35

Hmm, that’s very strange. Does invalidating caches fix it?

wilkerlucio20:11:45

didn't tried, let me do it

cfleming20:11:46

(sorry, I know that’s a pain in big projects)

wilkerlucio20:11:12

no worries, this case is aggravated to me because this lib is also using a custom way to define vars and functions (similar to Ghostwheel), so without the resolve feature it gets no completions

wilkerlucio20:11:01

ok, invalidated and restarted

wilkerlucio20:11:06

after indexing it continues doing the same

wilkerlucio20:11:14

another weird thing, if I navigate to the source, and try to do it from there, I get the menu from alt+enter, but when I select the option to resolver as... it doesn't do anything

wilkerlucio20:11:24

just tried with deps.edn to see if matter, but got the same results

wilkerlucio20:11:31

I'm not sure if happens for everyone, Tony Kay is using this same library and he told me it works fine for him, so please let me know in case you can't reproduce and need more info

cfleming00:11:15

Thanks, I will do

cfleming22:11:39

@U066U8JQJ So I spent some time debugging this, it’s actually a problem in Fulcro.

cfleming22:11:12

If you look in the fulcro-incubator jar, it has two copies of the source code, one at the root and one under /main.

cfleming22:11:52

Cursive finds and indexes both of them, and that’s why you’re getting two results.

wilkerlucio00:11:49

thanks for digging it up and the clarifications, Tony just fixed it there in the response to it 🙂