Chat about current Lua tools and IDEs

User avatar
By alonewolfx2
#6093
Markus Gritsch wrote:NodeMcu version 0.9.4 build 2014-12-30 changed the uart.on API. This prevents uploader.py from working correctly.

The attached version works again as expected.

Thank you. Again :)
User avatar
By yes8s
#6432 Thanks Markus! :D Great little tool! I wish I had this earlier as it would of saved me a bunch of time and headaches.

I have a couple of questions:
    1. I noticed that with this tool the lines are written in 'as is', so any leading tabs or whitespaces are written to the esp. There could be a slight gain to be made in execution speed and/or filesize if you strip these out before writing (maybe using a strip() command [I don't know Python that well])... Thoughts?
    2. Also, I have tried Sublime text and the editor looks quite nice. I could not figure out how to use the myNodeMcu.sublime-build part so that I can load the files from the editor itself. Is there something special I need to do? Do I need to store this file somewhere? Pressing F7 from the xxx.lua tab does nothing. Could you please give a little instruction for those who are new to this editor on how to use this feature :)

Thanks
User avatar
By Markus Gritsch
#6446 ad 1:
* Stripping the indentation whitespace would not yield in a significantly increased speed.
* On the other hand readability when using cat() to list the program would suffer a lot.

ad 2:
* Place myNodeMcu.sublime-build into %APPDATA%\Sublime Text 3\Packages\User
* From the Sublime Text window menu select Tools->Build System->myNodeMcu
* Press F7 to upload.
User avatar
By yes8s
#6454
Markus Gritsch wrote:ad 1:
* Stripping the indentation whitespace would not yield in a significantly increased speed.
* On the other hand readability when using cat() to list the program would suffer a lot.

Ok, I didn't consider this as I previously used a different method to edit and then upload so the cat() would have been somewhat redundant.

Markus Gritsch wrote:ad 2:
* Place myNodeMcu.sublime-build into %APPDATA%\Sublime Text 3\Packages\User
* From the Sublime Text window menu select Tools->Build System->myNodeMcu
* Press F7 to upload.

Great. Thanks. Finally got it working. Had to get latest V3 build for it to work but all good now (was using V2).