When deploying a second time nothing happens (not deployed, no new errors detected, old now invalid ones stay)
CMon opened this issue · comments
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?
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:
- Create new script
- Give it no name
- Add the following content
import QtQuick 2.0
import nymea 1.0
Item {
ThingState {
eventName: "presence"
onTriggered: checkPresence()
}
}
- deploy error is marked in the
onTriggered
line - remove or comment out the line
- 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.