nextjournal

sparkofreason 2021-10-18T16:08:21.227600Z

I'm expanding an array of maps, can successfully open the array, then an item. Item is rendered with several keys, followed by 10 more.... Clicking on that gives Rendering error. Is this a known issue?

sparkofreason 2021-10-19T15:18:58.256300Z

Yes, thank you! This may have been mentioned before: after a map has been "pretty printed" vertically by clicking {, hitting the ... button flips it back to horizontal. Clicking { again puts it back to vertical layout with the extra fields.

mkvlr 2021-10-19T15:21:47.258Z

ah right; one down and one 🐞 added to the list

🐞 1
sparkofreason 2021-10-19T15:26:11.261500Z

I also see a lot of these:

#object[TypeError TypeError: Failed to fetch]
Is this an issue with my notebook code?

mkvlr 2021-10-19T15:32:51.266300Z

An issue with Clerk's code, not yours. Could you provide a repro?

sparkofreason 2021-10-19T15:34:15.266500Z

Let me see if I can figure one out that isn't all tangled up in SQL queries.

mkvlr 2021-10-19T16:04:24.267500Z

what SQL lib are you using?

mkvlr 2021-10-19T16:06:03.268500Z

there's a small sqlite db in https://github.com/nextjournal/clerk-demo/blob/main/notebooks/how_clerk_works.clj#L61 maybe this helps with the repro

sparkofreason 2021-10-20T16:37:21.269500Z

I have a hunch this and some other issues I was seeing might have been related to cache persisting across different versions of clerk. I did a clerk/clear-cache!, so far things are looking much better.

mkvlr 2021-10-20T16:41:22.270800Z

ah good, thinking if we can make that unnecessary

sparkofreason 2021-10-20T16:50:30.271Z

I think the root cause was that some value for a Java object had gotten cached with the nippy unthawable map. Then it would throw in some situations that it couldn't find the Java method on PersistentHashMap. The clue was that when I changed the constructor parameters to that class, I couldn't repro anymore, so I'm assuming it was cache.

sparkofreason 2021-10-20T17:04:12.271200Z

And great work on this. clerk is exactly the tool I've been wanting forever, never had the time to really tackle it myself. Thank you!

❤️ 1
mkvlr 2021-10-20T17:19:47.271900Z

Aww, that's awesome, thank you!

mkvlr 2021-10-18T21:37:09.229600Z

We've got an unreleased fix related to lazy loading but would be great if you had a small repro so we can make sure it's that. Thanks!

mkvlr 2021-10-18T21:38:12.230400Z

but I'm pretty sure it's that, should just cut a release…

mkvlr 2021-10-18T21:52:18.230600Z

can you try https://clojars.org/io.github.nextjournal/clerk/versions/0.1.179 let me know if it’s fixed there? Thank you!

mkvlr 2021-10-18T21:55:49.231600Z

just released https://clojars.org/io.github.nextjournal/clerk/versions/0.1.179 with three small fixes (https://nextjournal.com/mk/clerk-preview/edit#0.1.179): • Fix lazy loading for non-root elements • Fix exception when lazy loading end of string • Fix regression in `clerk/clear-cache!`

👍 2
❤️ 5