luautf8 icon indicating copy to clipboard operation
luautf8 copied to clipboard

module 'lua-utf8' not found

Open konstantinosDMS opened this issue 1 year ago • 2 comments

Hi, I am using lua 5.4, i installed the luarocks and luarocks luautf8 package, but studio code searching the following locations for .so library Desktop/server/lua-apps/lua.lua:3118: module 'lua-utf8' not found: no field package.preload['lua-utf8'] no file '/home/konstantinos/Desktop/server/lua-apps/lua-utf8.lua' no file '/home/konstantinos/Desktop/server/lua-apps/lua-utf8.lua' no file '/home/konstantinos/Desktop/server/lua-apps/lua-utf8.so' no file '/home/konstantinos/Desktop/server/lua-apps/lua-utf8.so' I required as docs say in my code. Any suggestion?

konstantinosDMS avatar Oct 27 '23 21:10 konstantinosDMS

None of the paths mentioned there as getting searched look like anywhere luarocks may have installed anything. You need to adjust your package.cpath to include whatever system, user, or project location you installed to with LuaRocks.

alerque avatar Oct 27 '23 22:10 alerque

None of the paths mentioned there as getting searched look like anywhere luarocks may have installed anything. You need to adjust your package.cpath to include whatever system, user, or project location you installed to with LuaRocks.

U mean to add cpath to my environment variables point to luarocks packages?

konstantinosDMS avatar Oct 27 '23 22:10 konstantinosDMS