How to start socket server from :jvm-opts

Description

This works:

$ clj -J-Dclojure.server.repl="{:accept clojure.core.server/repl :port 11211}"

This doesn’t:

No socket server is started. What am I doing wrong?

Environment

clojure 1.10.1.536

Activity

Show:
Alex Miller
March 28, 2020, 5:20 PM

This is a duplicate of several other tickets - TDEPS-56, TDEPS-48, and then there are some windows-specific variants. The issue is related to bash quoting and is quite tricky to solve well, particularly in a portable way.

As a workaround, you can replace spaces in your option with ,'s, as Clojure treats these as whitespace.

Duplicate

Assignee

Unassigned

Reporter

Nikita Prokopov

Labels

None

Approval

None

Patch

None

Priority

Major
Configure