Broken `require` function with non built-in DLL packages in root modules
Closed this issue · 10 comments
require
tries to call packages incorrectly:
\lrt/modules/crpyto/crpyto.dll
It appears that after i uninstalled LfW, it deleted LUA_PATH
, and it didn't return after installing luaRT.
require()
is not broken.
What do you mean by "it tries to all packages incorrectly ?"
when i was making a script with net
and crypto
libs, it said the libs didn't exist. altough they were in my luaRT root.
luart.exe
doesn't find the dll
s for these libs, while it gets the right path, it is incorrectly calling it.
I did how the docs showed it:
local net = require "net"
local crypto = require "crpyto"
local ui = require "ui"
local test = Object{} -- OOP Test
print(test)
It errors at line 2, saying there is no crypto
package.
commenting the second line fixes it.
Do you have the environment variable LUA_PATH defined ?
If so, try to suppress it, it should remove this issue
No LUA_PATH
!
Appears to have fixed itself.