Skip to content

cider-jack-in fails reporting a syntax error in macroexpanding #3339

@khinsen

Description

@khinsen

Expected behavior

M-x cider-jack-in should start a working nREPL in an Emacs buffer

Actual behavior

The nREPL is started, but CIDER fails to connect to it. The error message is

ERROR: Unhandled REPL handler exception processing message {:op init-debugger, :nrepl.middleware.print/stream? 1, :nrepl.middleware.print/print cider.nrepl.pprint/pprint, :nrepl.middleware.print/quota 1048576, :nrepl.middleware.print/buffer-size 4096, :nrepl.middleware.print/options {:right-margin 70}, :session 0f51e222-e103-400d-9d06-5a401407a24d, :id 6}
Syntax error macroexpanding at (cider/nrepl/inlined/deps/orchard/v0v11v0/orchard/java/parser.clj:1:1).

followed by a lengthy stack trace.

Note: I tried the same with a real Clojure project, thus with a non-empty deps.edn. The initial part of the error message is then different, but there is always the "syntax error macroexpanding", with the same location reference cider/nrepl/inlined/deps/orchard/v0v11v0/orchard/java/parser.clj:1:1.

Steps to reproduce the problem

  • Create an empty directory
  • Create deps.edn containing just {} (i.e. no dependencies)
  • Open deps.edn in Emacs.
  • M-x cider-jack-in.

Environment & Version information

CIDER version information

;; Connected to nREPL server - nrepl://localhost:45437
;; CIDER 1.7.0 (Côte d'Azur), nREPL 1.0.0
;; Clojure 1.11.1, Java 19.0.1

Lein / Clojure CLI version

Clojure CLI 1.11.1.1165

Emacs version

28.2

Operating system

Ubuntu 20.04 plus the Guix package manager
Emacs, CIDER, openjdk, clojure, clojure-tools installed via Guix (commit 0c6a7e1045cbd06336ef3699734a803a2e4038e5)

JDK distribution

openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Ubuntu-0ubuntu120.04.1)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Ubuntu-0ubuntu120.04.1, mixed mode, sharing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions