File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## master (unreleased)
4
4
5
+ * [ #941 ] ( https://github.com/clojure-emacs/cider-nrepl/pull/941 ) : Stop vendoring Fipp dependency.
6
+ * [ #941 ] ( https://github.com/clojure-emacs/cider-nrepl/pull/941 ) : Default to orchard.pp printer when Fipp/Puget/Zprint is selected but not found on classpath.
7
+
5
8
## 0.55.7 (2025-04-29)
6
9
7
10
* [ #939 ] ( https://github.com/clojure-emacs/cider-nrepl/pull/939 ) : Tracker: synchronize access to WeakHashMap cache to prevent infinite loops.
Original file line number Diff line number Diff line change 1
- (def fipp-version " 0.6.26" )
2
-
3
1
(def dev-test-common-profile
4
2
{:dependencies '[[org.clojure/clojurescript " 1.11.60" :scope " provided" ]
5
3
; ; 1.3.7 and 1.4.7 are working, but we need 1.3.7 for JDK8
6
4
[ch.qos.logback/logback-classic " 1.3.7" ]
7
5
[mvxcvi/puget " 1.3.4" :exclusions [org.clojure/clojure]]
6
+ [fipp " 0.6.26" ]
8
7
[org.clojure/test.check " 1.1.1" ]
9
8
[cider/piggieback " 0.6.0" ]
10
9
[nubank/matcher-combinators " 3.9.1" ]]
23
22
:scm {:name " git" :url " https://github.com/clojure-emacs/cider-nrepl" }
24
23
:dependencies [[nrepl/nrepl " 1.3.1" :exclusions [org.clojure/clojure]]
25
24
[cider/orchard " 0.34.3" :exclusions [org.clojure/clojure]]
26
- ^:inline-dep [fipp ~fipp-version] ; can be removed in unresolved-tree mode
27
25
^:inline-dep [compliment " 0.7.0" ]
28
26
^:inline-dep [org.rksm/suitable " 0.6.2" :exclusions [org.clojure/clojure
29
27
org.clojure/clojurescript]]
49
47
'[[thomasa/mranderson " 0.5.4-SNAPSHOT" ]])
50
48
51
49
:mranderson {:project-prefix " cider.nrepl.inlined.deps"
52
- :overrides {[fipp] [fipp ~fipp-version]} ; only takes effect in unresolved-tree mode
53
- :expositions [[fipp]] ; only takes effect unresolved-tree mode
54
50
:unresolved-tree false }
55
51
56
52
:filespecs [{:type :bytes :path " cider/cider-nrepl/project.clj" :bytes ~(slurp " project.clj" )}]
Original file line number Diff line number Diff line change 62
62
(pp/pprint writer value options)))
63
63
64
64
(def ^:private fipp-printer
65
- (delay (requiring -resolve 'fipp.edn/pprint)))
65
+ (delay (try -resolve 'fipp.edn/pprint " Fipp " )))
66
66
67
67
(defn fipp-pprint
68
68
([value writer]
69
69
(fipp-pprint value writer {}))
70
70
([value writer options]
71
- (binding [*out* writer]
72
- (@fipp-printer value options))))
71
+ (if-some [fipp @fipp-printer]
72
+ (binding [*out* writer]
73
+ (fipp value options))
74
+ ; ; Default to orchard.pp/pprint if Fipp could not be loaded.
75
+ (pp/pprint writer value options))))
73
76
74
77
(def ^:private puget-printer
75
78
(delay (try-resolve 'puget.printer/pprint " Puget" )))
You can’t perform that action at this time.
0 commit comments