shadow-cljs icon indicating copy to clipboard operation
shadow-cljs copied to clipboard

View as EDN breaks on large data structure

Open pastafari opened this issue 3 years ago • 2 comments

Hi @thheller - thanks for your work on the Inspect feature. It is beautiful <3

Steps to Reproduce

  1. (tap> my-large-vector-of-maps-and-things) ;; ~6000 entities
  2. Inspect via shadow-cljs inspector
  3. Click on View as EDN
  4. Gets Stuck in "Loading..." state on the viewer
  5. Click on View as Browse and it loads the data again.

Potentially useful debugging data: I see this error consistently in the console Screenshot 2020-12-03 at 11 24 40

Further Info:

  1. View as EDN works fine with smaller vectors with maps in them, etc.

Please let me know if I can provide any further info or help with tracking this down!

pastafari avatar Dec 03 '20 10:12 pastafari

Printing EDN currently caps out of 1mb to avoid printing forever. The UI just doens't handle the error correctly yet. There probably should be a way to increase the cap too.

Any reason you want the actual EDN?

thheller avatar Dec 03 '20 10:12 thheller

Any reason you want the actual EDN?

I wanted to dump it into a file

pastafari avatar Dec 03 '20 11:12 pastafari