Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 592c4f8

Browse files
committedDec 15, 2019
README fix
1 parent bc85f9d commit 592c4f8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed
 

‎README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,15 @@ First, see the warnings above. The general theme is that we depend on
237237
three external linters, problems or incompatibilities with any of which might
238238
now manifest in emacs.
239239

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+
240245
You should start by making sure that `flycheck-clojure` has is in fact being initialized.
241246
After you `cider-jack-in`, the `*Messages*` buffer will show a message like
242247
```
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
244249
```
245250
If you don't see `acyclic/squiggly-clojure` among the `:dependencies`, then, most likely, will also not see
246251
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
252257
`*nrepl-messages...` buffer, but only if you have `(setq nrepl-log-messages t)`; messages are no longer
253258
being logged by default.
254259

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-
261260
Among other things, you'll find here the Clojure expressions that
262261
were evaluated to initiate the checking, e.g.
263262

0 commit comments

Comments
 (0)
Please sign in to comment.