I had previously created Blockly rules in an earlier OH 4 version.
When I tried revising a rule, I noticed that the blocks were no longer displayed but the rule was still working.
I read in the docs that the JSScripting had been updated and updating rules was done by opening and saving the rules. Saving and re-opening had no effect.
I tried creating a new rule and I can longer drag blocks into the workspace.
Has the user interface changed?
Is there something I need to do to update Blockly?
Thanks for any help?
Moving this to Beginners to see if anyone can help.
Running 4.3.5 I can now create a Blockly script that works
Old rules that still won’t display the Blockly piece throw errors, mostly related to sending emails
19:27:44.968 [ERROR] [ab.automation.script.javascript.stack] - Failed to execute script: SyntaxError: <eval>:4:37 Expected an operand but found ,
Things.getActions('mail', ).sendMail(, , );
^
at org.graalvm.polyglot.Context.parse(Context.java:480)
at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.checkSyntax(GraalJSScriptEngine.java:635)
at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.compile(GraalJSScriptEngine.java:619)
at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.compile(GraalJSScriptEngine.java:609)
at org.openhab.automation.jsscripting.internal.scriptengine.DelegatingScriptEngineWithInvocableAndCompilableAndAutocloseable.compile(DelegatingScriptEngineWithInvocableAndCompilableAndAutocloseable.java:135)
... 90 more
so partial progress
When creating a new script I have a choice of Blockly or 2 ECMAScript versions. Is that correct?