I have a small application of Clojure and Pedestal that I grabbed from pedestal.io tutorial. It works fine in the terminal. When I open it in IntelliJ some "cannot be resolved" tips are appearing. And some code parts are getting a beige background.
I have Cursive plugin installed. The code is executed by boot repl
. Is any way to resolve full code by IntelliJ? If so, which settings?
Update
"Indexed Maven Repositories" field
Check your settings to make sure both Clojars and Maven repos are indexed:
Navigate to:
And make sure it looks like the above picture. If necessary, highlight both the Maven & Clojars repos and click "Update", then "OK" (you don't need to wait for it to finish as it is a background process).
Also, it is frequently helpful to do
Then it will resolve correctly:
Update #2
OK, I see you have a
boot
project. I have alein
project, and Cursive populated my list automatically (fromproject.clj
I assume). Two ways forward:Search the docs, SO, & Cursive mailing list for
boot
info. The Cursive author is very responsive to items on the mailing list:If the above doesn't work, maybe convert it to a
lein
project just to make Cursive/IntelliJ happy. You can still run it as aboot
project from the command line (or however you normally use boot).For more info, see also this question: IntelliJ IDEA: "Indexed Maven Repositories" list - how to add remote maven repository in this list?
and the reference: http://maven.apache.org/settings.html#Repositories
Update #3:
OK, just found this
boot
Cursive info, which looks good: https://github.com/boot-clj/boot/wiki/For-Cursive-Users