-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Define our own boot task to make jack-in more robust #1731
Comments
👍 |
This I think already works ootb, I am constantly doing I can take care of this, just need some hint on were to put the task and how/where to require it from.
|
|
Great will do! |
Ok, code-wise I am ready, sorry for my ignorance on this, but is the |
When doing middleware injection in boot projects, we add the cider-nrepl artifact as a dependency by passing the
-d
argument to boot and we add our middleware to tools.nrepl by passing the-m
argument to therepl
task.The
-d
argument is fine, but the-m
argument is a little finicky. It only works immediately after therepl
task, so there's nothing we can do if the user instead uses a custom task or something like the very popularcljs-repl
task.Instead, cider-nrepl could define its own boot task that properly adds the nrepl middleware. Then all we have to do is inject the dependency with
-d
and add the task before any other task incider-boot-params
. This wouldn't require the-m
argument and would work even if therepl
task is not being called directly.The text was updated successfully, but these errors were encountered: