ccrma / webchuck-ide

A Web-Based Programming Sandbox for ChucK
https://chuck.stanford.edu/ide
MIT License
12 stars 2 forks source link

Shred created by Machine.add() is lost #9

Closed lmaxwell closed 7 months ago

lmaxwell commented 11 months ago

To reproduce: upload a hello.ck file, execute "Machine.add("hello,ck")" from editor.

The shred related to hello.ck is not visible in the visualizer and also cannot be removed by the "Remove" button on the top.

terryzfeng commented 10 months ago

Hi @lmaxwell, with WebChucK IDE, the shred table will only show threads that are running and started by you. Machine.add() shreds, Machine.eval() or even sporked shreds won't show up. To remove shreds from the Machine, you can do Machine.removeLastShred(), Machine.removeAllShreds(), or even Machine.clearVM().