Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. [gelöst] Script nicht kompilierbar

    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

    [gelöst] Script nicht kompilierbar

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @SumoMike last edited by

      @sumomike sagte in Script nicht kompilierbar:

      error at script.js.System.Datenpunkte_erstellen:280

      was steht denn da?

      1 Reply Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @SumoMike last edited by

        @sumomike glaube auch nicht, dass der datenpunkt der fehler ist - das wäre ein warning

        1 Reply Last reply Reply Quote 0
        • S
          SumoMike last edited by

          @Homoran
          Das steht im Script Log:

          17:56:38.019	info	javascript.1 (7919) Start javascript script.js.System.Datenpunkte_erstellen
          17:56:38.024	error	javascript.1 (7919) script.js.System.Datenpunkte_erstellen compile failed: at script.js.System.Datenpunkte_erstellen:280
          

          @liv-in-sky denke auch nicht, dass es am Datenpunkt oder Script liegt, weil es ein übernommenes Beispiel ist. Ich finde allerdings den Fehler nicht. Kann irgendetwas falsch einstellen/ installieren? Ich habe bisher nur im Blockly gearbeitet. Das funktioniert auch.

          liv-in-sky paul53 Homoran 3 Replies Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @SumoMike last edited by

            @sumomike poste mal das ganze script - dann ist's leichter

            1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @SumoMike last edited by

              @sumomike sagte: compile failed: at script.js.System.Datenpunkte_erstellen:280

              Was steht im Skript "System.Datenpunkte_erstellen" in Zeile 280 und in den Zeilen davor ?

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

                @sumomike sagte in Script nicht kompilierbar:

                Das steht im Script Log:

                interessant ist was in Zeile 280 des genannten Skripts steht

                1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @SumoMike last edited by

                  @sumomike nur zur vollständigkeit 🙂 - damit die frage mal jeder gestellt hat

                  was steht um zeile 280 - plus/minus 5 zeilen

                  1 Reply Last reply Reply Quote 0
                  • S
                    SumoMike last edited by

                    @Homoran @liv-in-sky @paul53 das Skript besteht nur aus diesen einen Befehl. Ab Zeile 2 steht nichts mehr drin.

                    paul53 Homoran 2 Replies Last reply Reply Quote 0
                    • paul53
                      paul53 @SumoMike last edited by paul53

                      @sumomike sagte: das Skript besteht nur aus diesen einen Befehl.

                      Das Skript "System.Datenpunkte_erstellen"? Der Compiler denkt sich so etwas nicht aus.
                      Schau mal im Tab "Objekte" (im Experten-Modus) unter script.js.

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

                        @sumomike sagte in Script nicht kompilierbar:

                        @Homoran @liv-in-sky @paul53 das Skript besteht nur aus diesen einen Befehl. Ab Zeile 2 steht nichts mehr drin.

                        Hast du noch ein Skript mit dieser Bezeichnung?
                        Vielleicht im Verzeichnis GLOBAL???

                        1 Reply Last reply Reply Quote 0
                        • S
                          SumoMike last edited by

                          @paul53 ich habe alle Skripte gelöscht und JS neu installiert (nur noch eine Instance). Das Fehlerbild ist identisch. Auch Blockly Skripte schmeißen jetzt den Fehler.

                          Beispiel Blockly:

                          createState("Blockly_Datenpunkt", false, function () {
                          });
                          

                          @Homoran Global ist auch geleert. Kann man den Skript Odner auch per ssh löschen? Mir fehlen sonst die Ideen in welche Zeile 280 der JS Dapter schauen kann.

                          Homoran paul53 2 Replies Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @SumoMike last edited by Homoran

                            @sumomike sagte in Script nicht kompilierbar:

                            Mir fehlen sonst die Ideen in welche Zeile 280 der JS Dapter schauen kann.

                            Dann machen wir es mal Schritt für Schritt:

                            Hast du ein Skript mit der Bezeichnung System.Datenpunkte_erstellen?

                            Mach es wie Paul gesagt hat:

                            @paul53 sagte in Script nicht kompilierbar:

                            Schau mal im Tab "Objekte" (im Experten-Modus) unter script.js.

                            1 Reply Last reply Reply Quote 0
                            • paul53
                              paul53 @SumoMike last edited by

                              @sumomike
                              Tab "Objekte" im Experten-Modus: Gibt es unter "script.js" einen Ordner/channel "System"?

                              Bild_2021-01-30_194307.png

                              1 Reply Last reply Reply Quote 1
                              • S
                                SumoMike last edited by

                                Problem gelöst. Ich habe den Browsercache geleert. Jetzt funktionieren die Blockly und JS-Skripte.

                                Den Zusammenhang verstehe ich allerdings nicht.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                492
                                Online

                                31.8k
                                Users

                                80.0k
                                Topics

                                1.3m
                                Posts

                                4
                                15
                                393
                                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