jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.5k stars 744 forks source link

Project with no scripts exports lots of blocks #3007

Open ToonTalk opened 2 years ago

ToonTalk commented 2 years ago

https://snap.berkeley.edu/snap/snap.html#present:Username=toontalk&ProjectName=empty%20project

has no scripts and no unused blocks. However export blocks lists dozens of blocks mostly crayon and like. Find doesn't reveal the listed blocks either.

Not sure how this came about.

brianharvey commented 2 years ago

Looks like at one point you loaded the colors library and then decided you didn't need it and manually deleted the visible blocks. But I'm not sure why unused blocks doesn't include them; does it not list hidden blocks? Or is there still something in the project that uses a colors library block?

We should consider an "unload library" option in the File menu. Yes I know that would require each block remembering which library it came from. The option could give a warning dialog if any of the blocks of the library chosen for deletion is still in use from outside the library.

ToonTalk commented 2 years ago

This problem showed up before I deleted the visible crayon blocks. I deleted them to see if it would fix the problem or at least simplify it. This project did have a long history.

I like "unload library"