martinklepsch / tenzing

⚡️ Clojurescript application template using Boot
Eclipse Public License 1.0
404 stars 39 forks source link

Doc and source commands not working in repl. #41

Closed currentoor closed 8 years ago

currentoor commented 9 years ago

I created a brand new app with lein new tenzing myapp +reagent +divshot. Started it with boot dev and it runs correctly in the browser.

Then I setup the browser repl with boot repl --client and ran (start-repl) but doc and source do not work.

REPL-y 0.3.5, nREPL 0.2.8
Clojure 1.7.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_25-b17
        Exit: Control+D or (exit) or (quit)
    Commands: (user/help)
        Docs: (doc function-name-here)
              (find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
      Source: (source function-name-here)
     Javadoc: (javadoc java-object-or-class-here)
    Examples from clojuredocs.org: [clojuredocs or cdoc]
              (user/clojuredocs name-here)
              (user/clojuredocs "ns-here" "name-here")
boot.user=> (doc first)
-------------------------
clojure.core/first
([coll])
  Returns the first item in the collection. Calls seq on its
    argument. If coll is nil, returns nil.
nil
boot.user=> (start-repl)
Writing boot_cljs_repl.cljs...
<< Started Weasel server on ws://127.0.0.1:0 >>
Type `:cljs/quit` to stop the ClojureScript REPL
Writing boot_cljs_repl.cljs...
nil
cljs.user=> (doc first)
WARNING: Use of undeclared Var cljs.user/doc at line 1 <cljs repl>

clojure.lang.ExceptionInfo: #object[TypeError TypeError: Cannot read property 'call' of undefined]
cljs.user=> 
martinklepsch commented 9 years ago

I think this should be reported to https://github.com/adzerk-oss/boot-cljs-repl directly.

crisptrutski commented 8 years ago

Followed these instructions exactly and seems to work perfectly now :smile:

Perhaps follow boot show -u to upgrade your deps if this is still affecting you @currentoor