jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
565 stars 50 forks source link

is (require 'clojure.repl) in printVarDocumentation (and others) needed? #240

Open boogie666 opened 7 years ago

boogie666 commented 7 years ago

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.