GeoNomad / LuaLoader

A serial communications tool and IDE for the NodeMcu Lua firmware for the ESP8266

Repository from Github https://github.comGeoNomad/LuaLoaderRepository from Github https://github.comGeoNomad/LuaLoader

some escaping issue on file transfer

aremes opened this issue · comments

I tried to copy a file to the board. Worked fine until i did some indexing of arrays. ended up getting


> stdin:1: ')' expected near ']'```

the culprit was access of a specific element in a line that looks like this:

``` lua
x = somearray[1]

it was fixed by

x = (somearray[1])

might help someone with the same issue. If i get around to it, i might have a look at the code. Are pull-requests ok?

Same issue persists after almost a year. Gave me quite a headache to realize that this caused entire lines missing from the uploaded source files and lua giving me nils all the time.