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

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

[nongnu] elpa/cider 66d091a1d6 1/4: Use cider-nrepl 0.45.0


From: ELPA Syncer
Subject: [nongnu] elpa/cider 66d091a1d6 1/4: Use cider-nrepl 0.45.0
Date: Sun, 14 Jan 2024 18:59:37 -0500 (EST)

branch: elpa/cider
commit 66d091a1d6005cc284ed4cd325675ed6b2bedc3f
Author: vemv <vemv@users.noreply.github.com>
Commit: vemv <vemv@users.noreply.github.com>

    Use cider-nrepl 0.45.0
    
    
https://github.com/clojure-emacs/cider-nrepl/blob/v0.45.0/CHANGELOG.md#0450-2024-01-14
---
 CHANGELOG.md                                       |  6 +++
 cider-log.el                                       |  2 +-
 cider.el                                           |  2 +-
 dev/docker-sample-project/project.clj              |  2 +-
 dev/tramp-sample-project/project.clj               |  2 +-
 doc/modules/ROOT/pages/about/compatibility.adoc    |  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    |  2 +-
 doc/modules/ROOT/pages/debugging/logging.adoc      |  3 +-
 test/cider-tests.el                                | 44 +++++++++++-----------
 12 files changed, 44 insertions(+), 39 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5976fc3e09..3f42e0fd4d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,8 +5,14 @@
 ### Changes
 
 - [#3588](https://github.com/clojure-emacs/cider/issues/3588): Compatibility 
with pwsh 7.3 quoting rules.
+- Introduce the `cider-log-show` function.
+  - Please refer to the (slightly revamped) [CIDER Log Mode 
guide](https://docs.cider.mx/cider/debugging/logging.html).
 - Bump the injected `enrich-classpath` to 
[1.19.0](https://github.com/clojure-emacs/enrich-classpath/compare/v1.18.6...v1.19.0).
 - Bump the `parseedn` required version to 1.2.1.
+- Bump the injected `cider-nrepl` to 
[0.45.0](https://github.com/clojure-emacs/cider-nrepl/blob/v0.45.0/CHANGELOG.md#0450-2024-01-14).
+  - Introduces Timbre compatibility for [CIDER Log 
Mode](https://docs.cider.mx/cider/debugging/logging.html).
+  - Fixes JS completions for nested objects.
+  - Bundles other fixes and reliability improvements.
 
 ## 1.12.0 (2023-11-24)
 
diff --git a/cider-log.el b/cider-log.el
index b43eaa92ee..188e889302 100644
--- a/cider-log.el
+++ b/cider-log.el
@@ -42,7 +42,7 @@
 You may want to set this in .dir-locals.el,
 for a more streamlined setup.
 
-Example value: \"Logback\"."
+Example values: \"Logback\", \"Timbre\"."
   :group 'cider
   :package-version '(cider . "1.8.0")
   :safe #'stringp
diff --git a/cider.el b/cider.el
index e74b14d54a..760adb8f67 100644
--- a/cider.el
+++ b/cider.el
@@ -527,7 +527,7 @@ the artifact.")
 (defconst cider-latest-clojure-version "1.10.1"
   "Latest supported version of Clojure.")
 
-(defconst cider-required-middleware-version "0.44.0"
+(defconst cider-required-middleware-version "0.45.0"
   "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 9a1c1e9668..19ceb78864 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.44.0"]])
+  :plugins [[cider/cider-nrepl "0.45.0"]])
diff --git a/dev/tramp-sample-project/project.clj 
b/dev/tramp-sample-project/project.clj
index ff1d91caf3..250307e1fc 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.44.0"]
+  :plugins [[cider/cider-nrepl "0.45.0"]
             [refactor-nrepl "3.9.0"]])
diff --git a/doc/modules/ROOT/pages/about/compatibility.adoc 
b/doc/modules/ROOT/pages/about/compatibility.adoc
index 6c7380bc9a..da9ba09c1f 100644
--- a/doc/modules/ROOT/pages/about/compatibility.adoc
+++ b/doc/modules/ROOT/pages/about/compatibility.adoc
@@ -166,7 +166,7 @@ Below you can find the official compatibility matrix for 
CIDER.
 | 1.0
 | 0.44
 | 8
-| 1.8
+| 1.9
 
 |===
 
diff --git a/doc/modules/ROOT/pages/basics/middleware_setup.adoc 
b/doc/modules/ROOT/pages/basics/middleware_setup.adoc
index 71b252eaa8..91fca0b13f 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.44.0"]]
+:plugins [[cider/cider-nrepl "0.45.0"]]
 ----
 
 A minimal `profiles.clj` for CIDER would be:
 
 [source,clojure]
 ----
-{:repl {:plugins [[cider/cider-nrepl "0.44.0"]]}}
+{:repl {:plugins [[cider/cider-nrepl "0.45.0"]]}}
 ----
 
 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.44.0"]])
+       concat '[[cider/cider-nrepl "0.45.0"]])
 
 (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.44.0"}}
+  :cider-clj {:extra-deps {cider/cider-nrepl {:mvn/version "0.45.0"}}
               :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.44.0"}
+                            cider/cider-nrepl {:mvn/version "0.45.0"}
                             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.44.0'
+  devImplementation 'cider:cider-nrepl:0.45.0'
 }
 
 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 394da058f5..95653307ca 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 "0.6.0"} cider/cider-nrepl 
{:mvn/version "0.44.0"}}}' -m nrepl.cmdline --middleware 
'["cider.nrepl/cider-middleware"]'
+  $ clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl 
{:mvn/version "0.45.0"}}}' -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
@@ -318,7 +318,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.44.0"}}}' -m 
nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
+$ clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.45.0"}}}' -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 1f1729ca91..244d330546 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.44.0"] ;; 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.45.0"] ;; 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 aa027f7049..c8c14630a3 100644
--- a/doc/modules/ROOT/pages/cljs/up_and_running.adoc
+++ b/doc/modules/ROOT/pages/cljs/up_and_running.adoc
@@ -61,7 +61,7 @@ or in `build.gradle`:
 ----
 dependencies {
   devImplementation 'nrepl:nrepl:0.9.0'
-  devImplementation 'cider:cider-nrepl:0.44.0'
+  devImplementation 'cider:cider-nrepl:0.45.0'
   devImplementation 'cider:cider-piggieback:0.5.3'
 }
 
