Clojure tools for Vis: zprint and cljfmt formatting, clj-kondo lint, reader syntax checks, test runs and an nREPL.
vis-agent extension install blockether/vis-lang-clojure --subdirectory extension --global --trust
Install the Clojure CLI and put it and a JDK on
PATH. The first tool call fetches the library from Clojars. Syntax checks and repairs do not
need the CLI or the JDK. Use Vis 0.2.53 or later for toolchain grants.
| Tool | Purpose |
|---|---|
clj.format_code | Format files or a snippet. Set is_written=True to write the changes. |
clj.lint_code | Run clj-kondo and report reflection warnings as failures. |
clj.run_tests | Run project tests. Set coverage=True to get coverage for Lazytest. |
clj.repl_start | Start a project nREPL for this session. |
clj.repl_status | Check if the project's REPL is active. |
clj.repl_connect | Attach to an nREPL that is already active. |
clj.repl_eval | Evaluate Clojure in the active REPL. |
clj.repl_stop | Stop a managed nREPL or detach from an external nREPL. |
clj.run_tests(["test/app/core_test.clj::adds"])
Edit hooks check changed files and repair structural errors when safe. See the Clojure toolchain reference for supported test runners, syntax checks and classpath details. Results follow the language contract.
From the repository root, run the Clojure tests. Then run the Python tests from extension/:
clojure -M:test
cd extension
uv run --with pytest --with pyright==1.1.414 pytest tests -q
Can you improve this documentation? These fine people already did:
Karol Wojcik & michal-blocketherEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |