ABG
August 16, 2026, 8:33pm
1
I notice this in Brave browser, Chrome, and Firefox on my Windows 11 Home PC.
When I pull a local variable getter, it is not recognized in inner references until I press F5 (refresh) and re-enter the Project from the Projects List.
The PC is only a couple of weeks old, so I suspect this is some overzealous blockage between Windows 11 and my browsers.
I employ no browser extensions.
The error manifests in the Plot Screen of this project:
Kaprekars_Constant (1).aia (9.8 KB)
Strangely, it did not manifest in a fresh small project:
TIMAI2
August 16, 2026, 10:37pm
2
I get it in your project, but tested in a couple of "stacked" projects I have and no issues doing the same thing there. This with Brave browser on Linux.
1 Like
ABG
August 17, 2026, 4:55pm
3
Same project, on my older Windows 11 Home laptop, Brave editor. Same error, this time for a different type of local variable.
ABG
August 17, 2026, 5:32pm
5
The counts list is a simple local list of 4 digit dictionary keys (albeit poorly named),
The Blocks Editor flags the temporary variable k from the moment it is selected from the For Each k in List iterator block.
The getter blocks lose their error flags after a refresh.
This is a working complete version of the project, if you want to experience this in the Plot screen.
I am dealing with a Blocks Editor bug here, not an app testing problem.
Kaprekars_Constant.aia (10.6 KB)
You are absolutely right! I see here the same issue on my phone's Chrome browser.
TIMAI2
August 17, 2026, 5:40pm
7
It popped up as an issue in a different project I was working on.
I like this game:
if you delete the two “create empty dictionary” the error disappears
( only detaching the two blocks is not enough )
P.S.
it can be recreated in this minimal project ( the error disappears deleting the create empty dictionary ):
2 Likes
ABG
August 17, 2026, 8:12pm
10
Does any one know if this happens on other block environments (Niotron, Kodular,...)?
This is a bug in the latest release. I have identified the underlying problem and put together a fix:
master ← ewpatton:hotfix/dropdown-with-global-dicts
opened 02:42AM - 18 Aug 26 UTC
Change-Id: Icda2010621fd659087d8af71fa25d90bf4313c41
**What does this PR acco… mplish?**
Fixes the bug reported here: https://community.appinventor.mit.edu/t/blocks-editor-slow-to-recognize-local-variables-in-new-block-pulldowns/175322?u=ewpatton
*Description*
If a global decl block is set to an empty dictionary, an uncaught error prevents the lexical variable dropdown from populating correctly.
*Testing Guidelines*
ABG provides a test project to verify the bug.
**Context for the changes**
If this PR changes anything related to the companion make sure you have used the `ucr` branch. For all other changes use `master` or provide context for having used a different branch.
See a summary of git branches in the docs: [App Inventor Developer Overview](https://docs.google.com/document/u/1/d/1hIvAtbNx-eiIJcTA2LLPQOawctiGIpnnt0AvfgnKBok/pub#h.g4ai8y7wpbh6)
If your code changes how something works on the device (i.e., it affects the companion):
- [x] I have made no changes that affect 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 have made no changes that affect the master branch
- [x] I branched from `master`
- [x] My pull request has `master` as the base
**General items:**
- [ ] I have updated the relevant documentation files under docs/
- [ ] My code follows the:
- [ ] [Google Java style guide](https://google.github.io/styleguide/javaguide.html) (for .java files)
- [x] [Google JavaScript style guide](https://google.github.io/styleguide/jsguide.html) (for .js files)
- [ ] [Swift style guide](https://google.github.io/swift/) (for .swift files)
- [x] Indentation has been doubled checked
- [x] This PR does not include unnecessary changes such as formatting or white space
- [x] `ant tests` passes on my machine
4 Likes