diff --git a/doc/modules/ROOT/pages/debugging/logging.adoc 
b/doc/modules/ROOT/pages/debugging/logging.adoc
index e061b3e78b..d7d72af614 100644
--- a/doc/modules/ROOT/pages/debugging/logging.adoc
+++ b/doc/modules/ROOT/pages/debugging/logging.adoc
@@ -155,6 +155,7 @@ At the moment the following log frameworks are supported:
 
 - 
https://docs.oracle.com/en/java/javase/19/core/java-logging-overview.html[Java 
Util Logging]
 - https://logback.qos.ch[Logback]
+- https://github.com/taoensso/timbre[Timbre]
 
 There is some https://github.com/clojure-emacs/logjam/issues/2[work in
 progress] to support https://logging.apache.org/log4j/2.x/[Log4j] as
@@ -163,8 +164,6 @@ https://stackoverflow.com/a/17842174/12711900[difficulties] 
with
 configuration changes made at runtime, which are wiped out by the
 Log4j2 reconfiguration mechanism.
 
-Timbre support is WIP as well.
-
 TIP: If your logging framework of choice is not currently supported by CIDER 
Log Mode,
 you can opt to use Clojure's official `tools.logging` façade in your project, 
such that you can locally,
 unobstrusively tell it to use a supported framework (like Logback) instead of 
your project's default one.
diff --git a/test/cider-tests.el b/test/cider-tests.el
index 4891c1864f..a3814b82ce 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.44.0")
+      (setq-local cider-injected-middleware-version "0.45.0")
       (setq-local cider-jack-in-nrepl-middlewares 
'("cider.nrepl/cider-middleware"))
       (setq-local cider-jack-in-dependencies-exclusions '())
       (setq-local cider-enrich-classpath t))
@@ -154,7 +154,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.44.0\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.45.0\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.0\"]")
                                 " -- update-in :middleware conj 
cider.enrich-classpath.plugin-v2/middleware"
@@ -167,7 +167,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.44.0\"]")
+                         (shell-quote-argument "[cider/cider-nrepl 
\"0.45.0\"]")
                          " -- update-in :plugins conj "
                          (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.0\"]")
                          " -- update-in :middleware conj 
cider.enrich-classpath.plugin-v2/middleware"
@@ -179,7 +179,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.44.0\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.45.0\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.0\"]")
                                 " -- update-in :middleware conj 
cider.enrich-classpath.plugin-v2/middleware"
@@ -192,7 +192,7 @@
                          " -d "
                          (shell-quote-argument "nrepl/nrepl:0.9.0")
                          " -d "
-                         (shell-quote-argument "cider/cider-nrepl:0.44.0")
+                         (shell-quote-argument "cider/cider-nrepl:0.45.0")
                          " cider.tasks/add-middleware"
                          " -m "
                          (shell-quote-argument "cider.nrepl/cider-middleware")
@@ -201,7 +201,7 @@
     (it "can inject dependencies in a gradle project"
       (expect (cider-inject-jack-in-dependencies "--no-daemon" ":clojureRepl" 
'gradle)
               :to-equal (concat "--no-daemon "
-                                (shell-quote-argument 
"-Pdev.clojurephant.jack-in.nrepl=nrepl:nrepl:0.9.0,cider:cider-nrepl:0.44.0")
+                                (shell-quote-argument 
"-Pdev.clojurephant.jack-in.nrepl=nrepl:nrepl:0.9.0,cider:cider-nrepl:0.45.0")
                                 " :clojureRepl "
                                 (shell-quote-argument 
"--middleware=cider.nrepl/cider-middleware")))))
 
@@ -218,7 +218,7 @@
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument "[refactor-nrepl 
\"2.0.0\"]")
                                 " -- update-in :plugins conj "
-                                (shell-quote-argument "[cider/cider-nrepl 
\"0.44.0\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.45.0\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.0\"]")
                                 " -- update-in :middleware conj 
cider.enrich-classpath.plugin-v2/middleware"
@@ -231,7 +231,7 @@
                                 " -d "
                                 (shell-quote-argument "nrepl/nrepl:0.9.0")
                                 " -d "
-                                (shell-quote-argument 
"cider/cider-nrepl:0.44.0")
+                                (shell-quote-argument 
"cider/cider-nrepl:0.45.0")
                                 " -d "
                                 (shell-quote-argument "refactor-nrepl:2.0.0")
                                 " cider.tasks/add-middleware"
@@ -253,7 +253,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.44.0\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.45.0\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.0\"]")
                                 " -- update-in :middleware conj 
cider.enrich-classpath.plugin-v2/middleware"
@@ -264,7 +264,7 @@
                                 " -d "
                                 (shell-quote-argument "nrepl/nrepl:0.9.0")
                                 " -d "
-                                (shell-quote-argument 
"cider/cider-nrepl:0.44.0")
+                                (shell-quote-argument 
"cider/cider-nrepl:0.45.0")
                                 " cider.tasks/add-middleware"
                                 " -m "
                                 (shell-quote-argument 
"cider.nrepl/cider-middleware")
@@ -272,7 +272,7 @@
     (it "can concat in a gradle project"
       (expect (cider-inject-jack-in-dependencies "--no-daemon" ":clojureRepl" 
'gradle)
               :to-equal (concat "--no-daemon "
-                                (shell-quote-argument 
"-Pdev.clojurephant.jack-in.nrepl=nrepl:nrepl:0.9.0,cider:cider-nrepl:0.44.0")
+                                (shell-quote-argument 
"-Pdev.clojurephant.jack-in.nrepl=nrepl:nrepl:0.9.0,cider:cider-nrepl:0.45.0")
                                 " :clojureRepl "
                                 (shell-quote-argument 
"--middleware=cider.nrepl/cider-middleware")))))
 
@@ -287,14 +287,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.44.0"))))
+              :to-equal '(("refactor-nrepl" "2.0.0") ("cider/cider-nrepl" 
"0.45.0"))))
     (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.44.0")))
+              :to-equal '(("cider/cider-nrepl" "0.45.0")))
       (spy-on 'middlewares-predicate :and-return-value nil)
       (expect (cider-jack-in-normalized-nrepl-middlewares)
               :to-equal '("cider.nrepl/cider-middleware" 
"another/middleware")))
@@ -323,7 +323,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.44.0")
+                                  ("cider/cider-nrepl" "0.45.0")
                                   ("mx.cider/lein-enrich-classpath" "1.19.0")))
       (setq-local cider-jack-in-dependencies-exclusions '())
       (setq-local cider-enrich-classpath t))
@@ -334,7 +334,7 @@
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument "[refactor-nrepl 
\"2.0.0\"]")
                                 " -- update-in :plugins conj "
-                                (shell-quote-argument "[cider/cider-nrepl 
\"0.44.0\"]")
+                                (shell-quote-argument "[cider/cider-nrepl 
\"0.45.0\"]")
                                 " -- update-in :plugins conj "
                                 (shell-quote-argument 
"[mx.cider/lein-enrich-classpath \"1.19.0\"]")
                                 " -- update-in :middleware conj 
cider.enrich-classpath.plugin-v2/middleware"
@@ -352,7 +352,7 @@
                                 " -d "
                                 (shell-quote-argument "nrepl/nrepl:0.9.0")
                                 " -d "
-                                (shell-quote-argument 
"cider/cider-nrepl:0.44.0")
+                                (shell-quote-argument 
"cider/cider-nrepl:0.45.0")
                                 " -d "
                                 (shell-quote-argument "refactor-nrepl:2.0.0")
                                 " cider.tasks/add-middleware"
@@ -447,7 +447,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.44.0\"}} :aliases {:cider/nrepl {: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.45.0\"}} :aliases {:cider/nrepl {:main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:cider/nrepl")
                                    "")))
         (setq-local cider-allow-jack-in-without-project t)
@@ -461,7 +461,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.44.0\"}} :aliases {:cider/nrepl {: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.45.0\"}} :aliases {:cider/nrepl {:main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:dev:test:cider/nrepl")
                                    "")))
         (setq-local cider-jack-in-dependencies nil)
@@ -478,7 +478,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.44.0\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}"
+                                       ,(cider--shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.45.0\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}"
                                                                      command)
                                        " -M:dev:test:cider/nrepl")
                                      "")))
@@ -488,7 +488,7 @@
                   :to-equal expected))))
     (it "handles aliases correctly"
       (let ((expected (string-join `("-Sdeps "
-                                     ,(shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.44.0\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
+                                     ,(shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.45.0\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:test:cider/nrepl")
                                    ""))
             (deps '(("nrepl/nrepl" "0.9.0"))))
@@ -516,7 +516,7 @@
                     :to-equal expected)))))
     (it "allows for global options"
       (let ((expected (string-join `("-J-Djdk.attach.allowAttachSelf -Sdeps "
-                                     ,(shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.44.0\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
+                                     ,(shell-quote-argument "{:deps 
{cider/cider-nrepl {:mvn/version \"0.45.0\"} nrepl/nrepl {:mvn/version 
\"0.9.0\"}} :aliases {:cider/nrepl {:main-opts [\"-m\" \"nrepl.cmdline\" 
\"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}")
                                      " -M:test:cider/nrepl")
                                    ""))
             (deps '(("nrepl/nrepl" "0.9.0"))))
@@ -527,7 +527,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.44.0\"} org.clojure/tools.deps { :git/sha 
\"6ae2b6f71773de7549d7f22759e8b09fec27f0d9\"  :git/url 
\"https://github.com/clojure/tools.deps/\"; }} :aliases {:cider/nrepl 
{: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.45.0\"} org.clojure/tools.deps { :git/sha 
\"6ae2b6f71773de7549d7f22759e8b09fec27f0d9\"  :git/url 
\"https://github.com/clojure/tools.deps/\"; }} :aliases {:cider/nrepl 
{: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]