lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


My > print(package.path)
/usr/local/bin/lua;/usr/local/share/lua/5.4/?.lua;/usr/local/share/lua/5.4/?/init.lua;/usr/local/lib/lua/5.4/?.lua;/usr/local/lib/lua/5.4/?/init.lua;./?.lua;./?/init.lua
My > print(package.cpath)
/usr/local/lib/lua/5.4/?.so;/usr/local/lib/lua/5.4/posix/sys/

My echo $LUA_CPATH
/usr/local/lib/lua/5.4/?.so;/usr/local/lib/lua/5.4/posix/sys/
My echo $LUA_PATH
/usr/local/bin/lua;;

my v.code:
module 'posix.signal' not found:
no field package.preload['posix.signal']
no file '/home/konstantinos/Desktop/server/lua-apps/posix/signal.lua'
no file '/home/konstantinos/Desktop/server/lua-apps/posix/signal.lua'
no file '/home/konstantinos/Desktop/server/lua-apps/posix/signal.so'
no file '/home/konstantinos/Desktop/server/lua-apps/posix/signal.so'
no file '/home/konstantinos/Desktop/server/lua-apps/posix.so'
no file '/home/konstantinos/Desktop/server/lua-apps/posix.so'
on local posix = require('posix.signal'), seraches on the path i have my deployment folder.

vscode launch.json file

"configurations": [
{
"type": "lua",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/lua.lua",
"cpath": "${env:LUA_CPATH}"
}
]

Any suggestion?