Alloyed/loverocks

`loverocks init` fails with not finding `templates`

bb010g opened this issue · 5 comments

--- LOVE/act-rpg ‹master* ?› » loverocks init
Found LOVE version 0.9.2
ERROR: file 'templates/love9' not found:
    could not open LuaRocks manifest for /home/bb010g/.luarocks
    no file '/home/bb010g/.luarocks/share/lua/5.1/loverocks/templates/love9'
    no file '/home/bb010g/.luarocks/share/lua/5.1/templates/love9'
    no file '/home/bb010g/.luarocks/share/lua/templates/love9'
    no file '/home/bb010g/.luarocks/share/templates/love9'
    no file '/home/bb010g/.luarocks/templates/love9'
    no file '/home/bb010g/templates/love9'
    no file '/home/templates/love9'
    no file '/home/bb010g/.local/share/templates/love9'
    no file '/usr/local/share/templates/love9'
    no file '/usr/share/templates/love9'
    templates/love9: No such file or directory

Using the latest Git. The directory is at ~/.luarocks/lib/luarocks/rocks-5.3/loverocks/scm-0/templates/.

I'm assuming by the path it's installed to you are using a build of luarocks that uses Lua 5.3? Unfortunately that kind of setup can't be supported: luarocks has the implicit assumption built into it that you will use the same interpreter for luarocks that you are using for your actual code, which in LOVE's case is Lua 5.1.

if you're using an OS with a package manager, many distributions will provide suffixed version of luarocks for different versions of lua. For example, on Arch Linux, the package community/luarocks5.1 will install luarocks-5.1, which should work fine.

It was installed with luarocks-5.1. It refuses to install with -5.3.

That's weird. Can you try uninstalling loverocks and reinstalling it with --verbose, and post the result?

Sorry about the delay.

--- ~ » luarocks-5.1 --local remove loverocks                                                                                                                                                                                  2 ↵
Checking stability of dependencies on the absence of
loverocks scm-0...

Removing loverocks scm-0...
Removal successful.
--- ~ » cd src/loverocks
--- src/loverocks ‹master› » luarocks-5.1 build --verbose --local loverocks-scm-0.rockspec &> ~/loverocks-build-log.txt
--- src/loverocks ‹master› » cd ~/Documents/LOVE 
--- Documents/LOVE » mkdir foo
--- Documents/LOVE » loverocks init foo
Found LOVE version 0.9.2
ERROR: file 'templates/love9' not found:
    could not open LuaRocks manifest for /home/bb010g/.luarocks
    no file '/home/bb010g/.luarocks/share/lua/5.1/loverocks/templates/love9'
    no file '/home/bb010g/.luarocks/share/lua/5.1/templates/love9'
    no file '/home/bb010g/.luarocks/share/lua/templates/love9'
    no file '/home/bb010g/.luarocks/share/templates/love9'
    no file '/home/bb010g/.luarocks/templates/love9'
    no file '/home/bb010g/templates/love9'
    no file '/home/templates/love9'
    no file '/home/bb010g/.local/share/templates/love9'
    no file '/usr/local/share/templates/love9'
    no file '/usr/share/templates/love9'
    templates/love9: No such file or directory

loverocks-build-log.txt

datafile is no longer used