Closed DarkWiiPlayer closed 5 years ago
After some more testing it seems this error only affects LuaJIT 2.0, but it works on 2.1.0-beta3
After more testing, the once installed rock works down to LuaJIT 2.0.0; I have yet to test recompiling it against these LuaJIT versions or PUC Lua 5.1, which might be the cause of the problem.
So far though, evidence is pointing towards this being a problem with my box, not necessarily the lyaml module.
In the end I found the cause: lyaml seems incompatible with lua-yaml, which also has a module simply called yaml
, so Lua loads that instead. So the error was indeed on my system, though it seems weird that a module lyaml would call a submodule yaml; maybe it'd be worth renaming that to avoid name clashes like this.
Using LuaJIT on Linux Mint, I get the following error when I call
lyaml.dump {{foo="bar"}}
And a very similar error with
lyaml.load
, except it'sparser
that's nil.