This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-29
Channels
- # babashka (64)
- # beginners (60)
- # calva (10)
- # circleci (3)
- # clj-kondo (62)
- # cljdoc (6)
- # clojars (2)
- # clojure (152)
- # clojure-europe (19)
- # clojure-nl (3)
- # clojure-uk (18)
- # clojurescript (50)
- # clojureverse-ops (12)
- # core-async (21)
- # cursive (6)
- # data-science (1)
- # datomic (17)
- # events (14)
- # fulcro (64)
- # graalvm (20)
- # graphql (5)
- # honeysql (14)
- # jackdaw (3)
- # jobs (1)
- # jobs-discuss (22)
- # kaocha (2)
- # lsp (9)
- # luminus (8)
- # malli (30)
- # meander (31)
- # other-languages (1)
- # polylith (8)
- # re-frame (15)
- # shadow-cljs (85)
- # specter (2)
- # sql (11)
- # tools-deps (56)
- # vim (39)
- # vscode (7)
- # xtdb (16)
Hi! When evaluating something like a vector with more than 50 items, the output window only shows the first 50 and then an ellipsis. How to get all the items displayed?
:rebl {:extra-deps {org.clojure/core.async {:mvn/version "1.3.618"}
org.clojure/data.csv {:mvn/version "1.0.0"}
org.clojure/data.json {:mvn/version "2.3.1"}
org.yaml/snakeyaml {:mvn/version "1.28"}
; com.cognitect/rebl {:mvn/version "0.9.242"}
org.openjfx/javafx-fxml {:mvn/version "15-ea+6"}
org.openjfx/javafx-controls {:mvn/version "15-ea+6"}
org.openjfx/javafx-swing {:mvn/version "15-ea+6"}
org.openjfx/javafx-base {:mvn/version "15-ea+6"}
org.openjfx/javafx-web {:mvn/version "15-ea+6"}
com.cognitect/rebl {:local/root "C:\\Trabalho\\Dev\\lib\\rebl-0.9.242.jar"}}
:main-opts ["-e" "(->>(Thread/currentThread)(.getContextClassLoader)(clojure.lang.DynamicClassLoader.)(.setContextClassLoader,(Thread/currentThread)))"
"-m" "cognitect.rebl"]}
:nrebl {:extra-deps {rickmoynihan/nrebl.middleware {:mvn/version "0.2.0"}}
:main-opts ["-e" "((requiring-resolve,'cognitect.rebl/ui))" "-m" "nrepl.cmdline" "--middleware" "[nrebl.middleware/wrap-nrebl]" "-I"]}
include this in deps.edn
and run bothIn your pretty printing settings you can set maxLength
. https://calva.io/pprint/#configuration
If you set it to null
I think it will print however many items you want, just be mindful of infinite sequences.
Example configuration:
"calva.prettyPrintingOptions": {
"enabled": true,
"printEngine": "pprint",
"width": 120,
"maxLength": 200
}
You may also be able to control the print length dynamically if you wanted, though it may be better to just use the pprint configuration: https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/*print-length*
Yes, @U9A1RLFNV it seems that by setting it to null
it prints all the items (I also tried removing the maxLength
property but then it prints the default 50 items).
Thank you all for the tips!
It seems that you can just jack-in with an alias with the right extra-deps as in this guide: https://calva.io/rebl/. Let us know if you have trouble with that.