Can't create new Blockly rule

OH 4.3.3 on RPI4

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.

This is definitely a bug.

Do you have the JS Scripting add-on installed? Blocky requires that add-on now not the Nashorn add-on

If so, just in case, upgrade to 4.3.5.

If you still have problems post screen shots.

Thanks Rich

I have JS Scripting a well as the older Nashorn

I’ll try 4.3.5 and see if it makes a difference.

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?

Turns out the issue was with the Mail library in Blockly

Yes, you have tow JS add-ons installed and one of them enables Blockly support. So you have all three as options when creating a new script.