Fork me on GitHub
#cider
<
2019-09-19
>
vinurs15:09:10

hello, i use shadow-cljs 2.8.53, and in emacs cider-connect-cljs [nREPL] Establishing direct connection to localhost:53629 ... [nREPL] Direct connection to localhost:53629 established error in process filter: user-error: The shadow-cljs ClojureScript REPL is not available error in process filter: The shadow-cljs ClojureScript REPL is not available

thheller15:09:00

(defun cider-check-shadow-cljs-requirements ()
  "Check whether we can start a shadow-cljs REPL."
  (unless (cider-library-present-p "shadow.repl")
    (user-error "The shadow-cljs ClojureScript REPL is not available")))

thheller15:09:20

can someone update that check? shadow.repl was never the implementation namespace 😛

thheller15:09:28

better test for shadow.cljs.devtools.server.api or so

thheller15:09:50

@haiyuan.vinurs as a temp fix you can create (ns shadow.repl) in your project I guess

thheller15:09:11

just src/shadow/repl.clj or whatever your source path is

dpsutton15:09:51

These in general should be warnings somewhere. These are approximations and should guide people when things fail but not fail the process on their own

dpsutton15:09:24

I would just edit the source of the function and remove the body. Maybe I can change all those user errors to be warnings or stings spit out in the repl buffer