jmoenig / Snap

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

Sensing is not appearing #320

Closed lilazzari2 closed 10 years ago

lilazzari2 commented 10 years ago

When I go to http://snap.berkeley.edu/init the Sensing palette doesn't have any block. Could you help me?

jmoenig commented 10 years ago

Please empty your browser's cache, then reopen Snap.

lilazzari2 commented 10 years ago

Thank you

jmoenig commented 10 years ago

Did that work?

lilazzari2 commented 10 years ago

YES

jmoenig commented 10 years ago

Great. I'm sorry you're encountering this issue. I updated Snap last night, and browsers often aggressively hold on to older version of JavaScript files they once loaded. This sometimes causes incompatibility issues. Last night we introduced the DATE block into the sensing category, so that's most likely the cause why the sensing category appeared to be broken for you. Thanks for bearing with me!

cycomachead commented 10 years ago

As an aside, there's a relatively easy code fix for this.

When updating snap, we can pass a useless URL parameter to each JS file with a mod date so that a browser will not used a cached version.

<script type="text/javascript" src="byob.js"></script>

To (or anything else...)

<script type="text/javascript" src="byob.js?20140305"></script>
xtitter commented 10 years ago

Michael: great solution; you should start a new issue with this. Jens would need to manually edit snap.html every release, right?

cycomachead commented 10 years ago

Maybe, but it can be scripted! :) I'll post a new issue.

(And then this one can be closed.)

cycomachead commented 10 years ago

@brianharvey -- this can be closed. :)