Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [erledigt] ... has no existing object, ...

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [erledigt] ... has no existing object, ...

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      ticaki Developer @uwe72 last edited by ticaki

      @uwe72
      States unter javascript.x sind nicht so hübsch. Unterhalb eines weiteren vom Adapter angelegten Ordner sind sie unerwünscht und können weg geräumt werden (wenn einer der Devs auf die Idee kommt sich massiv unbeliebt zu machen) 😄

      Richtig lesen bildet deutlich mehr als überfliegen 😄 . Keine Ahnung wie die Fehlermeldung entsteht, das hatte ich noch nie. Ist vom Javascript-Adapter ausgelöste Warnung - Hatte so eine aber noch nie.

      Homoran 1 Reply Last reply Reply Quote 1
      • Homoran
        Homoran Global Moderator Administrators @ticaki last edited by

        @ticaki beim Anlegen eines neuen Scripts wird der zugehörige Datenpunkt unter Script-enabled angelegt.
        Diesen scheint es zu betreffen

        U 1 Reply Last reply Reply Quote 0
        • U
          uwe72 @Homoran last edited by

          @homoran ja, genau so ist es.

          Nach Erstellen dieses Scriptes:

          log("Uwe");
          

          kommt diese Warnung:

          State "javascript.1.scriptEnabled.common._ModuleTest.Test8" has no existing object, this might lead to an error in future versions
          

          Also (nur) eine Unschönheit (kleiner Bug) des JS-Adapters.....!?

          T 1 Reply Last reply Reply Quote 0
          • T
            ticaki Developer @uwe72 last edited by

            @uwe72

            Zeig mir mal bitte ein Bild wo man sieht wo genau in der Ordnerstrukur im Skripteditor das Skript steht.

            U 1 Reply Last reply Reply Quote 0
            • U
              uwe72 @ticaki last edited by

              @ticaki 3e3f2c75-dd7b-4fa5-bdd4-e5675af3a149-image.png

              T 1 Reply Last reply Reply Quote 0
              • T
                ticaki Developer @uwe72 last edited by ticaki

                @uwe72
                Hm sehe da kein Test8 😛 Aber AFAIK sollte der Fehler verschwinden wenn du das Skript löschst und nochmal erstellt, falls nicht ist das ein Fehler.

                U 1 Reply Last reply Reply Quote 0
                • U
                  uwe72 @ticaki last edited by uwe72

                  @ticaki ich hatte das Script "Test8" schon gelöscht gehabt. Hatte deswegen ein neues angelegt. Es kam auch beim Script "Test_Forum" die besagte Warnung:

                  State "javascript.1.scriptEnabled.common._ModuleTest.Test_Forum" has no existing object, this might lead to an error in future versions
                  
                  T 1 Reply Last reply Reply Quote 0
                  • T
                    ticaki Developer @uwe72 last edited by

                    @uwe72

                    ist der Unterstrich am Anfang in _ModuleTest

                    State "javascript.2.scriptEnabled.Beleuchtung_-_mehrere_Räume._ModuleTest.Skript_1" has no existing object, this might lead to an error in future versions
                    
                    T U 2 Replies Last reply Reply Quote 0
                    • T
                      ticaki Developer @ticaki last edited by

                      @haus-automatisierung

                      ist das ein Issue wert oder unwichtig?

                      1 Reply Last reply Reply Quote 0
                      • U
                        uwe72 @ticaki last edited by uwe72

                        @ticaki nein, das Script beginnt mit keinem Unterstrich

                        30c1148e-3bb0-4e56-8593-5f3634be1512-image.png

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          ticaki Developer @uwe72 last edited by

                          @uwe72
                          das hab ich nicht geschrieben 🙂

                          U 2 Replies Last reply Reply Quote 0
                          • U
                            uwe72 @ticaki last edited by

                            @ticaki ok, however. Dennoch nein, siehe Screenshot.

                            T 1 Reply Last reply Reply Quote 0
                            • U
                              uwe72 @ticaki last edited by uwe72

                              @ticaki der Unterstrich kommt vermutlich vom package-Namen bzw. Folder "_ModuleTest", siehe Screenshot

                              1 Reply Last reply Reply Quote 0
                              • T
                                ticaki Developer @uwe72 last edited by

                                @uwe72
                                ?

                                Der Fehler wird durch die Benennung deines Unterordners als _ModulTesterzeugt, der _ löst den Fehler aus.
                                Bin mir nicht sicher aber ich glaube mich zu erinnern das States mit a-zA-Z0-9 beginnen sollen, kann jetzt ein müssen sein. Muss ich mal nachfragen.

                                U 1 Reply Last reply Reply Quote 0
                                • U
                                  uwe72 @ticaki last edited by uwe72

                                  @ticaki

                                  Denke am Unterstrich liegt es nicht. Habe nun ein neues Script angelegt "TestNeu":
                                  ae235cb3-7447-4043-9b40-085bb76a03ad-image.png

                                  Führt zur Warning:

                                  State "javascript.1.scriptEnabled.TestNeu" has no existing object, this might lead to an error in future versions
                                  

                                  Komisch ist eher, dass Warnung von ScriptAdapter Instanz .1 angezeigt wird. Betroffene Script ist aber in Instanz .0 erstellt?!

                                  Bestärkt mich darin, dass ein Refactoring des JS-Adapters notwendig ist 🙂
                                  https://github.com/ioBroker/ioBroker.javascript/issues/1779#issuecomment-2556818029

                                  uwe72 created this issue in ioBroker/ioBroker.javascript

                                  open Refactoring common/global Scripte #1779

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    ticaki Developer @uwe72 last edited by

                                    @uwe72

                                    Im Ernst ich hatte noch nie einen solchen Fehler, und dann erzeuge ich einen Ordner mit _ am Anfang hab ihn und du sagst daran kanns nicht liegen...

                                    javascript.2
                                    2024-12-30 17:24:59.476	warn	State "javascript.2.scriptEnabled._gehtNet.Skript_1" has no existing object, this might lead to an error in future versions
                                    
                                    javascript.1
                                    2024-12-30 17:24:59.477	warn	State "javascript.1.scriptEnabled._gehtNet.Skript_1" has no existing object, this might lead to an error in future versions
                                    

                                    Es liegt an dem Unterstich - einfach zu vermeiden.

                                    U 1 Reply Last reply Reply Quote -1
                                    • U
                                      uwe72 @ticaki last edited by uwe72

                                      @ticaki ich habe diesen Unterordner nicht für diesen Test angelegt! Der Unterordner mit dem Unterstrich war zuvor schon da.

                                      Im Ernst? Siehe mein Post danach. Es liegt nicht am Unterstrich. Und so fragile sollte das System auch nicht sein, dann sollte es nicht möglich sein einen Unterordner mit Unterstrich zu erstellen!

                                      haus-automatisierung 1 Reply Last reply Reply Quote 0
                                      • haus-automatisierung
                                        haus-automatisierung Developer Most Active @uwe72 last edited by

                                        @uwe72 Ich kann hier nicht so richtig folgen. Mit welchen Schritten kann ich den Fehler genau reproduzieren?

                                        U T 3 Replies Last reply Reply Quote 0
                                        • U
                                          uwe72 @haus-automatisierung last edited by

                                          @haus-automatisierung

                                          https://forum.iobroker.net/topic/41469/erledigt-has-no-existing-object/27

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            ticaki Developer @haus-automatisierung last edited by ticaki

                                            @haus-automatisierung sagte in [erledigt] ... has no existing object, ...:

                                            @uwe72 Ich kann hier nicht so richtig folgen. Mit welchen Schritten kann ich den Fehler genau reproduzieren?

                                            Ich kann den reproduzieren, wenn ich einen ordner z.B. _test anglege, dann ein Skript irgendwo erstelle und starte.

                                            Bildschirmfoto 2024-12-30 um 17.37.45.png

                                            EDIT: habs nur mit js skripten versucht
                                            EDIT2: mit mehr als 1 aktiven Javascript-Instanz

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            599
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            41
                                            11566
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo