gpt4 book ai didi

intellij-idea - IntelliJ/Cursive 意外问题

转载 作者:行者123 更新时间:2023-12-01 05:53:48 25 4
gpt4 key购买 nike

有时我尝试在 IntelliJ 中运行 Clojure 程序,但出现以下错误:

(.deleteOnExit (java.io.File. "/home/matan.bl/.IdeaIC15/system/tmp/form-init7886362698780123516.clj"))
(do (set! *warn-on-reflection* nil)
(set! *warn-on-reflection* nil)
nil
(clojure.core/doseq [namespace1387 (quote
(sparkling.serialization
sparkling.destructuring))]
(clojure.core/binding [clojure.core/*out* clojure.core/*err*]
(clojure.core/println "Compiling" namespace1387))
(try
(clojure.core/compile namespace1387)
(catch java.lang.Throwable
t__8048__auto__ (clojure.core/binding [clojure.core/*out*
clojure.core/*err*]
(clojure.core/println (.getMessage
t__8048__auto__)))
(throw t__8048__auto__))))
(do nil
(try
(clojure.core/require
(quote clojure.tools.nrepl.server))
(catch
java.lang.Throwable t__11819__auto__
(clojure.core/println "Error loading"
(clojure.core/str (quote clojure.tools.nrepl.server) ":")
(clojure.core/or (.getMessage t__11819__auto__)
(clojure.core/type
t__11819__auto__)))))
(try (clojure.core/require (quote complete.core))
(catch java.lang.Throwable t__11819__auto__
(clojure.core/println "Error loading"
(clojure.core/str
(quote
complete.core) ":")
(clojure.core/or (.getMessage t__11819__auto__)
(clojure.core/type t__11819__auto__)))))
nil)
(clojure.core/let
[server__11814__auto__ (clojure.tools.nrepl.server/start-server
:bind
"127.0.0.1" :port 0 :ack-port 42520 :handler
(clojure.tools.nrepl.server/default-handler))
port__11815__auto__ (:port server__11814__auto__)
repl-port-file__11816__auto__ (clojure.core/apply clojure.java.io/file
["/home/matan.bl/projects/af_sparkling-river"
".nrepl-port"])
legacy-repl-port__11817__auto__ (if (.exists (clojure.java.io/file
"/home/matan.bl/projects/af_sparkling- river/target"))
(clojure.java.io/file
"/home/matan.bl/projects/af_sparkling-river/target" "repl-port"))]
(clojure.core/when true
(clojure.core/println
"nREPL server started on port"
port__11815__auto__
"on host"
"127.0.0.1"
(clojure.core/str "- nrepl://" "127.0.0.1" ":" port__11815__auto__)))
(clojure.core/spit
(clojure.core/doto repl-port-file__11816__auto__ .deleteOnExit)
port__11815__auto__)
(clojure.core/when
legacy-repl-port__11817__auto__
(clojure.core/spit (clojure.core/doto
legacy-repl-port__11817__auto__
.deleteOnExit)
port__11815__auto__))
(clojure.core/deref (clojure.core/promise))))

您是否知道此错误的含义以及如何解决?

最佳答案

我在打字的时候遇到过这样的错误

(-main ....) 

进入 Cursive-clojure 中的 REPL,无需先点击在 switch repl to namespace 按钮上。还要确保您在同一菜单中选择了“加载文件”。

关于intellij-idea - IntelliJ/Cursive 意外问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35293085/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com