feenkcom / gtoolkit

Glamorous Toolkit is the Moldable Development environment. It empowers you to make systems explainable through experiences tailored for each problem.
https://gtoolkit.com
MIT License
1.11k stars 48 forks source link

Not all snippet outputs retained when there are many in a Lepiter page or Playground #2365

Open ssuon opened 2 years ago

ssuon commented 2 years ago

When I execute 8+ snippets in a Lepiter page or Playground, GT starts hiding some of the earlier outputs. The result is that only a portion will continue to display their outputs.

This was reproducible in recent versions 1155 and 1156 and older versions 989 and 1128, and on Mac and Linux.

https://user-images.githubusercontent.com/13088037/149147794-2c65f2bb-8710-4661-87da-75a5a2b744ab.mp4

@girba notes:

this happens because the tree widget of lepiter does not remember the preview, and when the element in the tree gets recycled, it does not reinstall that preview.

botwhytho commented 2 years ago

I also see multiple preview 'icons' (grey circle) in some snippets, when it seems like there should only be one. I had experienced this a very long time ago but couldn't replicate consistently.

ssuon commented 2 years ago

@botwhytho , I am able to reproduce the multiple dots very consistently. Perhaps because I run the same code repeatedly?

girba commented 2 years ago

The dots and the preview have a similar cause and the appear only when you scroll a code snippet out of view and then scroll back to it.