Skip to content

Commit d0ba5c3

Browse files
committed
Add a note about CIDER/clj-refactor compatibility issues
1 parent 7315b8d commit d0ba5c3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/troubleshooting.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,19 @@ but you shouldn't do that because `cider-jack-in` already does that for
175175
you. Look into the following files, and ensure you've removed all references to
176176
`cider-nrepl` and `tools.nrepl`: `project.clj`, `build.boot`,
177177
`~/.lein/profiles.clj` and `~/.boot/profile.boot`.
178+
179+
### I get some error related to refactor-nrepl on startup
180+
181+
The package `clj-refactor` would normally inject its own middleware on
182+
`cider-jack-in`, just as CIDER itself would. Usually that's not a
183+
problem, as long as you're using compatible versions of CIDER and
184+
`clj-refactor`, but if you're getting some error probably that's not
185+
the case. You've got two options to solve this:
186+
187+
* Use compatible versions of the two projects (e.g. their most recent
188+
snapshots or most recent stable releases)
189+
* Disable the `clj-refactor` middleware injection:
190+
191+
```el
192+
(setq cljr-inject-dependencies-at-jack-in nil)
193+
```

0 commit comments

Comments
 (0)