Skip to content

[Bug]: position coordinates are ignored on import #1933

Open

Description

@Diginix

I'm sure that

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

Script type

Blockly

The problem

If you import the sample debug block in a already existing blockly it should be place at coordinate x="10" and y="10", but since adapter v9.x it is place randomly somewhere far below left, e.g. x="-762" y="5785". In very large blockly scripts with >1000 blocks you wont find the additional imported block. Sometimes I use the target coordinates where I need the new block in the script for the import, but due it will be ignored, it is useless.

<block xmlns="https://developers.google.com/blockly/xml" type="debug" id="9.!*b;;Y!bT|T`5;dxg;" x="10" y="10">
  <field name="Severity">info</field>
  <value name="TEXT">
    <shadow type="text" id="AEr@Ln7jt:KPS7wxv`yI">
      <field name="TEXT">test</field>
    </shadow>
  </value>
</block>

The random offset to the specified coordinates seems to depend on the already existing amount of blocks.

iobroker.current.log (in debug mode!)

No response

Version of nodejs

20.19.4

Version of ioBroker js-controller

7.0.7

Version of adapter

9.0.8

Activity

  1. added theissue type on Jul 17, 2025
  2. GermanBluefox commented on Jul 29, 2025

    @GermanBluefox
    Contributor

    Please retest it with the latest version as I cannot reproduce it with latest version

  3. Diginix commented on Jul 29, 2025

    @Diginix
    Author

    Issue still persist with v9.0.11
    You can reproduce it by importing initially this:

    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="debug" id="mEY+gWZTBG@FQ;$r7m!L" x="13" y="13">
        <field name="Severity">info</field>
        <value name="TEXT">
          <shadow type="text" id="lfMFZO8wV5wCAJaT*PD,">
            <field name="TEXT">x="13" y="13"</field>
          </shadow>
        </value>
      </block>
      <block type="debug" id="m(:(6+}n,w}yT|Fi#oEB" x="363" y="13">
        <field name="Severity">info</field>
        <value name="TEXT">
          <shadow type="text" id="6ZmF8W-@GR@]0oxonG_$">
            <field name="TEXT">x="363" y="13"</field>
          </shadow>
        </value>
      </block>
    </xml>
    

    Now try to import this additional block at x="363" y="113":

    <block xmlns="https://developers.google.com/blockly/xml" type="debug" id="w29d$!ExENf%b@)4x3+$" x="363" y="113">
      <field name="Severity">info</field>
      <value name="TEXT">
        <shadow type="text" id="sNG9iv8ah?k[s;imQMp4">
          <field name="TEXT">x="363" y="113"</field>
        </shadow>
      </value>
    </block>
    

    Should look this:

    Image

    but this is the result:

    Image

    Looks like an automatically clean up that tries to place a new block below the last one on the left side no matter where it should really be placed by given coordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions