The block is missing a(n) output connection

281 views
Skip to first unread message

ArM

unread,
Aug 20, 2023, 7:35:28 AM8/20/23
to Blockly
Hello. I have a custom block:
{
    "type": "0983fa55-2ba8-49b0-b1c7-48fe854c7e2e",
    "message0": "while %1 do %2",
    "args0": [
      {
        "type": "input_value",
        "name": "NAME"
      },
      {
        "type": "input_statement",
        "name": "NAME"
      }
    ],
    "previousStatement": null,
    "nextStatement": null,
    "colour": 230,
    "tooltip": "",
    "helpUrl": ""
  }
When I add any block into it 
Untitled.png(this is the default if block but only with the color changed)
and then I save and load the workspace I get the following error:
Untitled.png
This happens with every block when it's added into this custom block. Do I miss something?

Thanks for helping!

Maribeth Moffatt

unread,
Aug 21, 2023, 12:23:40 PM8/21/23
to Blockly
Hello, your block definition has two inputs with the same name ("NAME") which isn't supported. Each input needs a unique name. That should resolve this error.

Best,
Maribeth

ArM

unread,
Aug 21, 2023, 3:53:14 PM8/21/23
to Blockly
How did I miss that? Thanks Maribeth!
Reply all
Reply to author
Forward
0 new messages