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

[Bug]: blockly import does not work

Open Matzebhv opened this issue 7 months ago • 3 comments

I'm sure that

  • [x] This issue is still present in the current beta version of this adapter
  • [x] There is no other (open) issue with the same topic (use the search!)
  • [x] This issue is not described in the adapter documentation / FAQ (read the docs!)

Script type

Blockly

The problem

Import from one blockly to another wont work after update to current beta. -> TypeError: this.blocklyWorkspace.paste is not a function Does not work with c&p or file.

iobroker.current.log (in debug mode!)

No response

Version of nodejs

v20.19.2

Version of ioBroker js-controller

7.0.7

Version of adapter

9.0.3

Matzebhv avatar Jun 12 '25 21:06 Matzebhv

Same issue here in Version 9.0.4 I tested to export and import a blockly script and get the error:

Image

guc206 avatar Jun 17 '25 12:06 guc206

Here also.

Image

Matzebhv avatar Jun 17 '25 20:06 Matzebhv

Even with v9.0.6 import doesn't work

Image

Console:

index-JSzqpJXf.js:15 Migrating Blockly.JavaScript.convert_tonumber to Blockly.JavaScript.forBlock.convert_tonumber
index-JSzqpJXf.js:15 Migrating Blockly.JavaScript.notification-manager to Blockly.JavaScript.forBlock.notification-manager
index-JSzqpJXf.js:15 Migrating Blockly.JavaScript.telegram to Blockly.JavaScript.forBlock.telegram
index-JSzqpJXf.js:15 Migrating Blockly.JavaScript.telegram_call to Blockly.JavaScript.forBlock.telegram_call
index-JSzqpJXf.js:15 Migrating Blockly.JavaScript.telegram_ask to Blockly.JavaScript.forBlock.telegram_ask
index-JSzqpJXf.js:15 Migrating Blockly.JavaScript.mqtt_sendmessage to Blockly.JavaScript.forBlock.mqtt_sendmessage
index-JSzqpJXf.js:15 Migrating Blockly.JavaScript.ifttt_iot to Blockly.JavaScript.forBlock.ifttt_iot
index-JSzqpJXf.js:15 Migrating Blockly.JavaScript.email to Blockly.JavaScript.forBlock.email
index-JSzqpJXf.js:15 Uncaught ReferenceError: Input "RETURN" doesn't exist on "procedures_defnoreturn"
    at JavascriptGenerator$$module$build$src$generators$javascript$javascript_generator.valueToCode (blockly_compressed.js:1400:378)
    at Blockly.JavaScript.forBlock.procedures_defreturn (blocks_procedures.js:196:42)
    at JavascriptGenerator$$module$build$src$generators$javascript$javascript_generator.blockToCode (blockly_compressed.js:1399:277)
    at JavascriptGenerator$$module$build$src$generators$javascript$javascript_generator.workspaceToCode (blockly_compressed.js:1397:236)
    at Pe.blocklyCode2JSCode (index-Cek-i92T.js:1155:9517)
    at Pe.onChange (index-Cek-i92T.js:1156:3798)
    at Pe.onBlocklyChanged (index-Cek-i92T.js:1156:1804)
    at index-Cek-i92T.js:1156:3093
    at i (index-JSzqpJXf.js:15:6118)
sentry.iobroker.net/api/56/envelope/?sentry_version=7&sentry_key=504499a725eb4898930d3b9e9da95740&sentry_client=sentry.javascript.browser%2F9.30.0:1 
            
            
           Failed to load resource: the server responded with a status of 403 ()
sentry.iobroker.net/api/56/envelope/?sentry_version=7&sentry_key=504499a725eb4898930d3b9e9da95740&sentry_client=sentry.javascript.browser%2F9.30.0:1 
            
            
           Failed to load resource: the server responded with a status of 403 ()
index-JSzqpJXf.js:15 Uncaught ReferenceError: Input "RETURN" doesn't exist on "procedures_defnoreturn"

Diginix avatar Jun 19 '25 07:06 Diginix

Please check 9.0.7

GermanBluefox avatar Jul 01 '25 18:07 GermanBluefox

Please check 9.0.7

Works for me.

Matzebhv avatar Jul 03 '25 10:07 Matzebhv