Skip to content

Commit

Permalink
Correctly quote allowAttachSelf argument for Leiningen
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-yakushev committed Sep 6, 2024
1 parent 8fdb53e commit 4f5c422
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cider.el
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ removed, LEIN-PLUGINS, LEIN-MIDDLEWARES and finally PARAMS."
middleware))
lein-middlewares)
(when cider-enable-nrepl-jvmti-agent
`(,(concat "update-in :jvm-opts conj -Djdk.attach.allowAttachSelf"))))
`(,(concat "update-in :jvm-opts conj '\"-Djdk.attach.allowAttachSelf\"'"))))
" -- ")
" -- "
(if (not cider-enrich-classpath)
Expand Down
12 changes: 6 additions & 6 deletions test/cider-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
(shell-quote-argument "[cider/cider-nrepl \"0.50.2\"]")
" -- update-in :plugins conj "
(shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.19.3\"]")
" -- update-in :jvm-opts conj -Djdk.attach.allowAttachSelf"
" -- update-in :jvm-opts conj '\"-Djdk.attach.allowAttachSelf\"'"
" -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware"
" -- repl :headless")))

Expand All @@ -172,7 +172,7 @@
(shell-quote-argument "[cider/cider-nrepl \"0.50.2\"]")
" -- update-in :plugins conj "
(shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.19.3\"]")
" -- update-in :jvm-opts conj -Djdk.attach.allowAttachSelf"
" -- update-in :jvm-opts conj '\"-Djdk.attach.allowAttachSelf\"'"
" -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware"
" -- repl :headless")))

Expand All @@ -185,7 +185,7 @@
(shell-quote-argument "[cider/cider-nrepl \"0.50.2\"]")
" -- update-in :plugins conj "
(shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.19.3\"]")
" -- update-in :jvm-opts conj -Djdk.attach.allowAttachSelf"
" -- update-in :jvm-opts conj '\"-Djdk.attach.allowAttachSelf\"'"
" -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware"
" -- repl :headless")))

Expand Down Expand Up @@ -226,7 +226,7 @@
(shell-quote-argument "[cider/cider-nrepl \"0.50.2\"]")
" -- update-in :plugins conj "
(shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.19.3\"]")
" -- update-in :jvm-opts conj -Djdk.attach.allowAttachSelf"
" -- update-in :jvm-opts conj '\"-Djdk.attach.allowAttachSelf\"'"
" -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware"
" -- repl :headless")))

Expand Down Expand Up @@ -262,7 +262,7 @@
(shell-quote-argument "[cider/cider-nrepl \"0.50.2\"]")
" -- update-in :plugins conj "
(shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.19.3\"]")
" -- update-in :jvm-opts conj -Djdk.attach.allowAttachSelf"
" -- update-in :jvm-opts conj '\"-Djdk.attach.allowAttachSelf\"'"
" -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware"
" -- repl :headless")))
(it "can concat in a boot project"
Expand Down Expand Up @@ -345,7 +345,7 @@
(shell-quote-argument "[cider/cider-nrepl \"0.50.2\"]")
" -- update-in :plugins conj "
(shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.19.3\"]")
" -- update-in :jvm-opts conj -Djdk.attach.allowAttachSelf"
" -- update-in :jvm-opts conj '\"-Djdk.attach.allowAttachSelf\"'"
" -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware"
" -- repl :headless"))))

Expand Down

0 comments on commit 4f5c422

Please sign in to comment.