This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-22
Channels
- # ai (1)
- # announcements (1)
- # babashka (9)
- # beginners (18)
- # calva (19)
- # clerk (136)
- # clj-http (3)
- # clj-kondo (13)
- # cljs-dev (166)
- # clojure (39)
- # clojure-europe (133)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (12)
- # clr (1)
- # community-development (6)
- # conjure (8)
- # cursive (13)
- # data-science (1)
- # datomic (26)
- # events (5)
- # fulcro (12)
- # gratitude (3)
- # honeysql (9)
- # hyperfiddle (33)
- # introduce-yourself (6)
- # kaocha (1)
- # lambdaisland (5)
- # malli (4)
- # off-topic (3)
- # rdf (4)
- # re-frame (3)
- # releases (3)
- # scittle (11)
- # specter (2)
- # sql (4)
- # tools-deps (4)
- # vim (10)
Hi, There’s the pesky Suppressed exit
REPL problem that comes up from time to time here and in github. In my case I’m using a macbook M1 and installed java through https://sdkman.io/. The problem happens on mixed clj/java projects and the only thing that solved it (so far) for me was installing java with brew install openjdk@17
in addition to the sdkman installation.
I’d like to zero-in on a better solution, for example configure intellij/cursive correctly instead of having two completely different java installations.
Some intellij logs that pointed in the right direction are:
2023-05-21 19:07:15,066 [2104693] INFO - STDERR - The operation couldn't be completed. Unable to locate a Java Runtime.
2023-05-21 19:07:15,066 [2104693] INFO - STDERR - Please visit for information on installing Java.
2023-05-21 19:07:15,066 [2104693] INFO - STDERR -
2023-05-21 19:07:15,072 [2104699] WARN - #c.s.IndicatorBridge - Exit called in Leiningen:
java.lang.RuntimeException: null
at cursive.leiningen.project$add_standard_hooks_BANG_$fn__2318$fn__2319.invoke (project.clj:514)
...
2023-05-21 19:07:15,073 [2104700] INFO - #c.i.e.r.ExecutionUtil - Error running 'myproject':<br>Error executing Leiningen configuration.
com.intellij.execution.ExecutionException: Error executing Leiningen configuration.
at cursive.repl.runner.LocalConfiguration.createLeinParameters(ReplRunConfigurations.kt:516)
So this is something in Leiningen that’s trying to call System/exit, or the lein internal wrapper of it. Which lein plugins do you use in this project?
Just updating with a better solution thanks to @U0567Q30W: add :java-cmd
to project.clj (or ~/.lein/profiles.clj
(under :user)):
:java-cmd "/Users/<myuser>/.sdkman/candidates/java/current/bin/java"
Hi - I am behind a firewall and cannot download clojuredocs via cursive. Is there a way to use clojuredocs-support by manually downloading https://clojuredocs.org/clojuredocs-export.json? I think that used to work quite some time ago. Where is clojuredocs-export.json currently placed by cursive?
@U0567Q30W I would like to know how to do this as well. Is there a way?
Hi, sorry for the delay replying to this. You want the system folder from this page: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#system-directory. So in my case on my Mac, it’s ~/Library/Caches/JetBrains/IntelliJIdea2023.2.