Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc and source commands not working in repl. #41

Closed
currentoor opened this issue Aug 23, 2015 · 2 comments
Closed

Doc and source commands not working in repl. #41

currentoor opened this issue Aug 23, 2015 · 2 comments

Comments

@currentoor
Copy link

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
Copy link
Owner

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

@crisptrutski
Copy link
Collaborator

Followed these instructions exactly and seems to work perfectly now 😄

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants