You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for similar issues before opening a new one.
Component
Bitmap: “TypeError: Invalid block definition for type: 1test_field_bitmap_single”
Colour-hsv-slider: “TypeError: Invalid block definition for type: 1test_field_colour_hsv_sliders_single”
Date: “ TypeError: Invalid block definition for type: 1test_field_date_single”
Slider: “TypeError: Invalid block definition for type: 1test_field_slider_single”
Angle: “TypeError: Invalid block definition for type: 1test_field_angle_single”
Grid dropdown: “TypeError: Invalid block definition for type: 1test_field_grid_dropdown_single”
Description
The field plugins call generateFieldTestBlocks to define blocks and a toolbox with the field under test on multiple blocks.
generateFieldTestBlocks avoids code duplication but also adds a level of indirection that makes it hard to debug the plugins. It generates XML instead of JSON for the block definition.
generateFieldTestBlocks currently adds the blocks to the wrong Blockly.Blocks object, probably due to the dual package hazard. Given the other issues with it, we're choosing to remove its uses in favor of explicitly defined test blocks.
Reproduction steps
Open the test page for each plugin. Note that no Blockly workspace shows up, and there are errors in the console.
Stack trace
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered:
Check for duplicates
Component
Bitmap: “TypeError: Invalid block definition for type: 1test_field_bitmap_single”
Colour-hsv-slider: “TypeError: Invalid block definition for type: 1test_field_colour_hsv_sliders_single”
Date: “ TypeError: Invalid block definition for type: 1test_field_date_single”
Slider: “TypeError: Invalid block definition for type: 1test_field_slider_single”
Angle: “TypeError: Invalid block definition for type: 1test_field_angle_single”
Grid dropdown: “TypeError: Invalid block definition for type: 1test_field_grid_dropdown_single”
Description
The field plugins call
generateFieldTestBlocks
to define blocks and a toolbox with the field under test on multiple blocks.generateFieldTestBlocks
avoids code duplication but also adds a level of indirection that makes it hard to debug the plugins. It generates XML instead of JSON for the block definition.generateFieldTestBlocks
currently adds the blocks to the wrongBlockly.Blocks
object, probably due to the dual package hazard. Given the other issues with it, we're choosing to remove its uses in favor of explicitly defined test blocks.Reproduction steps
Open the test page for each plugin. Note that no Blockly workspace shows up, and there are errors in the console.
Stack trace
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: