Skip to content

Define our own boot task to make jack-in more robust #1731

@Malabarba

Description

@Malabarba

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 the repl task.
The -d argument is fine, but the -m argument is a little finicky. It only works immediately after the repl task, so there's nothing we can do if the user instead uses a custom task or something like the very popular cljs-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 in cider-boot-params. This wouldn't require the -m argument and would work even if the repl task is not being called directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions