Hello! Have you encountered this problem?
In Blockly Developer Tools, when selecting a saved block from the Block Library, an error occurs: block name already exists.
Workspace Save Share Link
Github issue
Reproduction stepsBlockly > Demos > Blockly Developer Toolshttps://blockly-demo.appspot.com/static/demos/blockfactory/index.htmlChange the default `
name [block_type]` to `
name [block_test]`
- Save "block_test"
- F5 refresh the webpage
Click on
"Block Library" and select
"block_test".
- Dialog Box: `You have unsaved changes. By proceeding without saving your block first, you will lose these changes.`
- YES!
Console error:You can't make a block called block_test in this tool because that name already exists.
warnExistingBlock @ factory.js:- And Preview: cannot display preview.
- but if you change "block_test" to "block_test_1", the preview will be display.
- Show blue warning icon name conflict
In summary:
even if you select a saved block from the "Block Library", the program considers it to be a duplicate of the "NAME". The preview cannot be displayed.