Chat about current Lua tools and IDEs

User avatar
By pstehlik
#60033 Hi all,

I'd like to announce a very simple online editor in a browser window for your Lua code. It's an old project but I got it working on a recent NodeMCU/SDK and added a syntax highlighting editor so you might like to give it a try. It does not need an Internet connection, does not use cloud service or a third party server. It's running on your ESP8266, creates a web server there so you can simply access it in your (W)LAN using your web browser.

Source code is in GitHub: https://github.com/joysfera/nodemcu-web-ide

Enjoy,

Petr
User avatar
By jankop
#60056 Do you have a mistake there.

Code: Select all> dofile("ide.lua")
ide.lua:201: attempt to concatenate a nil value
stack


it fixes
Code: Select all--print("listening at " .. wifi.sta.getip() .. ", free: " .. node.heap())

tmr.alarm(1,1000,1,
   function()
      if wifi.sta.getip()==nil
         then
         print("Wait for IP")
         else
         tmr.stop(1)
         print("listening at " .. wifi.sta.getip() .. ", free: " .. node.heap())
      end
   end)
User avatar
By pstehlik
#60057 It's not a bug, you just didn't follow the instructions. The message indicates that your ESP8266 is not online.

Nevertheless, I'll add the check there. Thanks.