nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32
https://nodemcu.readthedocs.io
MIT License
7.67k stars 3.13k forks source link

Full path as given to luac.cross in call stack #3192

Closed HHHartmann closed 4 years ago

HHHartmann commented 4 years ago

Expected behavior

Only the filename should show in callstacks to be able to automatically parse them

Actual behavior

The path as given on the commandline is printed

stack traceback:
    [C]: in function 'listen'
    ..\lua_modules\telnet\telnet.lua:57: in function <..\lua_modules\telnet\telnet.lua:50>

Test code

Prepare an lfs image:

cd nodemcu-firmware/tools
../luac.cross -f ../lua_modules/ftp/ftpserver.lua

Just some code that provokes an error. Flash the current FTP server and call it twice.

node.flashindex('ftpserver')():createServer("test","12345",true)
node.flashindex('ftpserver')():createServer("test","12345",true)

will give above errormessage

NodeMCU startup banner

NodeMCU 3.0.0.0 branch: pr_3158 commit: fd8ef76b0ae71dde56f0fb853faa2763520ebdea release: 3.0-master_20200610 +11 release DTS: SSL: false build type: float LFS: 0x40000 bytes total capacity modules: adc,bit,color_utils,crypto,dht,encoder,enduser_setup,file,gpio,http,i2c,l3g4200d,mdns,net,node,ow,pipe,pixbuf,pwm,rtcfifo,rtcmem,rtctime,sjson,sntp,spi,struct,tmr,uart,wifi,wifi_monitor,ws2812,ws2812_effects build 2020-06-26 19:39 powered by Lua 5.1.4 on SDK 3.0.1-dev(fce080e)

Hardware

generic devboard

HHHartmann commented 4 years ago

Could be that this is a windows only issue. Checking

HHHartmann commented 4 years ago

Nope! unix is the same.

HHHartmann commented 4 years ago

OK, sorry. seems as if I just executed tests from LFS the first time. I found an old board from 2017 which shows the same behaviour if executed from LFS.

So sorry for the noise.