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!