Liking cljdoc? Tell your friends :D

cider.nrepl.middleware.util.cljs


cljs-env-providersclj

Ordered fns of a message that return a deref-able ClojureScript compiler env for the session, or nil. First non-nil wins.

Piggieback is tried first so existing setups behave exactly as before; the shadow-cljs provider is a fallback for a pure shadow setup that doesn't load piggieback. New backends (figwheel, weasel, ...) plug in here. Rebindable for testing.

Ordered fns of a message that return a deref-able ClojureScript compiler env
for the session, or nil. First non-nil wins.

Piggieback is tried first so existing setups behave exactly as before; the
shadow-cljs provider is a fallback for a pure shadow setup that doesn't load
piggieback. New backends (figwheel, weasel, ...) plug in here. Rebindable for
testing.
sourceraw docstring

cljs-response-valueclj

(cljs-response-value response)

Returns the :value slot of an eval response from piggieback as a Clojure value.

Returns the :value slot of an eval response from piggieback as a Clojure
value.
sourceraw docstring

expects-piggiebackcljdeprecated

(expects-piggieback descriptor)

Deprecated: returns the descriptor unchanged.

Deprecated: returns the descriptor unchanged.
sourceraw docstring

grab-cljs-envclj

(grab-cljs-env msg)

Returns the ClojureScript compiler environment for the session's running REPL (piggieback or shadow-cljs), or nil when no ClojureScript REPL is active.

Returns the ClojureScript compiler environment for the session's running REPL
(piggieback or shadow-cljs), or nil when no ClojureScript REPL is active.
sourceraw docstring

grab-cljs-env*clj

(grab-cljs-env* msg)
source

maybe-add-piggiebackclj

(maybe-add-piggieback coll)

If piggieback is loaded, conj piggieback mw var to the provided collection.

If piggieback is loaded, conj piggieback mw var to the provided collection.
sourceraw docstring

requires-piggiebackcljdeprecated

(requires-piggieback descriptor)

Deprecated: returns the descriptor unchanged.

Deprecated: returns the descriptor unchanged.
sourceraw docstring

respond-clojure-onlyclj

(respond-clojure-only {:keys [op] :as msg})

Replies to msg signaling that its op is Clojure-only and isn't available while a ClojureScript REPL is active, then short-circuits the middleware. Lets the client surface a clear message instead of a confusing failure or a JVM-only result. See clojure-emacs/cider#2198.

Replies to `msg` signaling that its op is Clojure-only and isn't available
while a ClojureScript REPL is active, then short-circuits the middleware. Lets
the client surface a clear message instead of a confusing failure or a
JVM-only result. See clojure-emacs/cider#2198.
sourceraw docstring

response-valueclj

(response-value msg response)

Returns the :value slot of an eval response as a Clojure value, reading the slot if necessary (piggieback 0.2.x).

Returns the :value slot of an eval response as a Clojure value, reading the
slot if necessary (piggieback 0.2.x).
sourceraw docstring

try-resolve-piggiebackclj

(try-resolve-piggieback)

If piggieback is loaded, return #'cider.piggieback/wrap-cljs-repl, nil otherwise.

If piggieback is loaded, return `#'cider.piggieback/wrap-cljs-repl`, nil
otherwise.
sourceraw docstring

with-cljs-envcljmacro

(with-cljs-env msg & body)
source

with-cljs-nscljmacro

(with-cljs-ns ns-sym & body)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close