Skip to content

Problem with cider-jack-in in Windows #1811

@lopalghost

Description

@lopalghost

Expected Behavior

cider-jack-in starts a REPL for a Leiningen Project.

Actual Behavior

When I try cider-jack-in, Cider is unable to resolve the lein command path if there's a space in it. E.g. if lein.bat is in c:\Users\User Name.lein... I get an error message saying c:\Users\User is not executable.

I'm able to get around the issue if I wrap the body of cider--lein-command-resolve-command in shell-quote-argument. I assume the issue is there with Boot and Gradle as well, but I haven't tried those.

Steps to reproduce the problem

With lein.bat in a directory with a space in its path, attempt cider-jack-in.

Environment & Version information

CIDER version information

CIDER 0.13.0snapshot (package: 20160719.552), nREPL 0.2.12
Clojure 1.8.0, Java 1.8.0_92

Lein/Boot version

Lein 2.6.1

Emacs version

Emacs 24.5.1 (with Spacemacs 0.105.21)

Operating system

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions