Skip to content

Commit 06e44ba

Browse files
Bump Orchard version
1 parent f3d2690 commit 06e44ba

File tree

8 files changed

+11
-16
lines changed

8 files changed

+11
-16
lines changed

.circleci/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,12 @@ workflows:
175175
<<: *tags_filter
176176
- test:
177177
# We have source for JDK21, so with this JDK version we also perform
178-
# Java parser tests (for both regular parser and parser-next).
178+
# Java parser tests.
179179
matrix:
180180
alias: "test_with_sources"
181181
parameters:
182182
clojure_version: ["1.10", "1.11", "1.12"]
183183
jdk_version: [jdk21]
184-
parser_target: ["parser", "parser-next"]
185184
filters:
186185
branches:
187186
only: /.*/

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master (unreleased)
44

5+
* Bump `orchard` to [0.28.0](https://github.com/clojure-emacs/orchard/blob/master/CHANGELOG.md#0280-2024-10-31).
56
* [#885 (partial)](https://github.com/clojure-emacs/cider-nrepl/issues/885): Limited update to `info` op doc (`arglists-str`, `file`, `line`, `column`, `name` and `ns` return keys).
67

78
## 0.50.2 (2024-09-03)

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ target/srcdeps: project.clj
4040
rm -f target/srcdeps/cider/nrepl/inlined/deps/cljfmt/*/cljfmt/main.clj
4141

4242
test_impl: base-src.zip
43-
@if [[ "$$PARSER_TARGET" == "parser-next" ]] ; then \
44-
lein with-profile $(TEST_PROFILES),+$(CLOJURE_VERSION),+parser-next test; \
45-
else \
46-
lein with-profile $(TEST_PROFILES),+$(CLOJURE_VERSION) test; \
47-
fi
43+
lein with-profile $(TEST_PROFILES),+$(CLOJURE_VERSION) test
4844

4945
test: target/srcdeps
5046
@make test_impl TEST_PROFILES="$(TEST_PROFILES),+plugin.mranderson/config"

project.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
:url "http://www.eclipse.org/legal/epl-v10.html"}
5252
:scm {:name "git" :url "https://github.com/clojure-emacs/cider-nrepl"}
5353
:dependencies [[nrepl "1.1.1" :exclusions [org.clojure/clojure]]
54-
[cider/orchard "0.27.2" :exclusions [org.clojure/clojure]]
54+
[cider/orchard "0.28.0" :exclusions [org.clojure/clojure]]
5555
^:inline-dep [mx.cider/haystack "0.3.3" :exclusions [cider/orchard]]
5656
^:inline-dep [thunknyc/profile "0.5.2"]
5757
^:inline-dep [mvxcvi/puget "1.3.4" :exclusions [org.clojure/clojure]]
@@ -140,9 +140,6 @@
140140
commons-codec
141141
com.google.code.findbugs/jsr305]]))
142142

143-
:parser-next {:jvm-opts ["--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED"
144-
"--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED"]}
145-
146143
;; Need ^:repl because of: https://github.com/technomancy/leiningen/issues/2132
147144
:repl ^:repl [:test
148145
{:repl-options {:nrepl-middleware [cider.nrepl/wrap-apropos

src/cider/nrepl.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
;; Perform the underlying dynamic `require`s asap, and also not within a separate thread
4848
;; (note the `future` used in `#'initializer`),
4949
;; since `require` is not thread-safe:
50-
@@orchard.java/parser-next-available?
50+
(orchard.java/source-info `String)
5151
@analyzer/spec-abbrev
5252

5353
(defn warmup-orchard-caches!

test/clj/cider/nrepl/middleware/info_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
(is (= "a macro for testing" (:doc response)))
167167
(is (nil? (:spec response)))))
168168

169-
(when (and jdk-sources-present? @@orchard.java/parser-next-available?)
169+
(when jdk-sources-present?
170170
(testing "'fragments' attributes are returned"
171171
(let [{:keys [doc-fragments doc-first-sentence-fragments doc-block-tags-fragments]
172172
:as response}
@@ -412,7 +412,7 @@
412412
(is (not (contains? response :ns)))
413413
(is (= "function" (:type response)))))))
414414

415-
(when @@orchard.java/parser-next-available?
415+
(when jdk-sources-present?
416416
(testing "Fragments for java interop method with single class"
417417
(let [{:keys [doc-fragments doc-first-sentence-fragments doc-block-tags-fragments]
418418
:as response}

test/clj/cider/nrepl/middleware/inspect_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@
762762
(is (= 7 @inspect-tap-current-value-test-atom))))
763763

764764
(deftest doc-fragments-test
765-
;; This test is only runnable when JDK sources are present and with parser-next.
766-
(when (and info-test/jdk-sources-present? @@orchard.java/parser-next-available?)
765+
;; This test is only runnable when JDK sources are present.
766+
(when info-test/jdk-sources-present?
767767
(testing "Responses for classes, methods and fields contain `:doc-fragments` attributes"
768768
(doseq [code ["java.lang.Thread"
769769
"(-> java.lang.Thread .getMethods first)"

test/cljs/cider/nrepl/middleware/cljs_inspect_test.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
'("Class: "
1414
(:value "clojure.lang.Cons" 0)
1515
(:newline)
16+
"Count: " "2"
17+
(:newline)
1618
(:newline)
1719
"--- Contents:"
1820
(:newline)

0 commit comments

Comments
 (0)