cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
588 stars 7 forks source link

REPL not starting for Leiningen project including Java code #2633

Open JDurstberger opened 2 years ago

JDurstberger commented 2 years ago

Description

I am unable to start the REPL for a leiningen project which includes Java code. The error message is "Error Running ‘REPL’: Error executing Leiningen configuration"

Versions

OS: macOS Monterey 12.0.1 IntelliJ: IntelliJ IDEA 2021.3.1 (Ultimate Edition) Cursive: 1.12.1-2021.3 (also with 1.12.2-eap1-2021.3)

Steps to Reproduce

A simple project with one Clojure and one Java file is enough to reproduce this issue.

.
├── lein-issue.iml
├── project.clj
└── src
    ├── clojure
    │   └── leinissue
    │       └── core.clj
    └── java
        └── leinissue
            └── SomeClass.java

project.clj

(defproject lein-issue "0.0.0"

  :dependencies [[org.clojure/clojure "1.10.3"]]

  :java-source-paths ["src/java"]
  :source-paths ["src/clojure"])

core.clj

(ns leinissue.core)

(println "Hello, world!")

SomeClass.java

package leinissue;

public class SomeClass {
}
  1. Create files as described above
  2. Open project with IntelliJ
  3. Create new Local REPL configuration (all values as default values)
  4. Try running the REPL
fixedorgo commented 1 year ago

Unfortunately the issue is still reproducible. I will add more details:

2023-01-23 12:09:42,395 [ 335832] INFO - #c.i.e.r.ExecutionUtil - Error running 'REPL':
Error executing Leiningen configuration. com.intellij.execution.ExecutionException: Error executing Leiningen configuration. at cursive.repl.runner.LocalConfiguration.createLeinParameters(ReplRunConfigurations.kt:511) at cursive.repl.runner.LocalConfiguration.access$createLeinParameters(ReplRunConfigurations.kt:388) at cursive.repl.runner.LocalConfiguration$getRunProfileState$1.createDeferredParameters(ReplRunConfigurations.kt:427) at cursive.runner.DeferredCommandLineState.cacheDeferredParameters(Deferred.kt:72) at cursive.runner.AbstractDeferredRunner$execute$1.run(Deferred.kt:104) at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:423) at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:474) 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$13(CoreProgressManager.java:589) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:664) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:620) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:588) 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)


Please any workaround is very welcome. 🙏 
cursive-ide commented 9 months ago

My apologies for the very long time this has been outstanding. I've just tried to reproduce this, and I can't - the repro project works fine for me. Is this still a problem affecting anyone?

JDurstberger commented 8 months ago

I am no longer working on this project, so I am no longer affected by it. Not sure what the status for others is.