Error when trying the "Getting started with Blockly" tutorial

166 views
Skip to first unread message

andrew

unread,
Aug 7, 2022, 7:15:52 PM8/7/22
to Blockly
Hi,

I'm new to Blockly and am starting with this tutorial: https://blocklycodelabs.dev/codelabs/getting-started/index.html

On stage 5, when I press the Edit button to bring up the custom workspace, it doesn't work. I get the following error:

Uncaught Error: Block "controls_repeat_ext": Message does not reference all 1 arg(s).

I then went to the completed code that came with the tutorials and I get the same error, so it doesn't seem like I've written anything incorrectly.

This is the complete error:

Uncaught Error: Block "controls_repeat_ext": Message does not reference all 1 arg(s).
    validateTokens_ https://unpkg.com/blockly:1020
    interpolate_ https://unpkg.com/blockly:1019
    jsonInit https://unpkg.com/blockly:1014
    common_jsonInitFactory https://unpkg.com/blockly:87
    doInit_ https://unpkg.com/blockly:976
    BlockSvg https://unpkg.com/blockly:1075
    newBlock https://unpkg.com/blockly:1200
    module$contents$Blockly$serialization$blocks_appendPrivate https://unpkg.com/blockly:356
    appendInternal https://unpkg.com/blockly:355
    append https://unpkg.com/blockly:353
    createFlyoutBlock_ https://unpkg.com/blockly:1294
    createFlyoutInfo_ https://unpkg.com/blockly:1290
    show https://unpkg.com/blockly:1288
    module$contents$Blockly$inject_init https://unpkg.com/blockly:1266
    inject https://unpkg.com/blockly:1261
blockly:1020:340

Live reload enabled. index.html:92:13
No message string for %{BKY_TEXT_APPEND_TOOLTIP} in %{BKY_TEXT_APPEND_TOOLTIP} blockly:410:448
No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_ADD} in %{BKY_MATH_ARITHMETIC_TOOLTIP_ADD} blockly:410:448
No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_MINUS} in %{BKY_MATH_ARITHMETIC_TOOLTIP_MINUS} blockly:410:448
No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_MULTIPLY} in %{BKY_MATH_ARITHMETIC_TOOLTIP_MULTIPLY} blockly:410:448
No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_DIVIDE} in %{BKY_MATH_ARITHMETIC_TOOLTIP_DIVIDE} blockly:410:448
No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_POWER} in %{BKY_MATH_ARITHMETIC_TOOLTIP_POWER} blockly:410:448
No message string for %{BKY_MATH_SINGLE_TOOLTIP_ROOT} in %{BKY_MATH_SINGLE_TOOLTIP_ROOT} blockly:410:448
No message string for %{BKY_MATH_SINGLE_TOOLTIP_ABS} in %{BKY_MATH_SINGLE_TOOLTIP_ABS} blockly:410:448
No message string for %{BKY_MATH_SINGLE_TOOLTIP_NEG} in %{BKY_MATH_SINGLE_TOOLTIP_NEG} blockly:410:448
No message string for %{BKY_MATH_SINGLE_TOOLTIP_LN} in %{BKY_MATH_SINGLE_TOOLTIP_LN} blockly:410:448
No message string for %{BKY_MATH_SINGLE_TOOLTIP_LOG10} in %{BKY_MATH_SINGLE_TOOLTIP_LOG10} blockly:410:448
No message string for %{BKY_MATH_SINGLE_TOOLTIP_EXP} in %{BKY_MATH_SINGLE_TOOLTIP_EXP} blockly:410:448
No message string for %{BKY_MATH_SINGLE_TOOLTIP_POW10} in %{BKY_MATH_SINGLE_TOOLTIP_POW10} blockly:410:448
No message string for %{BKY_MATH_TRIG_TOOLTIP_SIN} in %{BKY_MATH_TRIG_TOOLTIP_SIN} blockly:410:448
No message string for %{BKY_MATH_TRIG_TOOLTIP_COS} in %{BKY_MATH_TRIG_TOOLTIP_COS} blockly:410:448
No message string for %{BKY_MATH_TRIG_TOOLTIP_TAN} in %{BKY_MATH_TRIG_TOOLTIP_TAN} blockly:410:448
No message string for %{BKY_MATH_TRIG_TOOLTIP_ASIN} in %{BKY_MATH_TRIG_TOOLTIP_ASIN} blockly:410:448
No message string for %{BKY_MATH_TRIG_TOOLTIP_ACOS} in %{BKY_MATH_TRIG_TOOLTIP_ACOS} blockly:410:448
No message string for %{BKY_MATH_TRIG_TOOLTIP_ATAN} in %{BKY_MATH_TRIG_TOOLTIP_ATAN} blockly:410:448
No message string for %{BKY_MATH_ONLIST_TOOLTIP_SUM} in %{BKY_MATH_ONLIST_TOOLTIP_SUM} blockly:410:448
No message string for %{BKY_MATH_ONLIST_TOOLTIP_MIN} in %{BKY_MATH_ONLIST_TOOLTIP_MIN} blockly:410:448
No message string for %{BKY_MATH_ONLIST_TOOLTIP_MAX} in %{BKY_MATH_ONLIST_TOOLTIP_MAX} blockly:410:448
No message string for %{BKY_MATH_ONLIST_TOOLTIP_AVERAGE} in %{BKY_MATH_ONLIST_TOOLTIP_AVERAGE} blockly:410:448
No message string for %{BKY_MATH_ONLIST_TOOLTIP_MEDIAN} in %{BKY_MATH_ONLIST_TOOLTIP_MEDIAN} blockly:410:448
No message string for %{BKY_MATH_ONLIST_TOOLTIP_MODE} in %{BKY_MATH_ONLIST_TOOLTIP_MODE} blockly:410:448
No message string for %{BKY_MATH_ONLIST_TOOLTIP_STD_DEV} in %{BKY_MATH_ONLIST_TOOLTIP_STD_DEV} blockly:410:448
No message string for %{BKY_MATH_ONLIST_TOOLTIP_RANDOM} in %{BKY_MATH_ONLIST_TOOLTIP_RANDOM} blockly:410:448
No message string for %{BKY_MATH_CHANGE_TOOLTIP} in %{BKY_MATH_CHANGE_TOOLTIP} blockly:410:448
No message string for %{BKY_CONTROLS_WHILEUNTIL_TOOLTIP_WHILE} in %{BKY_CONTROLS_WHILEUNTIL_TOOLTIP_WHILE} blockly:410:448
No message string for %{BKY_CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL} in %{BKY_CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL} blockly:410:448
No message string for %{BKY_CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK} in %{BKY_CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK} blockly:410:448
No message string for %{BKY_CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE} in %{BKY_CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE} blockly:410:448
No message string for %{BKY_CONTROLS_FOR_TOOLTIP} in %{BKY_CONTROLS_FOR_TOOLTIP} blockly:410:448
No message string for %{BKY_CONTROLS_FOREACH_TOOLTIP} in %{BKY_CONTROLS_FOREACH_TOOLTIP} blockly:410:448
No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_EQ} in %{BKY_LOGIC_COMPARE_TOOLTIP_EQ} blockly:410:448
No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_NEQ} in %{BKY_LOGIC_COMPARE_TOOLTIP_NEQ} blockly:410:448
No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_LT} in %{BKY_LOGIC_COMPARE_TOOLTIP_LT} blockly:410:448
No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_LTE} in %{BKY_LOGIC_COMPARE_TOOLTIP_LTE} blockly:410:448
No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_GT} in %{BKY_LOGIC_COMPARE_TOOLTIP_GT} blockly:410:448
No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_GTE} in %{BKY_LOGIC_COMPARE_TOOLTIP_GTE} blockly:410:448
No message string for %{BKY_LOGIC_OPERATION_TOOLTIP_AND} in %{BKY_LOGIC_OPERATION_TOOLTIP_AND} blockly:410:448
No message string for %{BKY_LOGIC_OPERATION_TOOLTIP_OR} in %{BKY_LOGIC_OPERATION_TOOLTIP_OR} blockly:410:448
Source map error: Error: request failed with status 404 Resource URL: https://unpkg.com/blockly Source Map URL: javascript_compressed.js.map

I haven't been able to find anything on this problem, does anyone have any idea what could cause this?

Thanks,
Andrew

Maribeth Bottorff

unread,
Aug 8, 2022, 2:26:43 PM8/8/22
to Blockly
Hi, thanks for writing us. This is part of a known issue we are actively working on.

In the meantime you can add
<script src="https://unpkg.com/blockly/msg/en.js"></script>
right after the script tag that adds blockly itself. This normally isn't required if you only need English but for now it should fix the issue. Thanks!

Maribeth

andrew

unread,
Aug 9, 2022, 3:43:29 PM8/9/22
to Blockly
Hi Maribeth,

That worked perfectly, thank you!

Andrew
Reply all
Reply to author
Forward
0 new messages