-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dependency injection at jack-in time #67
base: master
Are you sure you want to change the base?
Conversation
Commit clojure-emacs/cider@8989f40d in cider stopped using `cider-jack-in-lein-plugins` as a method for defining the dependencies to insert, which causes the sayid dependencies to be missed upon jack-in. Since we're using Cider anyways, and likely using it to define our nREPL version, we're going to leverage the more generic `cider-jack-in-dependencies` variable for defining the sayid dependency. To avoid potential version collisions, I've opted to no longer add the sayid plugin to the `cider-jack-in-lein-plugins` variable.
The problem is that there is a Lein plugin as well https://github.com/clojure-emacs/sayid/blob/master/src/sayid/plugin.clj That's one of the messed up things about the deps injection right now - how to avoid duplicating deps for Lein projects. Probably in CIDER we should remove stuff from deps if they already appear in the plugins. For said it seems it'd be best if we add sayid to both the plugins and the deps. |
Perhaps we can take the same exact approach as https://github.com/clojure-emacs/clj-refactor.el/blob/f368c56c83843396b160440f472a661a3b639862/clj-refactor.el#L4199-L4218, for homogeneity; that one implementation is known to work by now |
The implementation in |
For a short-term fix - here probably the dep needs to be added to both lists, instead of only to one. Kind of ugly, but it won't break anything IMO. |
That's a good point about moving this solution to CIDER itself. I can take a crack at making that change, but I'm not familiar enough with lein to know whether to prefer deps or plugins. It sounds like the thing to do is remove any dep from |
Commit clojure-emacs/cider@8989f40d in cider
stopped using
cider-jack-in-lein-plugins
as a method for definingthe dependencies to insert, which causes the sayid dependencies to be
missed upon jack-in.
Since we're using Cider anyways, and likely using it to define our
nREPL version, we're going to leverage the more generic
cider-jack-in-dependencies
variable for defining the sayiddependency.
To avoid potential version collisions, I've opted to no longer add the
sayid plugin to the
cider-jack-in-lein-plugins
variable.