-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftpserver mutated without adapting documentation - breaking change #3191
Comments
My bad. Yes, this is a minor breaking change that needs documenting. The old ftp server could only be run out of LFS which is an impediment for beginners. I've made some tweaks so the file can be split into dynamically loaded separate LC files for top level methods and this runs fine out of RAM or the #3117 fast loader, but this required you to pass the ftp table in as an arg hence the need for the object notation. I will fix the documentation. |
The bad thing is that this is on Master already. Btw how can it be split? |
We are talking about a few line change to the MD file. If @marcelstoer is OK with this, I'll just patch the master documentation. The split stuff is discussed in #3117 and my gists. Sorry about this small gremlin, but the whole Lua 5.1 to 5.3 program is complex and a lot of tidying is needed and we should realistically expect the odd bump. Thanks for picking this up. |
On master or on release? And what about RTD? If you commit this to master you'll probably have to merge it back to dev. Otherwise we'll have conflict next time we drop to master. |
I'll just make the same change to Dev. |
Should we also mention this in the Breaking Change section of the release? |
Since we're hot-patching |
You're the expert here, not me 🤣 |
That's what will cause conflicts.
👍 except that I propose this happens immediately after the master patch
|
Seems OK by me. Commit to |
2 months have passed and we're approaching another master drop. IMO the only thing still relevant at this point is to fix it before the next master drop. @HHHartmann just to be sure, only https://github.com/nodemcu/nodemcu-firmware/blob/dev/docs/lua-modules/ftpserver.md is affected? |
Yes |
Ok, I was confused since you mentioned the HTTP server
|
Gregor is correct. It is my bad. I changed the FTP slightly so it can be loaded into non-LFS configs. I'll do a quick tidy and push the fix PR. Sorry about this. |
Oh. Didn't see that one. But yes it is the ftpserver only |
Expected behavior
code works as documented
Actual behavior
code fails with errormessage:
Test code
Working code:
Note the ':' instead of '.' before createServer
Documentation says:
httpserver.createServer()
NodeMCU startup banner
This is on current dev and master branch
NodeMCU 3.0.0.0
branch: pr_3158
commit: fd8ef76
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)
The text was updated successfully, but these errors were encountered: