Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

CLI REPL does not accept CIDER middleware

Open
#2 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
clojure
Domain
cli

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from clojure/clojure-cli.repl

All issues in clojure/clojure-cli.repl

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.