Fork me on GitHub
#cursive
<
2022-03-01
>
Matthew Davidson (kingmob)04:03:56

Is there something special I have to do, to get vars resolved in a top-level deps tool file? I have a top-level build.clj file, and build is checked as a “Tool Alias” in the Clojure Deps tool window. Is there more to do to get Cursive to resolve, or is something wrong with my setup?

cfleming20:03:02

I found the way Cursive achieves this to be a little flakey at an IntelliJ level. If you close your project and re-open it, does that fix it?

cfleming22:03:30

(it’s not required to completely shut down the IDE to test this, just close the project, although completely restarting is one way to achieve it).

steffan23:03:42

I've experienced this too, closing and reopening the project (mostly) seems to fix it, and then project seems to stay OK.

cfleming23:03:44

Yes, that’s been my experience too. I suspect that it might still be flakey when adding new deps, for example, but I don’t do that often enough to be sure.

cfleming00:03:47

Hopefully if it is, reopening the project would help with that too - I expect so.

Matthew Davidson (kingmob)11:03:29

Closing/reopening didn’t help. I could try deleting the IDEA files/dirs and reimporting. I’m not sure if it’s related, but it wasn’t even identified as a deps.edn project at first. I was tearing my hair out for a while trying to locate the tools.deps window, but cycling the power fixed that, at least.

Matthew Davidson (kingmob)11:03:31

OK, I wiped the IntelliJ files, reimported, toggled checkmarks a bunch, opened and closed several times, and eventually it figured it out.