Skip to content

Conversation

mjgallag
Copy link
Contributor

@mjgallag mjgallag commented Sep 5, 2025

General items:

If your code changes how something works on the device (i.e., it affects the companion):

  • I branched from ucr
  • My pull request has ucr as the base

Further, if you've changed the blocks language or another user-facing designer/blocks API (added a SimpleProperty, etc.):

  • I have updated the corresponding version number in appinventor/components/src/.../common/YaVersion.java
  • I have updated the corresponding upgrader in appinventor/appengine/src/.../client/youngandroid/YoungAndroidFormUpgrader.java (components only)
  • I have updated the corresponding entries in appinventor/blocklyeditor/src/versioning.js

For all other changes:

  • I branched from master
  • My pull request has master as the base

What does this PR accomplish?

Updates Blockly to v11.

Resolves #3434, Resolves #3529, Resolves #3530, Resolves #3531, Resolves #3532

@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 5, 2025

I just found a bug that I'll work on next. While delete count is correct (includes children too) when selecting multiple blocks only the block (and its children, if any) you right click on is deleted.

@ewpatton
Copy link
Member

ewpatton commented Sep 5, 2025 via email

@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 5, 2025

@ewpatton it works in master so I either messed up the merge mit-cml/workspace-multiselect@main...mjgallag:workspace-multiselect:update-to-blockly-11 or its a Blockly 11 issue with the plugin.

@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 6, 2025

@ewpatton its reproducible on main branch of multiselect plugin but works if I try commit before it was upgraded to Blockly 11.

@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 6, 2025

@ewpatton ha ... now i'm not so sure about any of my statements regarding this bug ... tbd

@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 6, 2025

Ah ha, it's a subtle bug that was introduced when the multiselect plugin was upgraded to Blockly 11. If you keep the shift key pressed when you right click the yellow borders of multiple select are lost and even though context menu has correct multiple counts it only acts on block you right clicked. If you let go of shift key after making your selections and before right clicking it works as expected. Will look into this but will get test instance up first so people can play with it in parallel with my bug fixing.

@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 6, 2025

@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 8, 2025

https://arched-branch-471517-f9.uc.r.appspot.com/ here is an appspot instance for playing around with this

@mjgallag mjgallag force-pushed the update-to-blockly-11 branch from 8eb92fc to 785162b Compare September 11, 2025 14:57
@mjgallag mjgallag force-pushed the update-to-blockly-11 branch 2 times, most recently from aba67f3 to ca30347 Compare September 14, 2025 21:59
@mjgallag mjgallag marked this pull request as ready for review September 14, 2025 22:33
@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 14, 2025

OK that bug is fixed and https://arched-branch-471517-f9.uc.r.appspot.com/ has been updated. Also there is no more fork for multiselect. I have marked this ready for review. I expect more bugs will probably be found but I think it's ready for more eyes.

@mjgallag mjgallag requested a review from a team September 16, 2025 15:00
@mjgallag
Copy link
Contributor Author

I just noticed with https://appinventor.mit.edu/explore/tips/typeblocking the blocks are landing on top of each other in this branch instead of staggered like on master. @josmas I think I am going to try to integrate your plugin https://github.com/josmas/blockly-plugins/tree/feat/typeblocking as part of this Blockly 11 branch.
Screenshot 2025-09-16 at 12 58 53 PM
Screenshot 2025-09-16 at 12 59 30 PM

@mjgallag mjgallag force-pushed the update-to-blockly-11 branch from ca30347 to 9e5b36b Compare September 16, 2025 21:31
@mjgallag mjgallag force-pushed the update-to-blockly-11 branch from 9e5b36b to 4903e4d Compare September 19, 2025 00:12
@mjgallag
Copy link
Contributor Author

mjgallag commented Sep 19, 2025

Nevermind I just fixed the bugs as moving to @josmas typeblocking plugin should be a separate pull. This bug lead me to fix the same bug in a few different places and also lead me to notice paste from backapck was broken, that fix was pretty interesting. In any case https://arched-branch-471517-f9.uc.r.appspot.com/ has been updated. I am off next week and a half. If anyone gets around to testing this please leave bugs in the comments for my return. But as of now I have fixed all I have discovered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

3 participants