clj-yaml

kwladyka 2023-03-04T19:51:32.780839Z

@kwladyka has joined the channel

kwladyka 2023-03-04T19:51:58.927399Z

When read large YAML

The incoming YAML document exceeds the limit: 3145728 code points.
the code_point_limit is needed to overwrite, but I didn’t find a way to do this with clj-yaml. How do you read large YAML files?

borkdude 2023-03-04T20:07:05.001749Z

@kwladyka There isn't currently an option, but you can call make-loader followed by (.setCodePointLimit ...) on it. But I don't see where you can then pass that loader. That should probably be added as well, along with an explicit option for the :code-point-limit - what do you think @lee?

👍 1
lread 2023-03-04T20:07:56.888699Z

Ya, was just typing similar!

borkdude 2023-03-04T20:08:33.137159Z

Issue welcome @kwladyka - optionally also a PR, if you're in for it

kwladyka 2023-03-04T20:10:58.752049Z

https://github.com/clj-commons/clj-yaml/issues/94

borkdude 2023-03-04T20:12:28.043569Z

@kwladyka Are you comfortable doing a PR yourself or would you rather defer to us?

kwladyka 2023-03-04T20:13:59.504219Z

sorry, this is very side thing for hobby and I am very tired last time to take more coding

borkdude 2023-03-04T20:14:32.436599Z

no problem :)

👍 1