ccrma / webchuck-ide

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

Add "Clear VM" button to the IDE #24

Closed terryzfeng closed 3 months ago

terryzfeng commented 4 months ago

Clear the ChucK Instance for public class re-instantiation feature request from @tae1han

terryzfeng commented 3 months ago

@tae1han Won't be working on this feature since there would be some sensitive VM things that the IDE needs to preserve like HID functionality and the like.

Although not recommended, you can manually clear the ChucK VM with code by doing:

Machine.clearVM(); // Note this would break HID

Hopefully #18 will be able to achieve a similar result as clearVM and maintain WebChucK IDE classes/VM basic things