tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

fireplace#info barfs on shadow-cljs #366

Open dhleong opened 5 years ago

dhleong commented 5 years ago

Seems to be due to eg clojure.repl/special-doc not existing at the cljs repl. Deferring var resolution via ((resolve 'clojure.repl/special-doc) sym) instead of (#'clojure.repl/special-doc sym) seems to fix it for the common case, but of course would still explode if it was actually a special-symbol, for example...

Example error when using K:

Screen Shot 2019-08-19 at 9 38 41 PM
tpope commented 5 years ago

I consider cider-nrepl mandatory for cljs. I think the appropriate fix is a better error message.

dhleong commented 5 years ago

Works for me. I posted this pretty late in a long bus trip and didn't think about not having cider-nrepl set up on that laptop.