WebIde not compiling code at upload time if already connected except if reconnection at upload? #5881
Replies: 1 comment
-
Posted at 2018-02-15 by asez73 Better logs for this problem: A- Success if disconnecting WebIde before uploading, thus it reconnects itself. I just choose the serial link for the board.
Posted at 2018-02-15 by @gfwilliams This seems to be an issue with communications with the board rather than with the compiler. Do you have a Web IDE log for what happens when it's not working? Specifically I'm interested in the bits right after:
In all the logs so far you've only posted it when it was working correctly. Please can you also just reboot your PC, and reconnect the Espruino board with a different USB cable (just in case). It could just be that the USB driver has got in a weird state. Posted at 2018-02-15 by asez73 B- Now, just uploaded the very same source after the success posted above, this time the borad is not recognised:
Posted at 2018-02-15 by @gfwilliams In the IDE log you just posted above, it has worked just fine! Please post the IDE log that corresponds with what appeared on the terminal. Posted at 2018-02-15 by asez73 Ok, rebooted, changed cable and full log IT failed!
Posted at 2018-02-15 by asez73 Now disconnected and uploaded again:
And full log after first fail and second success:
Posted at 2018-02-15 by asez73 You are very reactive and some of our posts got unsynced. Posted at 2018-02-15 by asez73 Ok, I reflashed with the new cable and it seems to work now... So I closed the discussion and can't add more posts.... Then, setting back offline mode does impose the same disconnection/reconnection once only and the problem seems not to reappear: Non errors nor warnings and correct result of 21. Then turning minimification back to Espruima offline on, did imposed also disconecting/reconnecting once only the board. Then turning minimification back to Closure online (whitespace only) on, did imposed also disconecting/reconnecting once only the board. So it could be a problem of stored configuration in the web ide finaly??? Posted at 2018-02-15 by @gfwilliams Thanks - it's very strange though - from the log it seems like the IDE has parsed the JSON response just fine but for some reason hasn't picked up the EXPORTS variable. Could you try turning off 'minifcation' as well as 'offline mode'. Both of those appear to be turned on, and I guess could be causing problems somehow? Posted at 2018-02-19 by @gfwilliams Just managed to reproduce this - if you open the settings window and close it, it wipes out the data received from the board. So if you just connect and upload it'll be fine - it's just an issue if you connect, enter settings, and then upload. I'll fix it for the next IDE release. Posted at 2018-02-19 by asez73 Good, so, i'll disconnect / reconnect after any change in the settings. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-02-15 by asez73
I have some errors when trying the example below on an original Espruino Rev 1.4b.
It goes well, see first and second logs below, if I disconnect from webide, then upload the very same example, reconnecting at the prompt from wedide (0.68.5) just before it uploads the source. There no need to disconnect physically the board.
No error or just warnings, and a correct result of 21.
Note that printing process.env.EXPORTS gave once a truncated string with no closing " and no ending } and no prompt for the next command until I press the Enter key on the left side of the WebIde. Then I get the rest of the strings, json closed and prompt. This is also true on the error case.
On the other hand, process.env sends a full JSON with everything apparently correct.
Ide log corresponding:
Beta Was this translation helpful? Give feedback.
All reactions