-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind *print-length* to false in EDN serde #22
Conversation
src/jackdaw/serdes/edn.clj
Outdated
@@ -23,7 +23,9 @@ | |||
[] | |||
(jsfn/new-serializer {:serialize (fn [_ _ data] | |||
(when data | |||
(to-bytes (prn-str data))))})) | |||
(to-bytes | |||
(binding [*print-length* false] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also bind *print-level*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arrdem done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks again!
Thanks, as well for jackdaw! |
Hi @r0man and thanks for your PR, we just fixed the build now for external PRs, could you please rebase your branch on master to allow CircleCI to do its job? |
@AndreaCrotti done |
b33f489
to
f8cd937
Compare
Looks like |
Collections with more than 100 elements currently get truncated, due to *print-length* being bound to 100 by default. This patch binds the var to false when printing in the EDN serde, which makes round-tripping of larger collections possible.
@99-not-out done |
@99-not-out Hmm, now the build failed, because of the |
Ah - I will raise an issue and merge this PR based on the issue being a pre-existing one. |
Collections with more than 100 elements currently get truncated, due
to print-length being bound to 100 by default.
This patch binds the var to false when printing in the EDN serde,
which makes round-tripping of larger collections possible.