Fork me on GitHub
#cider
<
2023-03-02
>
michaeldrogalis17:03:46

Hi! I'm a bit stuck. I created a new Leiningen project and started Cider with cider-jack-in . The repl never seems to fully load, though. I see the prompt for user> , but it simply hangs no matter what I do. Relevant information: • Clojure 1.8.0 • Lein 2.10.0 • OpenJDK 14.0.1 • Cider 1.6.0 • Emacs 28.2 I enabled nrepl debug messages (Ill put that in this thread) and see a ClassNotFound exception, but Im a bit puzzled. Any thoughts?

michaeldrogalis17:03:53

(-->
  id         "1"
  op         "clone"
  time-stamp "2023-03-02 09:26:44.884140000"
)
(<--
  id          "1"
  session     "72b8c453-8101-4d09-b060-ab9d77709783"
  time-stamp  "2023-03-02 09:26:44.908802000"
  new-session "162c524d-0aea-4cdb-b469-f10c30ae730b"
  status      ("done")
)
(-->
  id         "2"
  op         "clone"
  time-stamp "2023-03-02 09:26:44.921373000"
)
(<--
  id          "2"
  session     "a0144c68-ba7f-4956-bbeb-4b26890dea85"
  time-stamp  "2023-03-02 09:26:44.923876000"
  new-session "5493615d-3e40-430f-8c33-5ce377d6a808"
  status      ("done")
)
(-->
  id         "3"
  op         "describe"
  session    "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp "2023-03-02 09:26:44.944951000"
)
(<--
  id         "3"
  session    "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp "2023-03-02 09:26:45.037688000"
  aux        (dict ...)
  ops        (dict ...)
  status     ("done")
  versions   (dict ...)
)
(-->
  id                                 "4"
  op                                 "eval"
  session                            "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp                         "2023-03-02 09:26:45.052800000"
  code                               "(when-let [requires (resolve 'clojure.main/repl-requires)]
 ..."
  column                             1
  file                               "*cider-repl scratch/nrepl-test:localhost:64578(clj)*"
  inhibit-cider-middleware           "true"
  line                               43
  nrepl.middleware.print/buffer-size 4096
  nrepl.middleware.print/options     (dict ...)
  nrepl.middleware.print/print       "cider.nrepl.pprint/pprint"
  nrepl.middleware.print/quota       1048576
  nrepl.middleware.print/stream?     "1"
)
(<--
  id         "4"
  session    "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp "2023-03-02 09:26:45.246975000"
  value      "nil"
)
(<--
  id         "4"
  session    "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp "2023-03-02 09:26:45.247273000"
  ns         "user"
)
(<--
  id         "4"
  session    "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp "2023-03-02 09:26:45.254776000"
  status     ("done")
)
(-->
  id         "5"
  op         "out-subscribe"
  session    "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp "2023-03-02 09:26:45.255751000"
)
(-->
  id                                 "6"
  op                                 "init-debugger"
  session                            "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp                         "2023-03-02 09:26:45.256197000"
  nrepl.middleware.print/buffer-size 4096
  nrepl.middleware.print/options     (dict ...)
  nrepl.middleware.print/print       "cider.nrepl.pprint/pprint"
  nrepl.middleware.print/quota       1048576
  nrepl.middleware.print/stream?     "1"
)
(-->
  id         "7"
  op         "eval"
  session    "5493615d-3e40-430f-8c33-5ce377d6a808"
  time-stamp "2023-03-02 09:26:45.256722000"
  code       "cljs.core/demunge"
)
(<--
  id            "5"
  session       "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp    "2023-03-02 09:26:45.348556000"
  out-subscribe "162c524d-0aea-4cdb-b469-f10c30ae730b"
  status        ("done")
)
(<--
  id         "7"
  session    "5493615d-3e40-430f-8c33-5ce377d6a808"
  time-stamp "2023-03-02 09:26:47.384644000"
  err        "CompilerException java.lang.ClassNotFoundException: cljs.core, compiling:(/private/var/folders/48/g78fw4lx1xx1tgvxn593vncc0000gn/T/form-init9308809819379948220.clj:1:7703) 
"
)
(<--
  id         "7"
  session    "5493615d-3e40-430f-8c33-5ce377d6a808"
  time-stamp "2023-03-02 09:26:47.385013000"
  ex         "class clojure.lang.Compiler$CompilerException"
  root-ex    "class clojure.lang.Compiler$CompilerException"
  status     ("eval-error")
)
(<--
  id         "7"
  session    "5493615d-3e40-430f-8c33-5ce377d6a808"
  time-stamp "2023-03-02 09:26:47.386325000"
  status     ("done")
)
(<--
  id                 "7"
  session            "5493615d-3e40-430f-8c33-5ce377d6a808"
  time-stamp         "2023-03-02 09:26:47.951987000"
  changed-namespaces (dict ...)
  repl-type          "clj"
  status             ("state")
)
(-->
  id         "8"
  op         "eldoc"
  session    "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp "2023-03-02 09:30:57.790151000"
  ns         "user"
  sym        "C-q>"
)
(<--
  id         "8"
  session    "162c524d-0aea-4cdb-b469-f10c30ae730b"
  time-stamp "2023-03-02 09:30:57.830066000"
  status     ("done" "no-eldoc")
)

michaeldrogalis17:03:08

The strange part is that I don't have ClojureScript as a dependency in this project - only Clojure. Basically a blank Lein project.

michaeldrogalis18:03:24

Doh, it's https://github.com/clojure-emacs/cider/issues/3288. Problem solved. Thanks for Cider, it's great to see how far it's come!

michaeldrogalis19:03:43

Is dynamic font locking supposed to work with ClojureScript? It seems to work with Clojure, but not Cljs - even for cljs.core functions.