Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.logic by
edited by

With the most recent commit to core.logic (https://github.com/clojure/core.logic/commit/bd325069d9ded1612515d15ad578d588094a47f7), lein deps and lein classpath do not successfully complete here.

Commenting out a portion of project.clj having to do with cider-nrepl leads both to at least finish.

When I asked on slack's #core.logic about this:

commenting out the [cider/cider-nrepl "0.8.1"] portion of project.clj alows those commands to complete...

dpsutton responded with:

that's over four years old and from a time when cider wouldn't auto-inject its own dependencies. it should be removed

I don't know if it's an appropriate change, but it seems like something should change.

It wasn't clear to me where to report this, but was advised by dpsutton and seancorfield to try here.


Truncated example output (this form refused the full content) for lein deps below.

$ lein deps
clojure.lang.Compiler$CompilerException: Syntax error compiling at (cider/nrepl.clj:1:1).
#:clojure.error{:phase :compile-syntax-check, :line 1, :column 1, :source "cider/nrepl.clj"}
 at clojure.lang.Compiler.load (Compiler.java:7647)
    clojure.lang.RT.loadResourceScript (RT.java:381)
    clojure.lang.RT.loadResourceScript (RT.java:372)
    clojure.lang.RT.load (RT.java:463)
    clojure.lang.RT.load (RT.java:428)
    clojure.core$load$fn__6824.invoke (core.clj:6126)
    clojure.core$load.invokeStatic (core.clj:6125)
    clojure.core$load.doInvoke (core.clj:6109)
    clojure.lang.RestFn.invoke (RestFn.java:408)
    clojure.core$load_one.invokeStatic (core.clj:5908)
    clojure.core$load_one.invoke (core.clj:5903)
    clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
    clojure.core$load_lib.invokeStatic (core.clj:5947)
    clojure.core$load_lib.doInvoke (core.clj:5928)
    clojure.lang.RestFn.applyTo (RestFn.java:142)
    clojure.core$apply.invokeStatic (core.clj:667)
    clojure.core$load_libs.invokeStatic (core.clj:5985)
    clojure.core$load_libs.doInvoke (core.clj:5969)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invokeStatic (core.clj:667)
    clojure.core$require.invokeStatic (core.clj:6007)
    clojure.core$require.doInvoke (core.clj:6007)
    clojure.lang.RestFn.invoke (RestFn.java:421)

1 Answer

+1 vote
by
selected by
 
Best answer

The project.clj file for this project is not used, which is likely why it's out of date and not working This is a Maven project, and the pom.xml is the canonical project file here.

I'm happy to fix the project.clj, but it's really not the way to run stuff for this project.

by
project.clj sync'ed up to pom.xml deps and pushed
by
Thanks!

I needed to be able to get the project's classpath though to index its code -- was there a way to do that without lein?
by
Sure, you can do `mvn -q dependency:build-classpath -Dmdep.outputFile=classpath.txt` to put it in a file.
by
Ah, great!  Thanks a lot.
...