ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

Error: Cannot extract Blockly code! after collapsed trigger was copied

Open stwa2020 opened this issue 2 years ago • 4 comments

I created a new script for Blockly, created a trigger, collapsed it and copied it, after saving it, I can't open the script, it generates the error: Cannot extract Blockly code!

To Reproduce
Steps to reproduce the behavior:

  1. Create a new script
  2. Use the first trigger without changes
  3. Save the script
  4. collaps the trigger and copy it (the copy can't be moved)
  5. Save the script
  6. Open the script --> error Cannot extract Blockly code!

Expected behavior
copy collapse trigger without destroying the whole script

Screenshots & Logfiles

Error message: error_message

This is the trigger I've used: expanded_no_error

Collapsed and saves without any errors: collapsed_no_error

Created a copy of it, the copy can't be moved, after it has been saved it create the Error message and the whole script is gone: collapsed_copy_create_error

I don't know which logfiles would be required,

Versions:

  • Adapter version: 7.1.4
  • JS-Controller version: v5.0.16
  • Node version: v18.17.1
  • Operating system: PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"

Did the Test with different Web Browser, Firefox, Chrome, Edge all ended up with the same error.

Thank you and kind regards,

Stefan

stwa2020 avatar Nov 14 '23 18:11 stwa2020

duplicate: Fehlermeldung: "Can not extract blockly code" #1419

stwa2020 avatar Nov 27 '23 16:11 stwa2020

duplicate: Fehlermeldung: "Can not extract blockly code" #1419

stwa2020 avatar Nov 27 '23 16:11 stwa2020

  • Adapter version: 7.1.4

Please use the latest version for issue reports.

klein0r avatar Nov 28 '23 08:11 klein0r

Confirmed in Version 7.1.6:

The insertion marker manager tried to create a marker but the result is missing a field. If you are using a mutator, make sure your domToMutation method is properly defined.
createMarkerBlock@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:814:226
InsertionMarkerManager$$module$build$src$core$insertion_marker_manager@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:811:83
BlockDragger$$module$build$src$core$block_dragger@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:826:711
startDraggingBlock_@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:1131:35
updateIsDraggingBlock_@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:1129:227
updateIsDragging_@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:1130:336
updateFromEvent_@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:1126:366
handleMove@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:1135:472
g@http://10.10.9.10:3000/google-blockly/blockly_compressed.js:133:162

klein0r avatar Dec 04 '23 13:12 klein0r