@@ -237,10 +237,15 @@ First, see the warnings above. The general theme is that we depend on
237
237
three external linters, problems or incompatibilities with any of which might
238
238
now manifest in emacs.
239
239
240
+ Maddeningly, the most common way for an incompatibility to manifest is with an uncaught clojure exception
241
+ that emacs fails to parse, resulting in the cryptic error "Wrong number of arguments: (4 . 4), 0". To debug this,
242
+ follow the suggestions below, especially the one about pasting the calls to the inter directly in to the REPL buffer
243
+ so you can see errors, unfiltered by emacs.
244
+
240
245
You should start by making sure that ` flycheck-clojure ` has is in fact being initialized.
241
246
After you ` cider-jack-in ` , the ` *Messages* ` buffer will show a message like
242
247
```
243
- [nREPL] Starting server via /home/pnf/bin/lein update-in :dependencies conj \[acyclic/squiggly-clojure\ \"0.1.9-SNAPSHOT\"\ \:exclusions\ \[org.clojure/tools.reader\]\] -- update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.5.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.23.0-SNAPSHOT\"\] -- repl :headless :host localhost
248
+ [nREPL] Starting server via /home/pnf/bin/lein update-in :dependencies conj \[acyclic/squiggly-clojure\ \"0.1.9-SNAPSHOT\"\ -- update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.5.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.23.0-SNAPSHOT\"\] -- repl :headless :host localhost
244
249
```
245
250
If you don't see ` acyclic/squiggly-clojure ` among the ` :dependencies ` , then, most likely, will also not see
246
251
it in ` cider-jack-in-dependencies ` . Either ` flycheck-clojure-setup ` was never called, or it was called
@@ -252,12 +257,6 @@ messages between cider and the clojure process. These will be in the
252
257
` *nrepl-messages... ` buffer, but only if you have ` (setq nrepl-log-messages t) ` ; messages are no longer
253
258
being logged by default.
254
259
255
- If something mysterious is happening, you may find it helpful to look at the
256
- ` *nrepl-messages... ` buffers, where CIDER silently logs all traffic between EMACS
257
- and Clojure. Note, per the [ cider docs] ( https://cider.readthedocs.io/en/latest/troubleshooting/ )
258
- that you must have such logging turned on, either by setting ` nrepl-log-messages ` to true or running
259
- ` nrepl-toggle-message-logging ` .
260
-
261
260
Among other things, you'll find here the Clojure expressions that
262
261
were evaluated to initiate the checking, e.g.
263
262
0 commit comments