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
I'm having a problem loading packages from local directory. The problem can be reproduced by the following code:
local init = require 'empty.lua'
local Threads = require 'threads'
Threads.serialization('threads.sharedserialize')
function main()
require 'empty.lua'
local function init()
require 'empty.lua'
end
t = Threads(1, init)
end
main()
where empty.lua is a lua package saved in local directory.
Error is only reported for the last require (i.e. the one used in thread initialisation), and loading built-in packages does not generate an error.
Thanks
The text was updated successfully, but these errors were encountered:
local init = require 'empty'
local Threads = require 'threads'
Threads.serialization('threads.sharedserialize')
function main()
require 'empty'
local function init()
require 'empty'
end
t = Threads(1, init)
end
main()
Hi,
I'm having a problem loading packages from local directory. The problem can be reproduced by the following code:
where
empty.lua
is a lua package saved in local directory.Error is only reported for the last require (i.e. the one used in thread initialisation), and loading built-in packages does not generate an error.
Thanks
The text was updated successfully, but these errors were encountered: