google / blockly-samples

Plugins, codelabs, and examples related to the Blockly library.
http://github.com/google/blockly
Apache License 2.0
848 stars 624 forks source link

Getting Started with Blockly codelab instructions outdated #2444

Open skeatz opened 3 months ago

skeatz commented 3 months ago

Check for duplicates

Component

Getting Started with Blockly tutorial, steps 5 and 6 does not render correctly when following the tutorial.

I have tried copying the code for these steps from the 'complete code' here but it does not work either. Running index.html from 'complete code' works perfectly. It would be nice if the tutorial write-up can be fixed and updated.

Description

Others have previously raised issue with the Getting Started with Blockly tutorial up to step 5 (Create a blockly workspace). The workaround was to add additional code to index.html to render the workspace:

<script src="https://unpkg.com/blockly/blockly_compressed.js"></script>
<script src="https://unpkg.com/blockly/blocks_compressed.js"></script>
<script src="https://unpkg.com/blockly/javascript_compressed.js"></script>
<script src="https://unpkg.com/blockly/msg/en.js"></script>

There is another issue in step 6 - Create a custom block. The workspace is also not rendered correctly. The 'play_sound' block is not rendered at all and the 'controls_repeat' block is not editable; the grey area does not render.

I have tried copying the code for these steps from the 'complete code' here but it does not work either. Running index.html from 'complete code' works perfectly. It would be nice if the tutorial write-up can be fixed and updated.

Reproduction steps

  1. Follow the steps 1-4 in the tutorial. Modify the blockly library code to add in additional blockly libraries.
  2. Follow step 5 - the controls_repeat block now renders correctly.
  3. Follow step 6 - the render fails again. The play_sound block is not rendered at all, the controls_repeat block is not editable & the grey area disappears.

Stack trace

No response

Screenshots

blockly bug

shashtag commented 3 months ago

Can I be assigned to this issue.

BeksOmega commented 3 months ago

Hiya @shashtag I think we're planning on doing a larger rewrite of the getting started colab, so this isn't open to be worked on at the moment.