-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scratch3] Input hat seems to be broken #8
Comments
Which version did you use? The "offline" version or the online version available at https://harbaum.github.io/ftduino/webusb/scratch3/ ? The current online version works for me. If it still fails for you please report which version you use on which OS and which browser you are using. Edit. Ok, from the screenshot you seem to be using the online version. However, for me the hat works as expected. So please retry with the current version. |
It still fails for me. In the console I can still see the exception despite the scratch ui looking normal. |
Still not reproducible here on Ubuntu 18.04 and Chromium 77.0.3865.90 I open the url in chromium with the ftduino already connected, select the ftDuino extension, drag the hat into the main area ... and it just works ... |
Ah ... i see. I can trigger that problem by clicking the hat. Otherwise it just works as expected. But when clicking it something goes wrong. |
Please try again ... The fact that HATs in scratch don't support promises really doesn't make asynchronous USB io easier to deal with .... |
For reference. This is related to scratchfoundation/scratch-vm#2129 and the fact that HATs don't support async processing which requires a lot of nasty hacks. |
Used scratch file:
Expected behaviour:
I drag the input hat to the stage.
When I press the green flag the (hypothetical) code after the hat is exectued.
Actual behaviour:
As soon as I begin to drag the hat to the stage an exception is thrown.
Error:
The text was updated successfully, but these errors were encountered: