Tencent / LuaHelper

LuaHelper is a High-performance lua VSCode plugin, Language Server Protocol for lua.
Other
631 stars 94 forks source link

单文件调试失败 #108

Open owllyi opened 2 years ago

owllyi commented 2 years ago

PS D:\Src\lua> c:/Users/mac/.vscode/extensions/yinfei.luahelper-0.2.16/debugger/luasocket/win/x64/lua5.4/lua54.exe -e "package.path = 'c:/Users/mac/.vscode/extensions/yinfei.luahelper-0.2.16/debugger/?.lua;'.. package.path; package.cpath = 'c:/Users/mac/.vscode/extensions/yinfei.luahelper-0.2.16/debugger/luasocket/win/x64/lua5.4/?.dll;'.. package.cpath; require('LuaPanda').start('127.0.0.1',8818);" "d:/Src/lua/main.lua" [LuaPanda] [Error] reGetSock fail [LuaPanda] [Error] Start debugger but get Socket fail , please install luasocket! C:\Users\mac.vscode\extensions\yinfei.luahelper-0.2.16\debugger\luasocket\win\x64\lua5.4\lua54.exe: error loading module 'socket.core' from file 'c:/Users/mac/.vscode/extensions/yinfei.luahelper-0.2.16/debugger/luasocket/win/x64/lua5.4/socket\core.dll': 找不到指定的模块。

怎么尝试都不行,require("socket.core")总是提示找不到,麻烦看下是哪里的问题吧

MarioRicalde commented 4 months ago

Solution here in another issue ( https://github.com/Tencent/LuaHelper/issues/8 ). You need to set the packagePath to include the directory.