Supported nREPL operations
generated from a verbose 'describe' response (cider-nrepl v0.25.1)
Operations
apropos
Return a sequence of vars whose name matches the query pattern, or if specified, having the pattern in their docstring.
- Required parameters
-
-
:queryThe search query.
-
- Optional parameters
-
-
:filter-regexpsAll vars from namespaces matching any regexp from this list would be dropped from the result.
-
- Returns
-
-
:apropos-matchesA list of matching symbols.
-
cider-version
Returns the version of the CIDER-nREPL middleware.
- Required parameters
- Optional parameters
- Returns
-
-
:cider-versionCIDER-nREPL’s version map. -
:statusdone
-
classpath
Obtain a list of entries in the Java classpath.
- Required parameters
- Optional parameters
- Returns
-
-
:classpathA list of the Java classpath entries.
-
clear-profile
Clears profile of samples.
- Required parameters
- Optional parameters
- Returns
-
-
:statusDone
-
clojuredocs-lookup
Return a map of information in ClojureDocs.
- Required parameters
-
-
:nsThe namespace wheresymwill be resolved. -
:symThe symbol to lookup.
-
- Optional parameters
-
-
:export-edn-urlEDN file URL exported from ClojureDocs. Defaults to "https://clojuredocs-edn.netlify.com/export.compact.edn".
-
- Returns
-
-
:clojuredocsA map of information in ClojureDocs. -
:status"no-doc" if there is no document matching tonsandsymbol.
-
clojuredocs-refresh-cache
Reload exported documents file from ClojureDocs, and store it as a cache.
- Required parameters
- Optional parameters
-
-
:export-edn-urlEDN file URL exported from ClojureDocs. Defaults to "https://clojuredocs-edn.netlify.com/export.compact.edn".
-
- Returns
-
-
:status"ok" if reloading was successful
-
complete
Return a list of symbols matching the specified (partial) symbol.
- Required parameters
-
-
:nsThe namespace is which to look for completions (falls back to *ns* if not specified) -
:prefixThe prefix for completion candidates -
:sessionThe current session
-
- Optional parameters
-
-
:contextCompletion context for compliment. -
:extra-metadataList of extra-metadata fields. Possible values: arglists, doc.
-
- Returns
-
-
:completionsA list of possible completions
-
complete-doc
Retrieve documentation suitable for display in completion popup
- Required parameters
-
-
:nsThe symbol’s namespace -
:symThe symbol to lookup
-
- Optional parameters
- Returns
-
-
:completion-docSymbol’s documentation
-
complete-flush-caches
Forces the completion backend to repopulate all its caches
- Required parameters
- Optional parameters
- Returns
content-type-middleware
Enhances the eval op by adding content-type and friends to some responses. Not an op in itself.
- Required parameters
- Optional parameters
-
-
:content-typeIf present and non-nil, try to detect and handle content-types.
-
- Returns
debug-input
Read client input on debug action.
- Required parameters
-
-
:inputThe user’s reply to the input request.
-
- Optional parameters
- Returns
-
-
:statusdone
-
debug-instrumented-defs
Return an alist of definitions currently thought to be instrumented on each namespace. Due to Clojure’s versatility, this could include false postives, but there will not be false negatives. Instrumentations inside protocols are not listed.
- Required parameters
- Optional parameters
- Returns
-
-
:listThe alist of (NAMESPACE . VARS) that are thought to be instrumented. -
:statusdone
-
debug-middleware
Debug a code form or fall back on regular eval.
- Required parameters
-
-
:codeCode to debug, there must be a #dbg or a #break reader macro in it, or nothing will happen. -
:fileFile where the code is located. -
:idA message id that will be responded to when a breakpoint is reached. -
:nsPassed to "eval". -
:pointPosition in the file where the provided code begins.
-
- Optional parameters
- Returns
-
-
:status"done" if the message will no longer be used, or "need-debug-input" during debugging sessions
-
eldoc
Return a map of information about the specified symbol.
- Required parameters
-
-
:nsThe current namespace -
:symThe symbol to lookup
-
- Optional parameters
- Returns
-
-
:statusdone
-
eldoc-datomic-query
Return a map containing the inputs of the datomic query.
- Required parameters
-
-
:nsThe current namespace -
:symThe symbol to lookup
-
- Optional parameters
- Returns
-
-
:statusdone
-
fn-deps
Look up the function dependencies of particular function.
- Required parameters
-
-
:nsThe current namespace -
:symThe symbol to lookup
-
- Optional parameters
- Returns
-
-
:fn-depsA list of function deps. -
:statusdone
-
fn-refs
Look up functions that reference a particular function.
- Required parameters
-
-
:nsThe current namespace -
:symThe symbol to lookup
-
- Optional parameters
- Returns
-
-
:fn-refsA list of function references. -
:statusdone
-
format-code
Reformats the given Clojure code, returning the result as a string.
- Required parameters
-
-
:codeThe code to format.
-
- Optional parameters
-
-
:optionsConfiguration map for cljfmt.
-
- Returns
-
-
:formatted-codeThe formatted code.
-
format-edn
Reformats the given EDN data, returning the result as a string.
- Required parameters
-
-
:ednThe data to format.
-
- Optional parameters
-
-
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
-
-
:formatted-ednThe formatted data.
-
get-max-samples
Returns maximum number of samples to be collected for any var.
- Required parameters
- Optional parameters
- Returns
-
-
:statusDone -
:valueString representing number of max-sample-count
-
info
Return a map of information about the specified symbol.
- Required parameters
-
-
:nsThe current namespace -
:symThe symbol to lookup
-
- Optional parameters
- Returns
-
-
:statusdone
-
init-debugger
Initialize the debugger so that breakpoint works correctly. This usually does not respond immediately. It sends a response when a breakpoint is reached or when the message is discarded.
- Required parameters
-
-
:idA message id that will be responded to when a breakpoint is reached.
-
- Optional parameters
- Returns
inspect-clear
Clears the state state of the inspector.
- Required parameters
-
-
:sessionThe current session
-
- Optional parameters
- Returns
-
-
:status"done"
-
inspect-def-current-value
Define the currently inspected value as a var with the given var-name in the provided namespace.
- Required parameters
-
-
:nsNamespace to define var on -
:sessionThe current session -
:var-nameThe var name
-
- Optional parameters
- Returns
-
-
:status"done"
-
inspect-get-path
Returns the path to the current position in the inspected value.
- Required parameters
-
-
:sessionThe current session
-
- Optional parameters
- Returns
-
-
:status"done"
-
inspect-next-page
Jumps to the next page in paginated collection view.
- Required parameters
-
-
:sessionThe current session
-
- Optional parameters
- Returns
-
-
:status"done"
-
inspect-pop
Moves one level up in the inspector stack.
- Required parameters
-
-
:sessionThe current session
-
- Optional parameters
- Returns
-
-
:status"done"
-
inspect-prev-page
Jumps to the previous page in paginated collection view.
- Required parameters
-
-
:sessionThe current session
-
- Optional parameters
- Returns
-
-
:status"done"
-
inspect-push
Inspects the inside value specified by index.
- Required parameters
-
-
:idxIndex of the internal value currently rendered. -
:sessionThe current session
-
- Optional parameters
- Returns
-
-
:status"done"
-
inspect-refresh
Re-renders the currently inspected value.
- Required parameters
-
-
:sessionThe current session
-
- Optional parameters
- Returns
-
-
:status"done"
-
inspect-set-page-size
Sets the page size in paginated view to specified value.
- Required parameters
-
-
:page-sizeNew page size. -
:sessionThe current session
-
- Optional parameters
- Returns
-
-
:status"done"
-
is-var-profiled
Reports wheth symbol is currently profiled.
- Required parameters
-
-
:nsThe current namespace -
:symThe symbol to check
-
- Optional parameters
- Returns
-
-
:statusDone -
:value'profiled' if profiling enabled, 'unprofiled' if disabled
-
macroexpand
Produces macroexpansion of some form using the given expander.
- Required parameters
-
-
:codeThe form to macroexpand.
-
- Optional parameters
-
-
:display-namespacesHow to print namespace-qualified symbols in the result. Possible values are "qualified" to leave all namespaces qualified, "none" to elide all namespaces, or "tidy" to replace namespaces with their aliases in the given namespace. Defaults to "qualified". -
:expanderThe macroexpansion function to use. Possible values are "macroexpand-1", "macroexpand", or "macroexpand-all". Defaults to "macroexpand". -
:nsThe namespace in which to perform the macroexpansion. Defaults to 'user for Clojure and 'cljs.user for ClojureScript. -
:print-metaIf truthy, also print metadata of forms.
-
- Returns
-
-
:expansionThe macroexpanded form.
-
ns-aliases
Returns a map of [ns-alias] to [ns-name] in a namespace.
- Required parameters
-
-
:nsThe namespace to use.
-
- Optional parameters
- Returns
ns-list
Return a sorted list of all namespaces.
- Required parameters
- Optional parameters
-
-
:filter-regexpsAll namespaces matching any regexp from this list would be dropped from the result.
-
- Returns
-
-
:ns-listThe sorted list of all namespaces. -
:statusdone
-
ns-list-vars-by-name
Return a list of vars named name amongst all namespaces.
- Required parameters
-
-
:nameThe name to use.
-
- Optional parameters
- Returns
-
-
:statusdone -
:var-listThe list obtained.
-
ns-path
Returns the path to the file containing ns.
- Required parameters
-
-
:nsThe namespace to find.
-
- Optional parameters
- Returns
ns-vars
Returns a sorted list of public vars in a namespace.
- Required parameters
-
-
:nsThe namespace to browse.
-
- Optional parameters
-
-
:var-queryThe search query for vars. Only "private?" is supported for ClojureScript.
-
- Returns
-
-
:ns-varsThe sorted list of public vars in a namespace. -
:statusdone
-
ns-vars-with-meta
Returns a map of [var-name] to [var-metadata] for public vars in a namespace.
- Required parameters
-
-
:nsThe namespace to use.
-
- Optional parameters
-
-
:var-queryThe search query for vars. Only "private?" is supported for ClojureScript.
-
- Returns
-
-
:ns-vars-with-metaThe map of [var-name] to [var-metadata] for public vars in a namespace. -
:statusdone
-
out-subscribe
Change #'*out* so that it also prints to active sessions, even outside an eval scope.
- Required parameters
- Optional parameters
- Returns
out-unsubscribe
Change #'*out* so that it no longer prints to active sessions outside an eval scope.
- Required parameters
- Optional parameters
- Returns
profile-summary
Return profiling data summary.
- Required parameters
- Optional parameters
- Returns
-
-
:errContent of profile summary report -
:statusDone
-
profile-var-summary
Return profiling data summary for a single var.
- Required parameters
-
-
:nsThe current namespace -
:symThe symbol to profile
-
- Optional parameters
- Returns
-
-
:errContent of profile summary report -
:statusDone
-
refresh
Reloads all changed files in dependency order.
- Required parameters
- Optional parameters
-
-
:afterThe namespace-qualified name of a zero-arity function to call after reloading. -
:beforeThe namespace-qualified name of a zero-arity function to call before reloading. -
:dirsList of directories to scan. If no directories given, defaults to all directories on the classpath. -
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
-
-
:errorA sequence of all causes of the thrown exception whenstatusis:error. -
:error-nsThe namespace that caused reloading to fail whenstatusis:error. -
:reloadingList of namespaces that will be reloaded. -
:status:okif reloading was successful; otherwise:error.
-
refresh-all
Reloads all files in dependency order.
- Required parameters
- Optional parameters
-
-
:afterThe namespace-qualified name of a zero-arity function to call after reloading. -
:beforeThe namespace-qualified name of a zero-arity function to call before reloading. -
:dirsList of directories to scan. If no directories given, defaults to all directories on the classpath. -
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
-
-
:errorA sequence of all causes of the thrown exception whenstatusis:error. -
:error-nsThe namespace that caused reloading to fail whenstatusis:error. -
:reloadingList of namespaces that will be reloaded. -
:status:okif reloading was successful; otherwise:error.
-
refresh-clear
Clears the state of the refresh middleware. This can help recover from a failed load or a circular dependency error.
- Required parameters
- Optional parameters
- Returns
resource
Obtain the path to a resource.
- Required parameters
-
-
:nameThe name of the resource in question.
-
- Optional parameters
- Returns
-
-
:resource-pathThe file path to a resource.
-
resources-list
Obtain a list of all resources on the classpath.
- Required parameters
- Optional parameters
-
-
:contextCompletion context for compliment. -
:prefixPrefix to filter out resources.
-
- Returns
-
-
:resources-listThe list of resources.
-
retest
Return exception cause and stack frame info for an erring test via the stacktrace middleware. The error to be retrieved is referenced by namespace, var name, and assertion index within the var.
- Required parameters
- Optional parameters
-
-
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
set-max-samples
Sets maximum sample count. Returns new max-sample-count.
- Required parameters
-
-
:max-samplesMaxiumum samples to collect for any single var.
-
- Optional parameters
- Returns
-
-
:statusDone -
:valueString representing number of max-sample-count
-
slurp
Slurps a URL from the nREPL server, returning MIME data.
- Required parameters
- Optional parameters
- Returns
spec-example
Return a string with a pretty printed example for a spec
- Required parameters
-
-
:spec-nameThe spec namespaced keyword we want the example for
-
- Optional parameters
- Returns
-
-
:exampleThe pretty printed spec example string -
:statusdone
-
spec-form
Return the form of a given spec
- Required parameters
-
-
:spec-nameThe spec namespaced keyword we are looking for
-
- Optional parameters
- Returns
-
-
:spec-formThe spec form -
:statusdone
-
spec-list
Return a sorted list of all specs in the registry
- Required parameters
- Optional parameters
-
-
:filter-regexOnly the specs that matches filter prefix regex will be returned
-
- Returns
-
-
:spec-listThe sorted list of all specs in the registry with their descriptions -
:statusdone
-
stacktrace
Return messages describing each cause and stack frame of the most recent exception.
- Required parameters
- Optional parameters
-
-
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
-
-
:status"done", or "no-error" if*eis nil
-
test
[DEPRECATED] Run tests in the specified namespace and return results. This accepts a set of tests to be run; if nil, runs all tests. Results are cached for exception retrieval and to enable re-running of failed/erring tests.
- Required parameters
- Optional parameters
-
-
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
test-all
[DEPRECATED] Run all tests in the project. If load? is truthy, all project namespaces are loaded; otherwise, only tests in presently loaded namespaces are run. Results are cached for exception retrieval and to enable re-running of failed/erring tests.
- Required parameters
- Optional parameters
-
-
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
test-stacktrace
Rerun all tests that did not pass when last run. Results are cached for exception retrieval and to enable re-running of failed/erring tests.
- Required parameters
- Optional parameters
-
-
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
test-var-query
Run tests specified by the var-query and return results. Results are cached for exception retrieval and to enable re-running of failed/erring tests.
- Required parameters
-
-
:var-queryA search query specifying the test vars to execute. See Orchard’s var query documentation for more details.
-
- Optional parameters
-
-
:nrepl.middleware.print/buffer-sizeThe size of the buffer to use when streaming results. Defaults to 1024. -
:nrepl.middleware.print/keysA seq of the keys in the response whose values should be printed. -
:nrepl.middleware.print/optionsA map of options to pass to the printing function. Defaults tonil. -
:nrepl.middleware.print/printA fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options]. -
:nrepl.middleware.print/quotaA hard limit on the number of bytes printed for each value. -
:nrepl.middleware.print/stream?If logical true, the result of printing each value will be streamed to the client over one or more messages.
-
- Returns
-
-
:resultsA map of test run data. -
:statusEither done or indication of an error
-
toggle-profile
Toggle profiling of a given var.
- Required parameters
-
-
:nsThe current namespace -
:symThe symbol to profile
-
- Optional parameters
- Returns
-
-
:statusDone -
:value'profiled' if profiling enabled, 'unprofiled' if disabled, 'unbound' if ns/sym not bound
-
toggle-profile-ns
Toggle profiling of given namespace.
- Required parameters
-
-
:nsThe current namespace
-
- Optional parameters
- Returns
-
-
:statusDone -
:value'profiled' if profiling enabled, 'unprofiled' if disabled
-
toggle-trace-ns
Toggle tracing of a given ns.
- Required parameters
-
-
:nsThe namespace to trace
-
- Optional parameters
- Returns
-
-
:ns-statusThe result of tracing operation
-