chuck-racks icon indicating copy to clipboard operation
chuck-racks copied to clipboard

No straightforward way to reload a ChucK script that contains a public class.

Open ericheep opened this issue 7 years ago • 6 comments

As of now there is no way to clear the VM of a public class. I am unsure if chuck-racks even needs this functionality, currently the user can create a regular class and reload it, but if the class is public it remains in the VM until the user removes that instance of chuck-racks.

One solution would be to replicate the behavior of MidiAudicle and add a "Clear VM" button.

The user currently receives the following error.

[chuck]:line(5): class/type 'ClassName' is already defined in namespace '[user]'

ericheep avatar Feb 15 '17 07:02 ericheep

Nice one! Agreed, it would be good to add the rest of the VM options, including removing individual shreds (which we turned off for now due to a bug with libchuck).

jhochenbaum avatar Feb 15 '17 07:02 jhochenbaum

If there are some docs laying around somewhere on the libchuck methods missing from the UI, I'm happy to hop in and try to make some some room on the UI to hook them up.

jakemumu avatar Feb 19 '17 20:02 jakemumu

@jakemumu I'm in the middle of a fairly significant UI refactor so let's hold off for now - biggest thing in the UI to do is readd individual shred removal (it's commented out for now) but we need to fix libchuck returning an error for the shred ID

jhochenbaum avatar Feb 19 '17 20:02 jhochenbaum

Ahh okay I see well yeah lets avoid conflicts, lemme know if there's anything I can help out with

jakemumu avatar Feb 19 '17 20:02 jakemumu

If you want to go ahead and re-enable individual shred removal, I'll take a look at why it's crashing after you're done refactoring.

spencersalazar avatar Feb 20 '17 01:02 spencersalazar

Or why it's returning the wrong thing (I don't think you said it's actually crashing).

spencersalazar avatar Feb 20 '17 01:02 spencersalazar