ioBroker / ioBroker.javascript

Script engine for JavaScript and Blockly
MIT License
325 stars 120 forks source link

[Bug]: Object-Browser in Blockly-Blocks don't work #1607

Closed RP70DP closed 3 months ago

RP70DP commented 3 months ago

I'm sure that

Script type

Blockly

The problem

Probably all blocks with Object-Browser are affected.

iobroker.current.log (in debug mode!)

TypeError: s is undefined getObjectName Utils.js:119 onAfterSelect ObjectBrowser.js:2596 loadAllObjects ObjectBrowser.js:2550 expandAllSelected ObjectBrowser.js:2585 loadAllObjects ObjectBrowser.js:2550 React 7 S scheduler.production.min.js:13 T scheduler.production.min.js:14 react-dom.production.min.js:188:119 Uncaught TypeError: s is undefined getObjectName Utils.js:119 onAfterSelect ObjectBrowser.js:2596 loadAllObjects ObjectBrowser.js:2550 expandAllSelected ObjectBrowser.js:2585 loadAllObjects ObjectBrowser.js:2550 React 7 S scheduler.production.min.js:13 T scheduler.production.min.js:14 Utils.js:119:18

Version of nodejs

v18.20.3

Version of ioBroker js-controller

v5.0.19

Version of adapter

v8.5.2

klein0r commented 3 months ago

see https://github.com/ioBroker/adapter-react-v5/issues/349

MichaelSchaaf999 commented 3 months ago

@klein0r Hi Matthias,

Is this the same issue I encountered here?

  1. Open a new Blockly script.

  2. Save it.

  3. Get a trigger block...

    image
  4. Click on "ID auswählen"... the process seems to start:

    image
  5. A second later the window is empty:

    image

    ...and the process seems to stop.

  6. Refreshing the browser windows works. But the ID selector is not responding (in my poor words).

itwegner72 commented 3 months ago

I Have the same Problem and Downgradet to 8.4.2 There is no Problem.

Voyagermanie commented 3 months ago

Same problem here... :-(

itwegner72 commented 3 months ago

Not fixed. Problem is same

klein0r commented 3 months ago

@itwegner72 v8.6.0 installed via npm?

RP70DP commented 3 months ago

v8.6.0 fixed the problem. Thanks a lot!

MichaelSchaaf999 commented 3 months ago

@klein0r Matthias: Any suggestions how to install v8.6.0?

itwegner72 commented 3 months ago

v8.6.0 fixed the problem. THX (Installed over IOB Adapter Page)

MichaelSchaaf999 commented 3 months ago

Had to refresh the adapter tab first but then saw the 8.6.0. Installed via IOB adapter page as well. 8.6.0 fixed the problem. THX a lot @klein0r Matthias

klein0r commented 3 months ago

Any suggestions how to install v8.6.0?

As always: via npm (in expert mode), via beta repository and never via GitHub url.

MichaelSchaaf999 commented 3 months ago

As always: via npm (in expert mode), via beta repository and never via GitHub url.

Expert mode is on, but which buttons to click for NPM-installation?

mcm1957 commented 3 months ago

I suggest to use the BETA / LATEST Repository as this provides a normal GUI Basedow Installation flow. ƁUT you should be aware that using Beta / Latest / npm Installation installs a BETA and not fully testen Software. So you should know what you do an do it at own risk if used at a Produktion System.

Installation from npm can be done using cat symbol and select install from npm.

But again ... If you are not sure what you are doing I recommend to wait for stable release.

P.S. Our forum https://forum.iobroker.net would be better Suiten for suchvquestions.

MichaelSchaaf999 commented 3 months ago

Installation from npm can be done using cat symbol and select install from npm.

Ah, yes, found it: This

image

Thx a lot