Fork me on GitHub
#cursive
<
2022-07-14
>
Jeffrey Bay20:07:51

i have a deps.edn src path to a relative dir outside my project... i guess that isn't supported by cursive/babashka?

Jeffrey Bay20:07:35

(all of the relevant namespaces/symbols are showing as unfound symbols even though the executable runs fine)

borkdude20:07:03

deps.edn doesn't support ../../ directories in :paths, but :local/root does

Jeffrey Bay20:07:42

not familiar with :local/root do you have docu you can point me to?

Jeffrey Bay20:07:54

or an example?

Jeffrey Bay20:07:22

(google has been unhelpful for that - local roots farm? 😆 )

Jeffrey Bay20:07:46

oh i think i found it

borkdude20:07:51

{my/other-project {:local/root "../../some-dir"}}

Jeffrey Bay20:07:09

nice - can even name it that way, that's actually better. thanks

Jeffrey Bay20:07:20

hmm, that doesn't seem to change anything

Jeffrey Bay20:07:13

i suspect the other project isn't configured right for using the deps structure to work

Jeffrey Bay20:07:27

it's really just "another src dir"

Jeffrey Bay20:07:06

it's possible it has to do with the naming - i'm not quite clear on what the name corresponds to in the deps.edn :deps key vs where it is being used in a :require keyword and what the connection across is. i guess i'll have to read more about deps

AJ Snow21:07:40

Is there any point to connecting a remote cursive nrepl to a headless leiningen nrepl server vs just spinning up a local repl in cursive with leiningen?

cfleming21:07:51

Not really. The only reasons would be if you can’t start the REPL inside Cursive for some reason (it can happen due to lein plugins), or you need to start it in some strange way. But those edge conditions aside, there’s no reason to do so.

AJ Snow21:07:54

awesome, thanks colin!

serioga19:07:21

@U012MJU8XNU remote repl can survive idea restart 🙂

👍 3