Trying out sitegen with Lua 5.1 with the homepage from the repo
Closed this issue · 2 comments
moritzbuhl commented
I am getting the following error with Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
:
[pasta@x230][pts/4]~/Downloads/sitegen/homepage: sitegen
using: site.moon
moon: /usr/local/share/lua/5.1/sitegen/common.lua:37: /usr/local/share/lua/5.1/sitegen/header.lua:36: attempt to call local 'build_grammar' (a nil value)
stack traceback:
/usr/local/share/lua/5.1/sitegen/header.lua:36: in function 'parse_moonscript_header'
/usr/local/share/lua/5.1/sitegen/header.lua:54: in function </usr/local/share/lua/5.1/sitegen/header.lua:47>
(tail call): ?
/usr/local/share/lua/5.1/sitegen/renderer.lua:19: in function 'load'
/usr/local/share/lua/5.1/sitegen/renderers/html.lua:160: in function 'load'
/usr/local/share/lua/5.1/sitegen/page.lua:147: in function '__init'
/usr/local/share/lua/5.1/sitegen/page.lua:168: in function </usr/local/share/lua/5.1/sitegen/page.lua:166>
(tail call): ?
/usr/local/share/lua/5.1/sitegen/site.lua:186: in function </usr/local/share/lua/5.1/sitegen/site.lua:182>
/usr/local/share/lua/5.1/sitegen/site.lua:190: in function 'load_pages'
/usr/local/share/lua/5.1/sitegen/site.lua:203: in function </usr/local/share/lua/5.1/sitegen/site.lua:199>
(tail call): ?
(tail call): ?
/usr/local/share/lua/5.1/sitegen/common.lua:33: in function </usr/local/share/lua/5.1/sitegen/common.lua:32>
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/sitegen/common.lua:37: in function 'catch_error'
/usr/local/bin/sitegen:12: (12) in main chunk
leafo commented
Dev branch of sitegen only compatible with dev branch of moonscript at the moment. The dev branch of moonscript is stable so it's safe to install it over the versioned number. When the next version of moonscript comes out you'll want to switch back to it though.
moritzbuhl commented
Okay, thanks. It works now.