Program too big? #4561
Replies: 1 comment
-
Posted at 2017-12-27 by user84292 If I change the settings to minify it offline it loads perfectly. However, it's a little bit frustrating because it's apparently not the code itself that has a problem, which makes it pretty hard to understand and debug. Posted at 2017-12-27 by user84292 It's a little frustrating, because I can't really tell if I am doing something wrong and what I can do to mitigate the issues. There were no changes to settings or the program and I wasn't able to do anything with it this morning. This fragility with the interaction between the IDE and the device makes the IDE difficult to work with. I understand the complications of creating a device like this, and I would really like some insight into what is going on when I execute an upload/flash:
Then I turn minification off (couldn't do anything without turning it on yesterday) and it loads the program, although it gives an error, so the behavior is very inconsistent:
Posted at 2017-12-27 by Wilberforce Take the save() out of the code you upload and type save on the left of the ide. Every time the device restarts the last thing it does is try to save sgain. Posted at 2017-12-27 by user84292 @wilberforce Thank you. I think I got that from an example somewhere. Posted at 2018-01-04 by @gfwilliams Great - glad you got this sorted! Do you remember where that example was? If it's on the Espruino site I might be able to change it. Sadly, as with most things, there's a lot of bad advice on the internet that I have no control over. This kind of thing has been happening a lot recently, so I guess about the only thing I could do is to add code to the Web IDE to detect when people do this and them warn them. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-12-26 by user84292
First day with the Esrpuino Wifi. I'm not sure what to expect, and I realize that it's an embedded platform. I have a lot of experience with Arduinos, the Esquilo, etc.
The following code will load and run if I comment out either the "startServer" or the "startLogging" functions. But if I try to run the whole program it fails with the following:
Beta Was this translation helpful? Give feedback.
All reactions