4refr0nt / ESPlorer

Integrated Development Environment (IDE) for ESP8266 developers
http://esp8266.ru/esplorer/
GNU General Public License v2.0
1.23k stars 325 forks source link

Bug in file saving process #58

Closed jurgis213 closed 7 years ago

jurgis213 commented 7 years ago

IDE doesn't write LUA file lines to memory for some reason it uses (file.writeline) command instead of (file.write)

Example:

file.remove("test.lua"); file.open("test.lua","w+"); w = file.writeline w([==[print("Test")]==]); file.close(); dofile("test.lua"); stdin:1: attempt to call field 'writelinew' (a nil value) stack traceback: stdin:1: in main chunk

xiongbinsh commented 7 years ago

sure, could resolved by add ';' after the line w=file.writeline created a PR https://github.com/4refr0nt/ESPlorer/pull/60/files for it.