Fork me on GitHub
#cursive
<
2022-08-22
>
danielcompton01:08:24

I got this error when trying to report crashes inside IntelliJ. Build #IU-221.5787.30, built on June 1, 2022 Cursive: 1.12.4-2022.1

imre09:08:14

I had that several times in the past year or so

tengstrand15:08:00

I just got my new MacBook Pro with M1 chip. The problem is that I can't set up a clojure.deps (deps.edn) project. When I try to, I get an IDEA error + that I can't see the "Clojure Deps" tool bar on the right side.

tengstrand15:08:38

This is how the exception/error message looks like: com.intellij.execution.ExecutionException: Cannot execute: Clojure command not configured at cursive.deps.DepsProjectsManager$Companion.classpath(DepsSupport.kt:145) at cursive.deps.DepsProjectsManager$Companion.resourceConfigFile(DepsSupport.kt:120) at cursive.deps.DepsProjectsManager$Companion.configFiles(DepsSupport.kt:76) at cursive.deps.DepsProjectDetails.doGetDetails(Project.kt:173) at cursive.deps.DepsProjectDetails.doGetDetails(Project.kt:87) at cursive.build.BuildSystemProjectDetails.getProjectDetails(BuildSystem.kt:45) at cursive.build.BuildSystemProjectsManager.reimportAllProjects$lambda-3$lambda-2(BuildSystemManager.kt:149) at cursive.build.BuildSystemUtil$runTask$1$1.run(BuildSystemUtil.kt:83) at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:442) at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$5(CoreProgressManager.java:493) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) at java.base/java.lang.Thread.run(Thread.java:833)

imre15:08:35

Clojure command not configured

imre15:08:48

have you got it installed and set up in idea preferences?

imre15:08:56

I’m on a m1 without problems

tengstrand15:08:50

Ahh, that’s probably the problem! Thanks!

tengstrand15:08:23

Yeah, now I remember, that’s in the “Install Cursive” instructions!

imre15:08:33

👍:skin-tone-3:

tengstrand16:08:36

Yes, now everything works. Next time I will look closer to the error message! 🙂

cfleming00:08:00

Yeah, homebrew changes location on the M1 for some reason.

Takis_19:08:00

i want to lein clean to delete the target before run, can i put somewhere this? or edit the project.clj to delete the target before new compile?

Takis_19:08:18

i have some aot and doesnt work, unless i delete the target by hand

Takis_20:08:07

i am asking how to delete the target before run, with intellidjea, if no other way i can run it as bash script

Takis_21:08:55

for now i made it shell script and its fine, but i was wondering if i can do delete the target, while running it as clojure application with intellijdea