Skip to content

How to launch a REPL for this project

Denis Fuenzalida edited this page Aug 1, 2019 · 8 revisions

Requisites

This package uses the Clojure command line tool, so you need to install it for your operating system.

Emacs + CIDER

The latest version of CIDER works without any issue to launch a Clojure REPL. Just use the usual cider-jack-in command that is usually associated with the shortcut C-c M-j

Visual Studio Code + Calva

The latest version of the Calva extension works nicely to launch a Clojure REPL. After installing the extension, use the following shortcut to jack-in: Ctrl-Alt-c then Ctrl-Alt-j

  • To load the file currently being edited in the REPL, press Ctrl-Alt-c followed by Enter
  • To run the tests in the current file being edited, press Ctrl-Alt-c followed by t
    • You can also move to the line that contains the expression (t/run-tests) and press Ctrl-Alt-c followed by e to evaluate the expression, which will run the tests and return a map with the results

Windows notes

  • Install the new Clojure command line tool as described on the Clojure Github wiki. I used the first option (that uses a Powershell module in the Documents folder but has the advantage of not requiring admin privileges).
Clone this wiki locally