Supports the ability to evaluation code. The name of the middleware is slightly misleading, as interrupt is currently supported at a session level but the name is retained for backwards compatibility.
Supports the ability to evaluation code. The name of the middleware is slightly misleading, as interrupt is currently supported at a session level but the name is retained for backwards compatibility.
The message currently being evaluated.
The message currently being evaluated.
(evaluate {:keys [transport session eval ns code file line column out-limit]
:as msg})
Evaluates a msg's code within the dynamic context of its session.
Uses clojure.main/repl
to drive the evaluation of :code (either a string
or a seq of forms to be evaluated), which may also optionally specify a :ns
(resolved via find-ns
). The map MUST contain a Transport implementation
in :transport; expression results and errors will be sent via that Transport.
Note: we are doubling up on restoring of ctxcl in a catch
block both here
and within misc/with-session-classloader
. Not too sure why this is needed,
but it does seem to be a fix for https://github.com/nrepl/nrepl/issues/206
Evaluates a msg's code within the dynamic context of its session. Uses `clojure.main/repl` to drive the evaluation of :code (either a string or a seq of forms to be evaluated), which may also optionally specify a :ns (resolved via `find-ns`). The map MUST contain a Transport implementation in :transport; expression results and errors will be sent via that Transport. Note: we are doubling up on restoring of ctxcl in a `catch` block both here and within `misc/with-session-classloader`. Not too sure why this is needed, but it does seem to be a fix for https://github.com/nrepl/nrepl/issues/206
(interruptible-eval h & _configuration)
Evaluation middleware that supports interrupts. Returns a handler that supports "eval" and "interrupt" :op-erations that delegates to the given handler otherwise.
Evaluation middleware that supports interrupts. Returns a handler that supports "eval" and "interrupt" :op-erations that delegates to the given handler otherwise.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close