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
When installing the extension, debugging does not work out of the box due to the following error:
[LuaPanda] [Error] reGetSock fail
[LuaPanda] [Error] Start debugger but get Socket fail , please install luasocket!
Execution is fine since it uses the included Lua binary. I wasn't able to get the included DLLs to work so I ended up having to compile them. I have made a small tutorial to work around the issue when using Windows 11:
Workaround
Download the Lua (5.4) Interpreter an put it somewhere to use it, in my case /C/Users/MarioRicalde/OneDrive/Documents/Lua/
Using Msys2 mingw64 and navigate to directory, adjust the paths to match your configuration (hint, replace C/Users/MarioRicalde/OneDrive/Documents with your path ):
very good, I use your way successfully solve my question, I find the same error in mac, could you provide another way to solve it. thank you, looking forward to your replay.
Issue
When installing the extension, debugging does not work out of the box due to the following error:
[LuaPanda] [Error] reGetSock fail [LuaPanda] [Error] Start debugger but get Socket fail , please install luasocket!
Execution is fine since it uses the included Lua binary. I wasn't able to get the included DLLs to work so I ended up having to compile them. I have made a small tutorial to work around the issue when using Windows 11:
Workaround
Download the Lua (5.4) Interpreter an put it somewhere to use it, in my case
/C/Users/MarioRicalde/OneDrive/Documents/Lua/
Install MSYS2 https://www.msys2.org/#installation
In the MSYS terminal and install the toolchain:
pacman -S mingw-w64-x86_64-toolchain
Download latest release (src) or clone from https://github.com/lunarmodules/luasocket/releases.
Using Msys2 mingw64 and navigate to directory, adjust the paths to match your configuration (hint, replace C/Users/MarioRicalde/OneDrive/Documents with your path ):
With that you should have the core.dll file:
Go to VSCode, Ctrl + P, write:
That will open explorer, go into luasocket > win > x64 > lua5.4 > socket
Rename core.dll to core.bak.dll and add your newly compiled core.dll
Everything should work now 🎊
The text was updated successfully, but these errors were encountered: