JerryI / wolfram-js-frontend

Dynamic Notebook Environment for Wolfram Language written in Javascript
https://jerryi.github.io/wljs-docs/
GNU General Public License v3.0
277 stars 13 forks source link

Can't display a long list of DateObject or Quantity objects #278

Closed JerryI closed 3 weeks ago

JerryI commented 3 weeks ago

Discussed in https://github.com/JerryI/wolfram-js-frontend/discussions/277

Originally posted by **Hachann** September 5, 2024 Hello, `RandomDate[n]` outputs a list of Dates (`DateObject` Head) up to n = 147. Starting at n = 148, there is no output. `Differences @ RandomDate[n]` outputs a list of dates differences (`Quantity` Head) up to n = 206. Starting at n = 207, there is no output.
JerryI commented 3 weeks ago

In general this is correct. We have probably seen something like this

Screenshot 2024-09-05 at 13 03 43

This is natural limitations of big outputs. If we allow bigger, then our editor (CodeMirror 6) struggles to render all of it. In order not to affect UX, we limit the maximum output length (as characters).

Hachann commented 3 weeks ago

I don't get to output the "Too long to display" mention you seem to have, which is nice actually, but either an error message or sometimes even nothing. The computation is done and the data is retrievable for later transformations. image

JerryI commented 3 weeks ago

I don't get to output the "Too long to display" mention you seem to have, which is nice actually, but either an error message or sometimes even nothing. The computation is done and the data is retrievable for later transformations. image

I see. Now the differences between linux's Chromium browser and Windows/OSX kick in. Try to Menu -> Reload Window

JerryI commented 3 weeks ago

I don't get to output the "Too long to display" mention you seem to have, which is nice actually, but either an error message or sometimes even nothing. The computation is done and the data is retrievable for later transformations. image

I still could not reproduce it on my Linux machine. In a case if something similar shows up new window.CellWrapper, could you please share logs with us?

Hachann commented 3 weeks ago

Sure, this is the error message :

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'view')
    at new window.CellWrapper (module.js:465:64)
    at core.UINotebook.NewCell (/home/hachann/Wolfram Language/wln notebooks/start.wln:1350:17)
Hachann commented 3 weeks ago

Is this verbose enough ?

image

JerryI commented 3 weeks ago

I don't get to output the "Too long to display" mention you seem to have, which is nice actually, but either an error message or sometimes even nothing. The computation is done and the data is retrievable for later transformations. image

I see. Now the differences between linux's Chromium browser and Windows/OSX kick in. Try to top Menu -> Reload Window

If you do this on the page with errors, does it change anything?

Hachann commented 3 weeks ago

No, display stays the same after the reload

JerryI commented 3 weeks ago

Resolved in a 2.5.6 release