proto-repl
proto-repl copied to clipboard
is (require 'clojure.repl) in printVarDocumentation (and others) needed?
I'm currently running into an error when trying to printVarDocumentation from clojurescript in a cljs repl.
---- Compiler Warning on <cljs form> line:1 column:6 ----
Use of undeclared Var cljs-playground.core/require
1 (do (require 'clojure.repl) (clojure.repl/doc atom))
^---
---- Compiler Warning ----
#object[TypeError TypeError: cljs_playground.core.require is undefined]
I'm using a figwheel browser repl, clojure 1.8.0 and cljs 1.9.229 (basically just "lein new figwheel project").
it looks like it's trying to call a require function from my namespace not the global one. Intertingly running (doc atom) in the repl text editor works fine for cljs and clj.