I'm using / testing LuaD atm. It works very well, however, I've encountered a problem. When I load the module lualsp (for "lua server pages") the app crashes. If I run the lua script on its own

$ lua5.1 test.lua

it works perfectly fine. The lua server page is executed correctly. If I run the same script from within LuaD, the app crashes, same goes for

lua.doString("require \"lualsp\"");

I haven't been able to figure out how to load the module into lua correctly, obviously there is something going wrong. I hope there is a way.

The script test.lua:

-- test.lua
require "lualsp"

-- function from lualsp module written in C++
dofile_lsp("../examples/example1.html")
-- end test.lua

The lsp file:

<html>
  <body>

    <? name = "Chris"?>

    <? print(name) ?>

  </body>
</html>

Reply via email to