nymea / nymea-app

A nymea frontend app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When deploying a second time nothing happens (not deployed, no new errors detected, old now invalid ones stay)

CMon opened this issue · comments

commented

I wrote a script and had some errors in it, detected by the first press on deploy, after fixing those pressing deploy again did not change anything, the errors where still visible inside the editor and the script was unable to deploy.

Workaround:
copy everything, abort creation, recreate, copy all back in deploy, and hope no other error is in there if so start the workaround from the beginning

hmm... can you reproduce this? If so, could you perhaps see if any errors are printed to the command line?

commented

took a while to reproduce (I had to remember what I did wrong), the error reported on the command line is: qrc:/ui/magic/ScriptEditor.qml:117: TypeError: Type error

How to reproduce:

  1. Create new script
  2. Give it no name
  3. Add the following content
import QtQuick 2.0
import nymea 1.0

Item {
    ThingState {
        eventName: "presence"
        onTriggered: checkPresence()
    }
}
  1. deploy error is marked in the onTriggered line
  2. remove or comment out the line
  3. hit deploy again
    => nothing happens, the error stays, the line is still marked red (even if code was removed/added)

So I guess the missing name is the problem, but its not stated as an error (could be still possible that the system would create a random one.

Another nice feature would be that the Errors reported in the error pane at the bottom should be copyable, for easier bug reporting.