This repository was archived by the owner on Dec 16, 2018. It is now read-only.
This repository was archived by the owner on Dec 16, 2018. It is now read-only.
attempt to index global 'socket' (a nil value) #2
Open
Description
Hello there,
first of all, thanks for the awesome framework you made, I love it.
But I have a little problem with importing socket, I did everything you said on the readme, but after trying to run love . --test
I encountered the following error:
Error: test/lunatest.lua:64: attempt to index global 'socket' (a nil value)
stack traceback:
[string "boot.lua"]:637: in function '__index'
test/lunatest.lua:64: in main chunk
[C]: in function 'require'
test/lovetest.lua:26: in function 'run'
main.lua:27: in function 'load'
[string "boot.lua"]:488: in function <[string "boot.lua"]:487>
[C]: in function 'xpcall'
[string "boot.lua"]:650: in function <[string "boot.lua"]:639>
[C]: in function 'xpcall'
Adding explicit import to lunatest.lua
solved the problem.
local socket = require("socket")
Metadata
Metadata
Assignees
Labels
No labels