-
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
Makes lfs/_init.lua compatible with Lua 5.3 #3168
Conversation
How do we solve there should probably be different luacheck Lua 5.1 and Lua 5.3? |
89dd41d
to
9decd7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This will need further revision in light of #3176. Blocked until that lands, I think. |
Merging now would mean to have the example compatible with Lua 5.3. Another rework should follow #3176 imho. |
That seems like an OK plan to me. @TerryE? |
There are +/-'s here. Anyone that needs BTW, it's my wife's birthday today, so I don;t want to be locked away in my study today. 😄 |
Now that #3176 has been closed, it's probably time to revisit this. Unblocking. |
821984e
to
78a2e9c
Compare
}, | ||
LFS = { | ||
read_only = true, | ||
fields = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really a question for this PR, but since you're in the neighborhood: should we suggest to advanced developers how to add entries here? People using their own LFS might want their code to still be luacheck
-clean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nwf I think it would be a good idea to make some kind of documentation on how to use luacheck
on NodeMCU code. I've written luacheck_config_helper.lua
script when I was adding luacheck
support but I haven't documented it anywhere besides some comments in the script itself. Should this be added to GitHub Wiki, Extension Developer FAQ or somewhere else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be a good idea to make some kind of documentation on how to use
luacheck
on NodeMCU code.
I am more of the view: what's wrong with RTFM? If anyone wants to read up on how to use luacehck then it comes with a lot of good documentation. May a reference to it in our FAQs.
Since this is approved, is it ready to be merged? |
Sure, what's the worst that happens. ;) |
Fixes #3156.
dev
branch rather than formaster
.docs/*
.This commit makes lua_examples/lfs/_init.lua compatible with Lua 5.3.