Fork me on GitHub
#calva
<
2023-02-15
>
yedi22:02:29

hey yall, I'm trying to get Calva to properly start my deps.edn REPL. however, the deps in my project are dependent on alias ordering. When choosing aliases in Calva, it composes the repl command with an incorrect alias order, causing the repl to fail to start. anyone know of a way around this?

Alex Miller (Clojure team)22:02:52

What causes the ordering constraint?

Alex Miller (Clojure team)22:02:12

Classpath order of deps should be independent of alias order, unless you are providing the same top level dep at different versions, and you may then be able to solve this by using a different alias attribute like :override-deps

👀 2
🙏 2
yedi22:02:49

Ah yes! we had conflicting versions of nrepl. Thanks for the help

pez06:02:06

Sounds like there very seldom should be a case where alias ordering is needed? But for the record, the way to break out of Jack-in limitations like this is to use the command Calva: Copy Jack-in Command Line, start the repl from the terminal (editing the command line as necessary), and then connect Calva to the repl. I wonder if there is anything we can do in the Ux to make this easier to figure out. Jack-in gets to be a bit of trap in some situations...

yedi15:02:00

yea, connecting to an externally started REPL got us around the problem. But still wanted to raise the issue in case there was something else we were missing, and turns out there was.