简体   繁体   中英

New Cursive deps module - “Clojure jar not attached to this module”

In Cursive with a new deps module (within an existing project which uses lein) I'm getting:

"Run configuration error: The Clojure jar is not attached to this module"

How do I attach it?

Relatedly, none of the clojure core functions are recognised by the editor when the file is open (I mean for the editor's code analysis purposes).

But, when I run -main in that new module with clj directly from the terminal, everything works fine.

Solved - open Project Structure and look at the bottom of the left panel in the window that opens, below Platform SDKs, there's a discrete entry called "Problems". If you click that it offers to Fix and adds clojure, spec, etc. as dependencies of the new deps module.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM