cursive

Issues at: https://git.io/cursive-issues
ikitommi 2020-08-24T08:58:03.012200Z

I imported a shared (deps-based, via :local/root) library as a module into an existsing deps-project. It seems that the paths are not resolved correctly for that module if the paths are defined under a alias, e.g.

{:aliases {:backend {:extra-paths ["src/clj"]}}}
If I put all the paths into top :paths it works correctly.
{:paths ["src/clj" "resources"]}
How can I work with deps-modules with paths under aliases?

Conor 2020-08-24T09:22:00.012300Z

I'm having some trouble refreshing deps-based projects using Cursive - the error I get is 'Command failed when executing /usr/local/bin/clojure'. Going in to the settings, I can see it's pointing to that path but it seems like it can't correctly pick up the clojure executable there as it also has 'Command failed' just under it rather than the clojure version. I can run clojure using the terminal - what am I missing here?

cfleming 2020-08-24T10:59:15.012600Z

This should do it: https://cursive-ide.com/userguide/deps.html#working-with-aliases

cfleming 2020-08-24T11:01:13.012900Z

Do you have anything in your log saying Output from <command> where command is probably /usr/local/bin/clojure? Help->Show log in Finder/Explorer/whatever

Conor 2020-08-24T11:04:35.013100Z

#cursive.deps.DepsSettings - Output from /usr/local/bin/clojure -Sdescribe: Couldn't find 'java'. Please set JAVA_HOME.

Conor 2020-08-24T11:06:03.013300Z

Oddly, I can now use Clojure directly and it appears to work OK

cfleming 2020-08-24T11:11:26.013500Z

Do you mean use tools.deps directly?

Conor 2020-08-24T11:12:17.013700Z

No, I switched to that temporarily, which worked. I mean that I can select the 'Use CLI tools' radio button and it now doesn't display the error

cfleming 2020-08-24T11:13:47.013900Z

That is super weird, but I’ll take it 🙂

Conor 2020-08-24T11:15:00.014100Z

I did a bunch of different things (installed tools.deps, installed lein via apt, restarted IntelliJ), so not sure which one was the winner. At least it works! 😄

ikitommi 2020-08-24T14:17:48.014400Z

Can’t figure out how to do that. In the Deps section I can see both modules, but only 1 set of aliases, which are from the main project. I don’t know how to enable :dev profile just for the added module.

ikitommi 2020-08-24T14:18:28.014600Z

Deps looks like (`common`) is the module I imported, need to apply it’s :dev alias.

ikitommi 2020-08-24T14:19:16.015400Z

setting the paths to top-level resolved the issue:

ikitommi 2020-08-24T14:20:37.016100Z

this fails:

ikitommi 2020-08-24T14:20:55.016600Z

with this:

ikitommi 2020-08-24T14:21:52.017Z

and the actual the code is under src/clj.

ikitommi 2020-08-24T14:23:59.017300Z

resolved: removing the src from sources makes it work. so, having src at top-level and src/clj under alias made it to fail.