You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,8 +60,8 @@ The method from the [Quickstart section](#Quickstart) utilizes the so-called emb
60
60
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 `profiles.clj`. Put the following content to your `~/.lein/profiles.clj` for macOS and Linux:
61
61
62
62
```clojure
63
-
{:user {:plugins [[cider/cider-nrepl "0.22.1"]]
64
-
:dependencies [[cljfmt "0.5.7"]]}}
63
+
{:user {:plugins [[cider/cider-nrepl "0.24.0"]]
64
+
:dependencies [[cljfmt "0.6.7"]]}}
65
65
```
66
66
67
67
Alternatively, you can put the code above to your project `project.clj` file.
@@ -70,12 +70,14 @@ Alternatively, you can put the code above to your project `project.clj` file.
70
70
71
71
The extension contributes the configuration parameters listed in the table below.
72
72
73
-
| Parameter | Description |
74
-
|--------------------------------|-------------|
75
-
|`clojureVSCode.autoStartNRepl`| Whether to start an nREPL when opening a file or project. |
76
-
|`clojureVSCode.formatOnSave`| Format files with [cljfmt](https://github.com/weavejester/cljfmt) on save. |
77
-
|`clojureVSCode.cljfmtParameters`| Formatting parameters passed to `cljfmt` each time it runs, e.g. `:indentation? true :remove-surrounding-whitespace? false`|
78
-
|`clojureVSCode.showResultInline`| Show evaluation result inline. |
73
+
| Parameter | Description |
74
+
|---------------------------------|-------------|
75
+
|`clojureVSCode.autoStartNRepl`| Whether to start an nREPL when opening a file or project. |
76
+
|`clojureVSCode.formatOnSave`| Format files with [cljfmt](https://github.com/weavejester/cljfmt) on save. |
77
+
|`clojureVSCode.cljfmtParameters`| Formatting parameters passed to `cljfmt` each time it runs, e.g. `:indentation? true :remove-surrounding-whitespace? false`|
78
+
|`clojureVSCode.showResultInline`| Show evaluation result inline. |
79
+
|`clojureVSCode.ciderNReplVersion`| Version of [CIDER nREPL](https://github.com/clojure-emacs/cider-nrepl) to use for the embedded nREPL. |
80
+
|`clojureVSCode.cljfmtVersion`| Version of `cljfmt` to use for formatting Clojure files. |
79
81
80
82
## ClojureScript Project Setup
81
83
@@ -90,6 +92,14 @@ The embedded nREPL **does not** support ClojureScript, consider to use the "cloj
90
92
91
93
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.
92
94
95
+
## Troubleshooting
96
+
97
+
### All kinds of errors on nREPL start
98
+
99
+
Please check that you're using the latest version of [CIDER nREPL](https://github.com/clojure-emacs/cider-nrepl). The version the extension uses by default updates periodically, but there still can be a mismatch. In order to redefined the `CIDER nREPL` version you can either:
100
+
101
+
1. Define it in the `~/.lein/profiles.clj` (see the "Manual Configuration" section above).
102
+
2. Redefine it with the `clojureVSCode.cljfmtVersion` extension setting.
0 commit comments