
As soon as I remove the line "variableTypes": ["gVar"] from my JSON definition, the menu is working perfectly and looks like this:

here is my JSON code:
{
"type": "grammarreference",
"message0": "Use Grammar %1",
"args0": [
{
"type": "field_variable",
"name": "grammarName",
"variable": "grammar1",
"variableTypes": ["gVar"]
}
],
"previousStatement": [
"grammar",
"rule",
"rulereference",
"grammarreference"
],
"nextStatement": [
"rule",
"rulereference",
"grammarreference"
],
"colour": 270,
"tooltip": "",
"helpUrl": ""
},
I am creating the variable using the following Code:
Blockly.Variables.createVariable(a.getTargetWorkspace(), null, 'gVar');
Everything seems to be fine with the variable itself. It is added to allVariables and the type 'gVar' is assigned correctly.
I've already tried to download the latest blockly version and to use different browsers. The result is always the same. Can you tell me what I am doing wrong?