clj-suitable icon indicating copy to clipboard operation
clj-suitable copied to clipboard

`cider is not defined` in browser with shadow-cljs

Open hoclun-rigsep opened this issue 7 months ago • 1 comments

I'm trying to use suitable with neovim, shadow-cljs, and cider-nrepl.

My shadow-cljs.edn specifies suitable and cider-nrepl as deps and I have suitable.js-introspection as a preload.

the following occurs in the browser console when I attempt completion!

console.js:213 REPL Invoke Exception ReferenceError: cider is not defined
    at eval (eval at shadow$cljs$devtools$client$browser$global_eval (shadow.cljs.devtools.client.browser.js:1:1), <anonymous>:1:1)
    at eval (<anonymous>)
    at Object.shadow$cljs$devtools$client$browser$global_eval [as global_eval] (browser.cljs:159:5)
    at Object.eval [as shadow$cljs$devtools$client$shared$IHostSpecific$do_invoke$arity$5] (browser.cljs:208:19)
    at Object.shadow$cljs$devtools$client$shared$do_invoke [as do_invoke] (shared.cljs:23:15)
    at shadow$cljs$devtools$client$shared$handle_repl_invoke (shared.cljs:133:4)
    at Object.shadow$cljs$devtools$client$shared$interpret_action [as interpret_action] (shared.cljs:208:12)
    at Object.shadow$cljs$devtools$client$shared$interpret_actions [as interpret_actions] (shared.cljs:233:8)
    at eval (shared.cljs:285:15)
    at Object.shadow$remote$runtime$shared$process [as process] (shared.cljc:188:16)

hoclun-rigsep avatar Jun 19 '25 19:06 hoclun-rigsep

I cloned the project elsewhere and cannot reproduce this

hoclun-rigsep avatar Jun 19 '25 23:06 hoclun-rigsep