Fork me on GitHub
#cursive
<
2017-07-13
>
rauh07:07:47

PSA: If you use CLJS with fighweel in your project you might've noticed that "jump to definition" will jump into a weird figwheel-helper-deploy.js file. Eg when you jump to definition at (goog/getUid {}). You can exclude that JS file from indexing in "Open Module settings" (right click on your project), then Libraries -> figwheel-sidecar -> exclude -> choose compiled-utils.

cfleming07:07:36

@rauh Interesting, thanks - I might just exclude that file automatically in Cursive

rauh07:07:06

@cfleming That'd be great šŸ™‚

tony.kay18:07:55

So, a few days ago the clojure resultion stopped working for me. One of my macros was acting as a defn, and Cursive was ā€œdoing the right thingā€ when I set it to resolve that as a defn. Now it isnā€™t working anymore, but the resolution is still set when I look at preferences. I tried invalidating cache/restart, clearing out the IDEA files and re-importing. No luck.

tony.kay18:07:39

Ah, I see an open issue on github

cfleming19:07:39

@tony.kay Hmm, which issue looks like yours?

cfleming19:07:03

Oh, I see youā€™ve commented on one.

tony.kay19:07:50

@cfleming Yeah, Iā€™m having a number of issues. At the moment Iā€™m trying an old release from Jan 1, and that isnā€™t working for me either. Iā€™m going to try an old project and see if there isnā€™t something weird about what Iā€™m working on. Iā€™ve lost all ability to affect resolution of macros

tony.kay19:07:14

I can give you a github project to look at if you care to

cfleming19:07:34

Thatā€™s very strange - the issue is Iā€™ve never managed to reproduce this. If you could provide a repro project that would be excellent.

tony.kay19:07:19

import, then open src/test/fulcro/client/mutations_spec.cljs

tony.kay19:07:29

there is a macro called defmutation being used there

tony.kay19:07:53

wonā€™t resolve

cfleming19:07:55

Ok, and you usually resolve that as defn?

cfleming19:07:09

Ok, Iā€™ll take a look when I get in.

tony.kay19:07:13

ok, thanks!

cfleming22:07:46

@tony.kay ^^ (not sure if title mentions ping you or not)

tony.kay22:07:20

so, it wonā€™t even offer it to me šŸ˜ž

cfleming22:07:38

Thatā€™s not what youā€™re seeing?

tony.kay22:07:26

it used to be. I donā€™t get the offer to resolve as defnā€¦Iā€™ve cleared all of them in prefs, but it still wonā€™t reoffer

cfleming22:07:49

If you navigate from the defmutation symbol, does that take you to the macro definition?

hlship22:07:19

Oh yea, the problems with qualified dependencies was fixed in 1.6.0 Thanks!

tony.kay22:07:19

just a secā€¦opening it

tony.kay22:07:56

yes, it does take me to the macro

tony.kay22:07:17

but sample shows up in yellow

cfleming22:07:35

All of a sudden, Iā€™m seeing:

cfleming22:07:55

Iā€™m going to try an invalidate, one sec

cfleming22:07:52

Thatā€™s going to take a while, back with a cup of tea in a moment

tony.kay22:07:59

Iā€™ve gone as far as re-installing the plugin, clearing ~/Library (everything to do with IntelliJ), and git clean -xfd on the repo to clear out all IDE files.

cfleming22:07:30

Ok, this is a UI problem

cfleming22:07:57

Instead of opening the menu to the right, you have to select the Resolveā€¦ asā€¦ item with enter

tony.kay22:07:54

oh, interesting

cfleming22:07:28

For some reason, that confuses a lot of people (including me, from time to time), I think itā€™s the ā€¦ at the end of the menu item.

tony.kay22:07:38

weird that it had stopped working when I had it defined, though

cfleming22:07:45

Although looking at the popup, JetBrains do the same for the Typo inspection.

tony.kay22:07:24

let me look at the other project that was having problemsā€¦

tony.kay22:07:16

yeah, seems ok now

cfleming22:07:08

Iā€™m not sure how to make it clearer in that popup what the user needs to do.

tony.kay22:07:20

So, the resolution had stopped working at some point with the resolution still in prefs, but now that Iā€™ve reinstalled everything hard to know what was causing that

cfleming22:07:40

Yeah, for sure. Ok, well let me know if you have more problems.

tony.kay22:07:49

thanks, I appreciate your time

cfleming22:07:03

If you see it again let me know before you wipe everything, and weā€™ll see if we can debug it.

cfleming22:07:17

@hlship The copy reference thing? Yes indeed!