Fork me on GitHub
#cursive
<
2023-07-14
>
favila18:07:12

The latest cursive seems to not include “Aliases to enable by default” anymore? I have a project with many deps.edn files with “nil” coordinates which are supplied by an alias’s :default-deps. (It has :override-deps too). You basically can’t use these deps.edn files without the alias. Formerly I added this alias to the default and cursive evaluation of dependencies worked fine; now none of them work and I get the error Bad coordinate for library <some coordinate here>, expected map: nil

favila18:07:09

That alias I need is also strangely not listed on the “clojure deps” tool window under “Aliases”, even though other custom aliases are.

favila18:07:01

I downgraded to 1.12.8.2023.1 to fix.

cfleming00:07:38

So the main problem here is that the alias doesn’t appear. The “Aliases to enable by default” setting was just used for new projects, and controlled which aliases were selected when the project was set up. After that it had no effect (and in fact had been broken for a while: https://github.com/cursive-ide/cursive/issues/2569).

cfleming00:07:46

I’m not sure why that alias wouldn’t appear. I’ll see if I can reproduce based on your description - there is at least one problem I’m aware of at the moment with :override-deps but it doesn’t sound like this. If I can’t reproduce it you have some time, I’ll get you to create a small repo with a similar structure to your actual project that I can use to debug.

cfleming00:07:11

Ok, I’m not sure if it’s exactly your problem, but :default-deps is definitely not working correctly. I’ll investigate.

cfleming04:07:56

Ok, I know what the problem is. The issue is that this project can’t be synced without that alias set, and Cursive always tries to resolve a project in the default config as well as with the aliases set. As a workaround, if you set those deps to have a valid version instead of nil, things should work. They’ll still be overridden when you use the alias, of course.

cfleming23:07:34

This should be fixed in 1.13.1-eap1, out now.

thanks3 2