emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/cider 565f4f6e3a: Bump cider-nrepl to 0.50.1 (#3736)


From: ELPA Syncer
Subject: [nongnu] elpa/cider 565f4f6e3a: Bump cider-nrepl to 0.50.1 (#3736)
Date: Wed, 28 Aug 2024 09:59:26 -0400 (EDT)

branch: elpa/cider
commit 565f4f6e3a6a5c9c9e616b9e8afd7038dc98ac59
Author: Oleksandr Yakushev <alex@bytopia.org>
Commit: GitHub <noreply@github.com>

    Bump cider-nrepl to 0.50.1 (#3736)
    
    * Use cider-nrepl 0.50.1
    
    * Replace clojure.tools.trace with orchard.trace
    
    * [ci] Disable parser-next dependent tests on JDK11
---
 .github/workflows/test.yml                         |  4 +-
 CHANGELOG.md                                       |  4 +-
 cider-mode.el                                      |  2 +-
 cider.el                                           |  2 +-
 dev/docker-sample-project/project.clj              |  2 +-
 dev/tramp-sample-project/project.clj               |  2 +-
 .../ROOT/pages/basics/middleware_setup.adoc        | 12 +++---
 doc/modules/ROOT/pages/basics/up_and_running.adoc  |  4 +-
 doc/modules/ROOT/pages/cljs/shadow-cljs.adoc       |  2 +-
 doc/modules/ROOT/pages/cljs/up_and_running.adoc    |  4 +-
 test/cider-tests.el                                | 44 +++++++++++-----------
 11 files changed, 42 insertions(+), 40 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e48e98fa97..30efc57173 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -112,9 +112,9 @@ jobs:
         # be GH connectivity runner issues. We attempt to address this
         # problem by rerunning the tests more than once.
         eldev -p -dtTC test --test-type integration || eldev -p -dtTC test 
--test-type integration
-        
+
     - name: Run tests that need enrich-classpath
-      if: "!startsWith(matrix.os, 'windows')"
+      if: "!startsWith(matrix.os, 'windows') && (matrix.java_version != '11')"
       run: |
         cd dev; ../clojure.sh clojure -M:gen; cd -
         wc -l test/File.edn
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 963e4958c4..895bf5ecb6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,7 +7,9 @@
 ### Changes
 
 - Bump the injected nREPL version to 1.3.
-- Bump the injected `cider-nrepl` to 
[0.49.3](https://github.com/clojure-emacs/cider-nrepl/blob/master/CHANGELOG.md#0493-2024-08-13).
+- Bump the injected `cider-nrepl` to 
[0.50.1](https://github.com/clojure-emacs/cider-nrepl/blob/master/CHANGELOG.md#0501-2024-08-28).
+  * Introduce new backend for CIDER tracing functionality.
+  * Remove special handling of Boot classpath.
 - [#3733](https://github.com/clojure-emacs/cider/issues/3733): Remove support 
for sideloading. (this experimental feature was removed from nREPL 1.3)
 
 ### Bugs fixed
diff --git a/cider-mode.el b/cider-mode.el
index 88278276cb..780a77ca26 100644
--- a/cider-mode.el
+++ b/cider-mode.el
@@ -809,7 +809,7 @@ with the given LIMIT."
                        ;; we catch that case too.
                        ;; FIXME: This matches values too, not just keys.
                        (when (seq-find (lambda (k) (and (stringp k)
-                                                        (string-match (rx 
"clojure.tools.trace/traced" eos) k)))
+                                                        (string-match (rx 
"orchard.trace/traced" eos) k)))
                                        meta)
                          (push sym traced))
                        (when (and do-deprecated (nrepl-dict-get meta 
"deprecated"))
diff --git a/cider.el b/cider.el
index 8e285a7db0..c08ea43cd4 100644
--- a/cider.el
+++ b/cider.el
@@ -573,7 +573,7 @@ the artifact.")
 
 Used when `cider-jack-in-auto-inject-clojure' is set to `latest'.")
 
-(defconst cider-required-middleware-version "0.49.3"
+(defconst cider-required-middleware-version "0.50.1"
   "The CIDER nREPL version that's known to work properly with CIDER.")
 
 (defcustom cider-injected-middleware-version cider-required-middleware-version
diff --git a/dev/docker-sample-project/project.clj 
b/dev/docker-sample-project/project.clj
index 5ede67451a..c91d6f04f0 100644
--- a/dev/docker-sample-project/project.clj
+++ b/dev/docker-sample-project/project.clj
@@ -2,4 +2,4 @@
   :dependencies [[org.clojure/clojure "1.11.1"]
                  [clj-http "3.12.3"]]
   :source-paths ["src"]
-  :plugins [[cider/cider-nrepl "0.49.3"]])
+  :plugins [[cider/cider-nrepl "0.50.1"]])
diff --git a/dev/tramp-sample-project/project.clj 
b/dev/tramp-sample-project/project.clj
index d395a3060b..9cec749ead 100644
--- a/dev/tramp-sample-project/project.clj
+++ b/dev/tramp-sample-project/project.clj
@@ -2,5 +2,5 @@
   :dependencies [[org.clojure/clojure "1.11.1"]
                  [clj-http "3.12.3"]]
   :source-paths ["src"]
-  :plugins [[cider/cider-nrepl "0.49.3"]
+  :plugins [[cider/cider-nrepl "0.50.1"]
             [refactor-nrepl "3.9.0"]])
diff --git a/doc/modules/ROOT/pages/basics/middleware_setup.adoc 
b/doc/modules/ROOT/pages/basics/middleware_setup.adoc
index 0b7e82d76a..d9766b832f 100644
--- a/doc/modules/ROOT/pages/basics/middleware_setup.adoc
+++ b/doc/modules/ROOT/pages/basics/middleware_setup.adoc
@@ -32,14 +32,14 @@ Use the convenient plugin for defaults, either in your 
project's
 
 [source,clojure]
 ----
-:plugins [[cider/cider-nrepl "0.49.3"]]
+:plugins [[cider/cider-nrepl "0.50.1"]]
 ----
 
 A minimal `profiles.clj` for CIDER would be:
 
 [source,clojure]
 ----
-{:repl {:plugins [[cider/cider-nrepl "0.49.3"]]}}
+{:repl {:plugins [[cider/cider-nrepl "0.50.1"]]}}
 ----
 
 WARNING: Be careful not to place this in the `:user` profile, as this way 
CIDER's
@@ -59,7 +59,7 @@ all of their projects using a `~/.boot/profile.boot` file 
like so:
 (require 'boot.repl)
 
 (swap! boot.repl/*default-dependencies*
-       concat '[[cider/cider-nrepl "0.49.3"]])
+       concat '[[cider/cider-nrepl "0.50.1"]])
 
 (swap! boot.repl/*default-middleware*
        conj 'cider.nrepl/cider-middleware)
@@ -76,11 +76,11 @@ run `cider-connect` or `cider-connect-cljs`.
 
 [source,clojure]
 ----
-  :cider-clj {:extra-deps {cider/cider-nrepl {:mvn/version "0.49.3"}}
+  :cider-clj {:extra-deps {cider/cider-nrepl {:mvn/version "0.50.1"}}
               :main-opts ["-m" "nrepl.cmdline" "--middleware" 
"[cider.nrepl/cider-middleware]"]}
 
   :cider-cljs {:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.339"}
-                            cider/cider-nrepl {:mvn/version "0.49.3"}
+                            cider/cider-nrepl {:mvn/version "0.50.1"}
                             cider/piggieback {:mvn/version "0.5.3"}}
                :main-opts ["-m" "nrepl.cmdline" "--middleware"
                            
"[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}
@@ -99,7 +99,7 @@ NOTE: Make sure you're using 
https://github.com/clojurephant/clojurephant[Clojur
 ----
 dependencies {
   devImplementation 'nrepl:nrepl:0.9.0'
-  devImplementation 'cider:cider-nrepl:0.49.3'
+  devImplementation 'cider:cider-nrepl:0.50.1'
 }
 
 tasks.named('clojureRepl') {
diff --git a/doc/modules/ROOT/pages/basics/up_and_running.adoc 
b/doc/modules/ROOT/pages/basics/up_and_running.adoc
index 8362372926..70f17ea447 100644
--- a/doc/modules/ROOT/pages/basics/up_and_running.adoc
+++ b/doc/modules/ROOT/pages/basics/up_and_running.adoc
@@ -73,7 +73,7 @@ simple - CIDER simply passes the extra dependencies and nREPL 
configuration to
 your build tool in the command it runs to start the nREPL server. Here's how
 this looks for `tools.deps`:
 
-  $ clojure -Sdeps '{:deps {nrepl {:mvn/version "1.2.0"} cider/cider-nrepl 
{:mvn/version "0.49.3"}}}' -m nrepl.cmdline --middleware 
'["cider.nrepl/cider-middleware"]'
+  $ clojure -Sdeps '{:deps {nrepl {:mvn/version "1.3.0"} cider/cider-nrepl 
{:mvn/version "0.50.1"}}}' -m nrepl.cmdline --middleware 
'["cider.nrepl/cider-middleware"]'
 
 TIP: If you don't want `cider-jack-in` to inject dependencies automatically, 
set
 `cider-inject-dependencies-at-jack-in` to `nil`. Note that you'll have to setup
@@ -350,7 +350,7 @@ It is also possible for plain `clj`, although the command 
is somewhat longer:
 
 [source,sh]
 ----
-$ clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.49.3"}}}' -m 
nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
+$ clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.50.1"}}}' -m 
nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
 ----
 
 Alternatively, you can start nREPL either manually or using the facilities
diff --git a/doc/modules/ROOT/pages/cljs/shadow-cljs.adoc 
b/doc/modules/ROOT/pages/cljs/shadow-cljs.adoc
index 05b5cf93dd..fad330d78d 100644
--- a/doc/modules/ROOT/pages/cljs/shadow-cljs.adoc
+++ b/doc/modules/ROOT/pages/cljs/shadow-cljs.adoc
@@ -62,7 +62,7 @@ And connect to it with `cider-connect`.
 ...For that to work, `shadow-cljs.edn` contents like the following are assumed:
 
 ```clj
- :dependencies [[cider/cider-nrepl "0.49.3"] ;; mandatory (unless it's 
inherited from deps.edn or otherwise present in the classpath of shadow-cljs's 
JVM process)
+ :dependencies [[cider/cider-nrepl "0.50.1"] ;; mandatory (unless it's 
inherited from deps.edn or otherwise present in the classpath of shadow-cljs's 
JVM process)
                 [refactor-nrepl/refactor-nrepl "3.9.0"]] ;; refactor-nrepl is 
optional
 
  :nrepl {:middleware [cider.nrepl/cider-middleware ;; it's advisable to 
explicitly add this middleware. It's automatically added by shadow-cljs (if 
available in the classpath), unless `:nrepl {:cider false}`
diff --git a/doc/modules/ROOT/pages/cljs/up_and_running.adoc 
b/doc/modules/ROOT/pages/cljs/up_and_running.adoc
index ad2d8317e8..65c79239f1 100644
--- a/doc/modules/ROOT/pages/cljs/up_and_running.adoc
+++ b/doc/modules/ROOT/pages/cljs/up_and_running.adoc
@@ -60,8 +60,8 @@ or in `build.gradle`:
 [source, groovy]
 ----
 dependencies {
-  devImplementation 'nrepl:nrepl:1.2.0'
-  devImplementation 'cider:cider-nrepl:0.49.3'
+  devImplementation 'nrepl:nrepl:1.3.0'
+  devImplementation 'cider:cider-nrepl:0.50.1'
   devImplementation 'cider:cider-piggieback:0.5.3'
 }
 
diff --git a/test/cider-tests.el b/test/cider-tests.el
index 77269f232d..a0f8641993 100644
--- a/test/cider-tests.el
+++ b/test/cider-tests.el
@@ -144,7 +144,7 @@
   (describe "when there is a single dependency"
     (before-each
       (setq-local cider-injected-nrepl-version "0.9.0")
-      (setq-local cider-injected-middleware-version "0.49.3")
+      (setq-local cider-injected-middleware-version "0.50.1")
       (setq-local cider-jack-in-nrepl-middlewares 
'("cider.nrepl/cider-middleware"))
       (setq-local cider-jack-in-dependencies-exclusions '())
       (setq-local cider-enrich-classpath t)
@@ -155,7 +155,7 @@
               :to-equal (concat "update-in :dependencies conj "
                                 (shell-quote-argument "[nrepl/nrepl 
\"0.9.0\"]")
                                 " -- update-in :plugins conj "
-                                (shell-quote-argument "[cider/cider-nrepl 
\"0.49.3\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.50.1\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.3\"]")
                                 " -- update-in :jvm-opts conj 
-Djdk.attach.allowAttachSelf"
@@ -169,7 +169,7 @@
                          "update-in :dependencies conj "
                          (shell-quote-argument "[nrepl/nrepl \"0.9.0\" 
:exclusions [org.clojure/clojure]]")
                          " -- update-in :plugins conj "
-                         (shell-quote-argument "[cider/cider-nrepl 
\"0.49.3\"]")
+                         (shell-quote-argument "[cider/cider-nrepl 
\"0.50.1\"]")
                          " -- update-in :plugins conj "
                          (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.3\"]")
                          " -- update-in :jvm-opts conj 
-Djdk.attach.allowAttachSelf"
@@ -182,7 +182,7 @@
               :to-equal (concat "update-in :dependencies conj "
                                 (shell-quote-argument "[nrepl/nrepl \"0.9.0\" 
:exclusions [org.clojure/clojure foo.bar/baz]]")
                                 " -- update-in :plugins conj "
-                                (shell-quote-argument "[cider/cider-nrepl 
\"0.49.3\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.50.1\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.3\"]")
                                 " -- update-in :jvm-opts conj 
-Djdk.attach.allowAttachSelf"
@@ -196,7 +196,7 @@
                          " -d "
                          (shell-quote-argument "nrepl/nrepl:0.9.0")
                          " -d "
-                         (shell-quote-argument "cider/cider-nrepl:0.49.3")
+                         (shell-quote-argument "cider/cider-nrepl:0.50.1")
                          " cider.tasks/add-middleware"
                          " -m "
                          (shell-quote-argument "cider.nrepl/cider-middleware")
@@ -206,7 +206,7 @@
       (expect (cider-inject-jack-in-dependencies "--no-daemon" ":clojureRepl" 
'gradle)
               :to-equal (concat "--no-daemon "
                                 "-Pjdk.attach.allowAttachSelf "
-                                (shell-quote-argument 
"-Pdev.clojurephant.jack-in.nrepl=nrepl:nrepl:0.9.0,cider:cider-nrepl:0.49.3")
+                                (shell-quote-argument 
"-Pdev.clojurephant.jack-in.nrepl=nrepl:nrepl:0.9.0,cider:cider-nrepl:0.50.1")
                                 " :clojureRepl "
                                 (shell-quote-argument 
"--middleware=cider.nrepl/cider-middleware")))))
 
@@ -223,7 +223,7 @@
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument "[refactor-nrepl 
\"2.0.0\"]")
                                 " -- update-in :plugins conj "
-                                (shell-quote-argument "[cider/cider-nrepl 
\"0.49.3\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.50.1\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.3\"]")
                                 " -- update-in :jvm-opts conj 
-Djdk.attach.allowAttachSelf"
@@ -237,7 +237,7 @@
                                 " -d "
                                 (shell-quote-argument "nrepl/nrepl:0.9.0")
                                 " -d "
-                                (shell-quote-argument 
"cider/cider-nrepl:0.49.3")
+                                (shell-quote-argument 
"cider/cider-nrepl:0.50.1")
                                 " -d "
                                 (shell-quote-argument "refactor-nrepl:2.0.0")
                                 " cider.tasks/add-middleware"
@@ -259,7 +259,7 @@
               :to-equal (concat "-o -U update-in :dependencies conj "
                                 (shell-quote-argument "[nrepl/nrepl 
\"0.9.0\"]")
                                 " -- update-in :plugins conj "
-                                (shell-quote-argument "[cider/cider-nrepl 
\"0.49.3\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.50.1\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.3\"]")
                                 " -- update-in :jvm-opts conj 
-Djdk.attach.allowAttachSelf"
@@ -271,7 +271,7 @@
                                 " -d "
                                 (shell-quote-argument "nrepl/nrepl:0.9.0")
                                 " -d "
-                                (shell-quote-argument 
"cider/cider-nrepl:0.49.3")
+                                (shell-quote-argument 
"cider/cider-nrepl:0.50.1")
                                 " cider.tasks/add-middleware"
                                 " -m "
                                 (shell-quote-argument 
"cider.nrepl/cider-middleware")
@@ -280,7 +280,7 @@
       (expect (cider-inject-jack-in-dependencies "--no-daemon" ":clojureRepl" 
'gradle)
               :to-equal (concat "--no-daemon "
                                 "-Pjdk.attach.allowAttachSelf "
-                                (shell-quote-argument 
"-Pdev.clojurephant.jack-in.nrepl=nrepl:nrepl:0.9.0,cider:cider-nrepl:0.49.3")
+                                (shell-quote-argument 
"-Pdev.clojurephant.jack-in.nrepl=nrepl:nrepl:0.9.0,cider:cider-nrepl:0.50.1")
                                 " :clojureRepl "
                                 (shell-quote-argument 
"--middleware=cider.nrepl/cider-middleware")))))
 
@@ -295,14 +295,14 @@
       (setq-local cider-jack-in-nrepl-middlewares 
'(("refactor-nrepl.middleware/wrap-refactor" :predicate middlewares-predicate) 
"cider.nrepl/cider-middleware" ("another/middleware"))))
     (it "includes plugins whose predicates return true"
       (expect (cider-jack-in-normalized-lein-plugins)
-              :to-equal '(("refactor-nrepl" "2.0.0") ("cider/cider-nrepl" 
"0.49.3"))))
+              :to-equal '(("refactor-nrepl" "2.0.0") ("cider/cider-nrepl" 
"0.50.1"))))
     (it "includes middlewares whose predicates return true"
       (expect (cider-jack-in-normalized-nrepl-middlewares)
               :to-equal '("refactor-nrepl.middleware/wrap-refactor" 
"cider.nrepl/cider-middleware" "another/middleware")))
     (it "ignores plugins whose predicates return false"
       (spy-on 'plugins-predicate :and-return-value nil)
       (expect (cider-jack-in-normalized-lein-plugins)
-              :to-equal '(("cider/cider-nrepl" "0.49.3")))
+              :to-equal '(("cider/cider-nrepl" "0.50.1")))
       (spy-on 'middlewares-predicate :and-return-value nil)
       (expect (cider-jack-in-normalized-nrepl-middlewares)
               :to-equal '("cider.nrepl/cider-middleware" 
"another/middleware")))
@@ -331,7 +331,7 @@
               :and-return-value '("refactor-nrepl.middleware/wrap-refactor" 
"cider.nrepl/cider-middleware"))
       (spy-on 'cider-jack-in-normalized-lein-plugins
               :and-return-value '(("refactor-nrepl" "2.0.0")
-                                  ("cider/cider-nrepl" "0.49.3")
+                                  ("cider/cider-nrepl" "0.50.1")
                                   ("mx.cider/lein-enrich-classpath" "1.19.3")))
       (setq-local cider-jack-in-dependencies-exclusions '())
       (setq-local cider-enrich-classpath t))
@@ -342,7 +342,7 @@
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument "[refactor-nrepl 
\"2.0.0\"]")
                                 " -- update-in :plugins conj "
-                                (shell-quote-argument "[cider/cider-nrepl 
\"0.49.3\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.50.1\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.3\"]")
                                 " -- update-in :jvm-opts conj 
-Djdk.attach.allowAttachSelf"
@@ -361,7 +361,7 @@
                                 " -d "
                                 (shell-quote-argument "nrepl/nrepl:0.9.0")
                                 " -d "
-                                (shell-quote-argument 
"cider/cider-nrepl:0.49.3")
+                                (shell-quote-argument 
"cider/cider-nrepl:0.50.1")
                                 " -d "
                                 (shell-quote-argument "refactor-nrepl:2.0.0")
                                 " cider.tasks/add-middleware"
@@ -456,7 +456,7 @@
       (setq-local cider-jack-in-dependencies nil)
       (setq-local cider-jack-in-nrepl-middlewares 
'("cider.nrepl/cider-middleware"))
       (let ((expected (string-join `("clojure -Sdeps "
-                                     ,(shell-quote-argument "{:deps 
{nrepl/nrepl {:mvn/version \"0.9.0\"} cider/cider-nrepl {:mvn/version 
\"0.49.3\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
+                                     ,(shell-quote-argument "{:deps 
{nrepl/nrepl {:mvn/version \"0.9.0\"} cider/cider-nrepl {:mvn/version 
\"0.50.1\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:cider/nrepl")
                                    "")))
         (setq-local cider-allow-jack-in-without-project t)
@@ -471,7 +471,7 @@
 
     (it "allows specifying custom aliases with `cider-clojure-cli-aliases`"
       (let ((expected (string-join `("clojure -Sdeps "
-                                     ,(shell-quote-argument "{:deps 
{nrepl/nrepl {:mvn/version \"0.9.0\"} cider/cider-nrepl {:mvn/version 
\"0.49.3\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
+                                     ,(shell-quote-argument "{:deps 
{nrepl/nrepl {:mvn/version \"0.9.0\"} cider/cider-nrepl {:mvn/version 
\"0.50.1\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:dev:test:cider/nrepl")
                                    "")))
         (setq-local cider-jack-in-dependencies nil)
@@ -489,7 +489,7 @@
       (it (format "should remove duplicates, yielding the same result (for %S 
command invocation)" command)
         ;; repeat the same test for PowerShell too
         (let ((expected (string-join `("-Sdeps "
-                                       ,(cider--shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.49.3\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}"
+                                       ,(cider--shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.50.1\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}"
                                                                      command)
                                        " -M:dev:test:cider/nrepl")
                                      "")))
@@ -499,7 +499,7 @@
                   :to-equal expected))))
     (it "handles aliases correctly"
       (let ((expected (string-join `("-Sdeps "
-                                     ,(shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.49.3\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
+                                     ,(shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.50.1\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:test:cider/nrepl")
                                    ""))
             (deps '(("nrepl/nrepl" "0.9.0"))))
@@ -527,7 +527,7 @@
                     :to-equal expected)))))
     (it "allows for global options"
         (let ((expected (string-join `("-J-Xverify:none -Sdeps "
-                                       ,(shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.49.3\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
+                                       ,(shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.50.1\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:test:cider/nrepl")
                                    ""))
             (deps '(("nrepl/nrepl" "0.9.0"))))
@@ -538,7 +538,7 @@
       (setq-local cider-jack-in-dependencies '(("org.clojure/tools.deps" 
(("git/sha" . "6ae2b6f71773de7549d7f22759e8b09fec27f0d9")
                                                                           
("git/url" . "https://github.com/clojure/tools.deps/";)))))
       (let ((expected (string-join `("clojure -Sdeps "
-                                     ,(shell-quote-argument "{:deps 
{nrepl/nrepl {:mvn/version \"0.9.0\"} cider/cider-nrepl {:mvn/version 
\"0.49.3\"} org.clojure/tools.deps { :git/sha 
\"6ae2b6f71773de7549d7f22759e8b09fec27f0d9\"  :git/url 
\"https://github.com/clojure/tools.deps/\"; }} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
+                                     ,(shell-quote-argument "{:deps 
{nrepl/nrepl {:mvn/version \"0.9.0\"} cider/cider-nrepl {:mvn/version 
\"0.50.1\"} org.clojure/tools.deps { :git/sha 
\"6ae2b6f71773de7549d7f22759e8b09fec27f0d9\"  :git/url 
\"https://github.com/clojure/tools.deps/\"; }} :aliases {:cider/nrepl {:jvm-opts 
[\"-Djdk.attach.allowAttachSelf\"], :main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:cider/nrepl")
                                    "")))
         (setq-local cider-allow-jack-in-without-project t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]