Fork me on GitHub
#cursive
<
2020-06-26
>
lsenjov04:06:43

Trying out Cursive, I’m having a somewhat weird error to do with package resolution

Errors during project resolution
				The following errors were found during project resolve:
				/Users/ ... /deps.edn:
				/.m2/repository/buddy/buddy-core/1.6.0/buddy-core-1.6.0.pom.part.lock (No such file or directory)
It works perfectly fine on linux, but running on MacOS gets stuck on this. I’m also getting the “no modules containing clojure.main found” error when trying to set up a run configuration. Happens with both local tools and using tools.deps directly. As something possibly related, my deps aliases don’t appear to be working. Source paths from aliases I’ve apparently included don’t appear to have any effect.

cfleming04:06:33

That package error is very weird. Do you get that using deps on the command line in that package?

cfleming04:06:04

The “No modules…” error is probably because your project didn’t sync correctly due to the first error.

lsenjov05:06:02

It works fine running with deps, it’s just cursive/intellij that seems to be having the issue

salam07:06:03

> /.m2/repository/buddy/buddy-core/1.6.0/buddy-core-1.6.0.pom.part.lock (No such file or directory) unless you redacted some portions of the path above, it indicates that the .m2 directory is under the / (root) directory (it's usually under ~, i.e., the path should have been something like ~/.m2/repository/buddy/buddy-core/1.6.0/buddy-core-1.6.0.pom.part.lock) and whatever process that's resolving the maven artifacts is having access permission issues with that directory.

lsenjov23:06:32

Hmmmm, it seems like using a relative :mvn/local-repo doesn’t work on cursive on mac

lsenjov23:06:07

That seems to have fixed the problems though, thanks!

cfleming02:06:59

What did your local-repo declaration look like? I can fix that.

lsenjov07:06:41

:mvn/local-repo ".m2/repository"

cfleming09:06:14

Presumably you intended that to be relative to the directory the deps.edn file is in, correct?