Fork me on GitHub
#cursive
<
2020-12-21
>
kenny22:12:21

How is Cursive supposed to work with :local/root deps? Didn't it used to automatically import local/root as a module so that the REPL would recognize file changes and automatically reload them when you run load file in repl?

cfleming00:12:08

Yes, I think that’s still the case. What is not working for you?

kenny00:12:40

It treats the local/root as an external dep.

kenny00:12:11

e.g., opens the tab in a tan color. If I try to edit, it pops open "Non-Project files protection"

kenny00:12:28

The tab's path is the local root directory too.

cfleming00:12:27

Do you have the dependency deps.edn file added as a deps project?

cfleming00:12:09

If you add that, does it help?

kenny00:12:38

Yes. It also adds it to .idea/clojure-deps.xml though. That file is in VCS. Not everyone wants my local project added to their IntelliJ setup (it also may not have the same path)

cfleming00:12:01

Oh, are you adding this via a user deps.edn or something?

kenny00:12:19

No. A project's deps.edn.

cfleming00:12:37

Ok, but that project isn’t checked into VCS?

kenny00:12:58

So I have 1 monorepo IntelliJ project. There's a bunch of modules. One of those modules uses :local/root to a project outside of the IntelliJ project root directory.

kenny00:12:08

It is but it's in a separate repository.

cfleming00:12:38

Hmm, I see. Could you file an issue for that and I’ll look at it?

kenny01:12:20

https://github.com/cursive-ide/cursive/issues/2474. Super busy today, so I hope that'll do it. Let me know if you need any other info.

cfleming01:12:41

Thanks, I’ll take a look in the next couple of days and let you know if I need more info.