CLI REPL does not accept CIDER middleware
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
Start by reading nrepl/cmdline.clj around lines 447-471, then locate the corresponding middleware handling in the CLI REPL. Reproduce the failure with cider/cider-nrepl 0.62.2 and cider.nrepl/cider-middleware; the work is done when the CLI REPL starts without the Key must be integer error.
Written by the indexing model from the issue text.
Description
Add cider/cider-nrepl {:mvn/version "0.62.2"} to your dependencies for starting the CLI REPL.
Add cider.nrepl/cider-middleware to your :middleware configuration.
Attempt to start the CLI REPL. You will get:
Execution error (IllegalArgumentException) at nrepl.server/default-handler$fn (server.clj:152).
Key must be integer
The problem is that cider.nrepl/cider-middleware is a vector of middleware symbols, not a simple m/w itself.
In the nREPL command-line, it unpacks these vectors to create a single list of all middleware: https://github.com/nrepl/nrepl/blob/master/src/clojure/nrepl/cmdline.clj#L447-L471
The CLI REPL is missing this step mapcat handle-seq-var essentially.
- Dominant language
- Clojure
- Stars
- 20
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from clojure/clojure-cli.repl
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
clojure/clojure-cli.repl#5 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
clojure/clojure-cli.repl#1 · 1 comment · 2 reactions ·
All issues in clojure/clojure-cli.repl
Similar issues
-
.Escalation .Needs Triage Priority:P1 Type:Bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
metabase/metabase#83678 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug: MCP server rejects request bodies over 100kb (express.json default) with PayloadTooLargeErrorOpenneeds triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
[Bug]: Schema-on-read: cannot retract a vector value unless it has exactly two elementsPossibly taken @markaddleman claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
replikativ/datahike#1105 ·
Maintainers usually reply within 1 day
-
`[:maybe [:or ...]]` produces non-nilable clj-kondo typePossibly taken @yenda claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100