[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [proposal] require resources
- From: Sean Conner <sean@...>
- Date: Mon, 20 Jan 2020 00:30:46 -0500
It was thus said that the Great Sean Conner once stated:
> It should look more like:
>
> lua: res.lua:37: resource "gopher.icon" not found:
> no file "/home/spc/.luarocks/share/lua/5.3/org.conman.app.gopherclient/gopher.icon"
> no file "/home/spc/.luarocks/lib/lua/5.3/org.conman.app.gopherclient/gopher.icon"
> no file "/usr/local/share/lua/5.3/org.conman.app.gopherclient/gopher.icon"
> no file "/usr/local/lib/lua/5.3/org.conman.app.gopherclient/gopher.icon"
> no file "./org.conman.app.gopherclient/gopher.icon"
> stack traceback:
> [C]: in function 'error'
> res.lua:37: in function 'resource'
> res.lua:40: in main chunk
> [C]: in ?
My mistake---there was a bug in the code [1] that didn't properly replace
the dots in the module name with directory separators. It should look like:
lua: /tmp/foo/res.lua:37: resource "gopher.icon" not found:
no file "/home/spc/.luarocks/share/lua/5.3/org/conman/app/gopherclient/gopher.icon"
no file "/home/spc/.luarocks/lib/lua/5.3/org/conman/app/gopherclient/gopher.icon"
no file "/usr/local/share/lua/5.3/org/conman/app/gopherclient/gopher.icon"
no file "/usr/local/lib/lua/5.3/org/conman/app/gopherclient/gopher.icon"
no file "./org/conman/app/gopherclient/gopher.icon"
stack traceback:
[C]: in function 'error'
/tmp/foo/res.lua:37: in function 'resource'
/tmp/foo/res.lua:40: in main chunk
[C]: in ?
-spc
[1] Code? Yes, I already have an implementation. I'm not releasing it
until we see an implementation from Soni. It's all done in straight
Lua.