attempt to call field 'gfind' (a nil value)
kikito opened this issue · comments
Enrique García Cota commented
The gfind
method was deprecated in Lua 5.1, and in Lua 5.2 (and LuaJIT, which is what I'm using) it doesn't exist any more - it was replaced by gmach
.
If compatibility with Lua 5.0 isn't needed, then this can be fixed by replacing gfind
by gmatch
in src/luadoc/doclet/html.lua
and src/luadoc/util.lua
. If compatibility is desired, then in both of those files something like this is needed:
local gmatch = string.gfind or string.gmatch
...
for d in gmatch(...)
I can provide a PR for any of the two alternatives. Please let me know which one is preferred.
Tomás Guisasola commented
Hi Enrique
I think LDoc substituted this project. Please check it.
Regards,
Tomás
2018-06-12 6:55 GMT-03:00 Enrique García Cota <notifications@github.com>:
… The gfind method was deprecated in Lua 5.1, and in Lua 5.2 (and LuaJIT,
which is what I'm using) it doesn't exist any more - it was replaced by
gmach.
If compatibility with Lua 5.0 isn't needed, then this can be fixed by
replacing gfind by gmatch in src/luadoc/doclet/html.lua and
src/luadoc/util.lua. If compatibility is desired, then in both of those
files something like this is needed:
local gmatch = string.gfind or string.gmatch
...
for d in gmatch(...)
I can provide a PR for any of the two alternatives. Please let me know
which one is preferred.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#16>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIA7Qu8qW4dxVd7viKbKybvon8yUBrJks5t75AugaJpZM4UkIK_>
.