This describes my IDE setup when I develop this addon. Other develpers can use my setup as a reference.
Windows Subsystem for Linux v2 (Ubuntu 20.04 LTS)
Visual Studio Code
-
vscode-lua (trixnz.vscode-lua): For Lua linting
-
Lua Debug (actboy168.lua-debug): Lua Debugger
Note that the embeded lua of "Lua Debug" requires libreadline.so.6, which has no corresponding package in Ubuntu 20.04. Without this so, the debugging session will be stuck when you start debugging. Create a symlink to libreadline.8 solves the problem
sudo ln -sf /usr/lib/x86_64-linux-gnu/libreadline.so.8 /usr/lib/x86_64-linux-gnu/libreadline.so.6
-
shell-format (foxundermoon.shell-format): Shell script format integration
-
Prettier - Code formatter (esbenp.prettier-vscode): Prettier code formatter integration
-
C/C++ (ms-vscode.cpptools): C/C++ IntelliSense
-
lua5.1
-
luajit
-
luarocks
-
Other packages described in other documents, including format.md
Please read other documents for required Luarocks packages, including tests/README.md