If you are a ClojureScript user, please read this section carefully.
I'm trying, believe me!
Make sure that Leiningen is installed on your machine, open a Clojure file or project, wait until the extension starts the nREPL (see status on the bottom of the VSCode window) and connect to it - now all the goodies should work :-)
Doesn't work? Not exactly what you need? See the Manual Configuration section!
Features That Are not Supported (but Nice to Have)
Connecting to the REPL
Evaluating code in the REPL
The method from the Quickstart section utilizes the so-called embedded nREPL that is run as an internal process. Sometimes you need more control on your development environment. In this case you can disable the automatical firing of the embedded nREPL by setting the
option in your VSCode settings globally or per-project and connect manually to whichever REPL instance you want by "Clojure: Connect to a running nREPL" command. Note, that in order to make the autocompletion, go to definition, and formatting functionality work you have to write necessary dependencies in your
Alternatively, you can put the code above to your project
The extension contributes the configuration parameters listed in the table below.
ClojureScript Project Setup
The extension has the experimental support of ClojureScript. The example of a ClojureScript project setup can be found here. Checkout the project
The embedded nREPL does not support ClojureScript, consider to use the "clojureVSCode.autoStartNRepl" setting. You will need to run an nREPL manually and execute the following commands inside it:
After that you can connect to the nREPL using the "Clojure: Connect to a running nREPL" command. Now you can evaluate you ClojureScript code and use the other extension facilities.
All kinds of errors on nREPL start
Please check that you're using the latest version of CIDER nREPL. The version the extension uses by default updates periodically, but there still can be a mismatch. In order to redefined the
How to Contribute