Blockly - can't find/pick some items

That’s it!
I just realized that my groups (e.g. “Alexa_Buero”) are not declared anywhere (anymore). DG_Arbeitszimmer is declared in another *.items file, but all the other groups are only used in their items declaration. Which means these groups do not really exist. Maybe the picker is trying to show the items in one of these groups but as the group does not exist, non of the item is shown.


Correct. I’ve just tried to remove all groups from an item and it is showing up in the picker ungrouped. If I declare the group itself, all the other items are available too (with this re-defined group).
So maybe as an idea: currently all items are shown in the picker when they are in an available group or fully ungrouped. Maybe we should also show them when they are in groups, which are not really available?

Great investigation, @drohhyn

@florian-h05 Would it makes sense to have a ticket created for this?

This is no UI problem, one cannot expect the UI to render the model picker properly if the Items definition is incorrect. It would add unnecessary complexity to the UI code to handle that symptom.

I would rather propose to have core log a warning if a group is missing so the user can fix the root of the problem instead.

2 Likes