Skip to content

evaluating function with REPL doesn't produce JS output #65

@phi1ipp

Description

@phi1ipp

Trying to follow modern-cljs tutorial, but found a difference in the output for cljs function evaluation (see output below)

[host@user] boot repl -c
java.lang.Exception: No namespace: reply.eval-modes.nrepl found
REPL-y 0.4.1, nREPL 0.4.5
Clojure 1.10.0
Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
        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=> (start-repl)
<< started Weasel server on ws://127.0.0.1:50186 >>
<< waiting for client to connect ... Connection is ws://localhost:50186
Writing boot_cljs_repl.cljs...
 connected! >>
To quit, type: :cljs/quit
nil
cljs.user=> (require '[modern-cljs.shopping :as shop] :reload
       #_=>                     '[domina.core :as dom] :reload
       #_=>                     '[domina.events :as evt] :reload)

cljs.user=> shop/calculate
#object[modern_cljs$shopping$calculate]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions