You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(error messages here are for 5.3, but they also apply to 5.1)
First, taskfiles are loaded in test.alfons.<name> instead of alfons.tasks.<name>:
Alfons 4.2
Using Alfons.moon (moon)
/usr/bin/lua5.3: /usr/local/lib/luarocks/rocks-5.3/alfons/4.2-1/bin/alfons:363: test.alfons.moonbuild not found.
stack traceback:
[C]: in function 'error'
/usr/local/lib/luarocks/rocks-5.3/alfons/4.2-1/bin/alfons:363: in global 'load'
[string "Alfons"]:4: in function <[string "Alfons"]:3>
(...tail calls...)
/usr/local/lib/luarocks/rocks-5.3/alfons/4.2-1/bin/alfons:1018: in main chunk
[C]: in ?
Then, taskfile loading fails if the first line of the taskfile is a shebang (which is still supposed to be valid lua (loadfile accepts it but not Alfons)):
Alfons 4.2
Using Alfons.moon (moon)
/usr/bin/lua5.3: /usr/local/lib/luarocks/rocks-5.3/alfons/4.2-1/bin/alfons:363: Could not load Taskfile 1: Could not load Alfonsfile content (5.2+): [string "Alfons"]:1: unexpected symbol near '#'
stack traceback:
[C]: in function 'error'
/usr/local/lib/luarocks/rocks-5.3/alfons/4.2-1/bin/alfons:363: in global 'load'
[string "Alfons"]:4: in function <[string "Alfons"]:3>
(...tail calls...)
/usr/local/lib/luarocks/rocks-5.3/alfons/4.2-1/bin/alfons:1018: in main chunk
[C]: in ?
Then again, Alfons complains about missing globals for loading the file (package, _G (which should be set to the environment itself, probably along with _ENV for 5.3 compat), rawset, setmetatable), and then about subalf being a table and not a function:
Alfons 4.2
Using Alfons.moon (moon)
/usr/bin/lua5.3: [string "Alfons"]:5: attempt to index a nil value (global 'package')
stack traceback:
[string "Alfons"]:5: in upvalue 'alf'
/usr/local/share/lua/5.3/alfons/init.lua:133: in local 'subalf'
/usr/local/share/lua/5.3/alfons/init.lua:158: in global 'load'
[string "Alfons"]:4: in function <[string "Alfons"]:3>
(...tail calls...)
/usr/local/lib/luarocks/rocks-5.3/alfons/test-3/bin/alfons:93: in main chunk
[C]: in ?
(error messages here are for 5.3, but they also apply to 5.1)
First, taskfiles are loaded in
test.alfons.<name>
instead ofalfons.tasks.<name>
:Then, taskfile loading fails if the first line of the taskfile is a shebang (which is still supposed to be valid lua (
loadfile
accepts it but not Alfons)):Then again, Alfons complains about missing globals for loading the file (
package
,_G
(which should be set to the environment itself, probably along with_ENV
for 5.3 compat),rawset
,setmetatable
), and then aboutsubalf
being a table and not a function:The taskfile itself is https://push.codinget.me/moonbuild.lua and the Alfons.moon is https://push.codinget.me/Alfons.moon
The text was updated successfully, but these errors were encountered: