NEWS
[gelöst] Trigger in Blockly verschwunden
-
Hallo Community,
ich habe ein Problem mit blockly. Neuerdings sind alle Trigger-Blöcke verschwunden (on()). Wenn ich ein existierendes Skript öffne, erhalte ich die Meldung "cannot extract Blockly code" (s. Screenshot)
Den JS-Code kann ich mir aber weiterhin anzeigen lassen:
createState("BewegungErkannt", function () { setStateDelayed('javascript.0.BewegungErkannt', false, false, parseInt(0, 10), false); }); on({id: 'default', change: "null"}, function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; });
Meine letzten Änderungen waren die Installation des simpleAPI-Adapters und einer neuen web-Instanz mit eingebauter SimpleAPI. Ich sehe da nicht wirklich einen Zusammenhang.
Hat jemand eine Idee?
-
Jetzt habe ich festgestellt, dass ich den JS-Adapter nicht mehr starten kann. Folgende Log-Ausgabe:
host.ioBroker-Pi 2017-12-30 13:08:09.758 info instance system.adapter.javascript.0 started with pid 10166 host.ioBroker-Pi 2017-12-30 13:07:39.739 info Restart adapter system.adapter.javascript.0 because enabled host.ioBroker-Pi 2017-12-30 13:07:39.739 error instance system.adapter.javascript.0 terminated with code 1 () host.ioBroker-Pi 2017-12-30 13:07:39.739 error Caught by controller[0]: at bootstrap_node.js:496:3 host.ioBroker-Pi 2017-12-30 13:07:39.738 error Caught by controller[0]: at startup (bootstrap_node.js:149:9) host.ioBroker-Pi 2017-12-30 13:07:39.738 error Caught by controller[0]: at run (bootstrap_node.js:383:7) host.ioBroker-Pi 2017-12-30 13:07:39.737 error Caught by controller[0]: at Module.runMain (module.js:604:10) host.ioBroker-Pi 2017-12-30 13:07:39.737 error Caught by controller[0]: at Function.Module._load (module.js:438:3) host.ioBroker-Pi 2017-12-30 13:07:39.737 error Caught by controller[0]: at tryModuleLoad (module.js:446:12) host.ioBroker-Pi 2017-12-30 13:07:39.736 error Caught by controller[0]: at Module.load (module.js:487:32) host.ioBroker-Pi 2017-12-30 13:07:39.736 error Caught by controller[0]: at Object.Module._extensions..js (module.js:579:10) host.ioBroker-Pi 2017-12-30 13:07:39.736 error Caught by controller[0]: at Module._compile (module.js:570:32) host.ioBroker-Pi 2017-12-30 13:07:39.735 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.javascript/javascript.js:3429:3) host.ioBroker-Pi 2017-12-30 13:07:39.735 error Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.javascript/javascript.js:226:25 host.ioBroker-Pi 2017-12-30 13:07:39.734 error Caught by controller[0]: TypeError: utils.adapter is not a function host.ioBroker-Pi 2017-12-30 13:07:39.734 error Caught by controller[0]: ^ host.ioBroker-Pi 2017-12-30 13:07:39.733 error Caught by controller[0]: var adapter = utils.adapter({ host.ioBroker-Pi 2017-12-30 13:07:39.727 error Caught by controller[0]: /opt/iobroker/node_modules/iobroker.javascript/javascript.js:226
Leider hilft mir Google hier nicht wirklich…
EDIT:
Entfernen und Neuinstallation des JS-Adapters haben das Problem mit der Fehlermeldung gelöst. Das Blockly-Problem existiert jedoch nach wie vor.
Noch eine weitere Änderung hatte ich kürzlich vorgenommen: Ich bin bei Clous auf pro gewechselt. Aber auch hier kann ich mir keinen Zusammenhang vorstellen...
-
Hast Du den js-Adapter v3.6.0 installiert?
-
-
-
Ja, aus GitHub installiert! `
Die 3.6.0 ist völlig buggy.Nimm die 3.5.1 oder früher. `
Super, geht jetzt, vielen Dank. Hatte das tatsächlich auch vorher schon versucht mit 3.4.5, aber vergessen, ioBroker neu zu starten. :?