LuaLS / vscode-lua

Release lua-language-server for VSCode
https://github.com/LuaLS/lua-language-server
MIT License
175 stars 47 forks source link

I can't enable any addon from the addon manager. #119

Closed lua-rocks closed 1 year ago

lua-rocks commented 1 year ago

Which OS are you using?

I use Manjaro Linux and VSCodium-bin from AUR.

Actual Behaviour

demo

Log

[2023-04-15 20:43:43] |    INFO   |       GENERAL      | 
[2023-04-15 20:43:51] |    INFO   |        Addon       | Enabled "argparse"
[2023-04-15 20:43:53] |    INFO   |        Addon       | Applied addon settings for love2d
[2023-04-15 20:43:53] |    INFO   |        Addon       | Enabled "love2d"
[2023-04-15 20:43:54] |    INFO   |        Addon       | Applied addon settings for love2d
[2023-04-15 20:43:54] |    INFO   |        Addon       | Enabled "love2d"
[2023-04-15 20:43:59] |    INFO   |        Addon       | Applied addon settings for love2d
[2023-04-15 20:43:59] |    INFO   |        Addon       | Enabled "love2d"
[2023-04-15 20:44:23] |    INFO   |        Addon       | Applied addon settings for love2d
[2023-04-15 20:44:23] |    INFO   |        Addon       | Enabled "love2d"
[2023-04-15 20:44:24] |    INFO   |        Addon       | Enabled "argparse"
[2023-04-15 20:44:25] |    INFO   |        Addon       | Applied addon settings for love2d
[2023-04-15 20:44:25] |    INFO   |        Addon       | Enabled "love2d"
[2023-04-15 20:44:26] |    INFO   |        Addon       | Enabled "argparse"
[2023-04-15 20:44:33] |    INFO   |        Addon       | Enabled "argparse"
[2023-04-15 20:44:38] |    INFO   |        Addon       | Applied addon settings for love2d
[2023-04-15 20:44:38] |    INFO   |        Addon       | Enabled "love2d"
[2023-04-15 20:45:12] |    INFO   |        Addon       | Enabled "bee"
[2023-04-15 20:45:12] |    INFO   |        Addon       | Enabled "bee"
[2023-04-15 20:45:13] |    INFO   |        Addon       | Enabled "bee"
[2023-04-15 20:45:14] |    INFO   |        Addon       | Uninstalled bee
[2023-04-15 20:45:16] |    INFO   |        Addon       | Uninstalled argparse
[2023-04-15 20:45:17] |    INFO   |     Open Addon     | Opening "argparse" addon in file explorer
[2023-04-15 20:45:22] |    INFO   |        Addon       | Enabled "argparse"
[2023-04-15 20:45:23] |    INFO   |     Open Addon     | Opening "argparse" addon in file explorer
carsakiller commented 1 year ago

I don't currently have the time to debug this properly. Can you try deleting the addon manager folder? On Windows, this is at C:\Users\YOU\AppData\Roaming\Code\User\globalStorage\sumneko.lua\addonManager, I am not sure where it is exactly on Linux.

lua-rocks commented 1 year ago

I removed ~/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager, restarted VSCodium, this folder was created again, but Addon Manager is still broken.

carsakiller commented 1 year ago

Is that the entirety of the log file? It looks like it is missing some info from startup.

lua-rocks commented 1 year ago

Excuse me, the list was very long because I did a lot of clicking, so I removed the duplicate messages.

There was nothing but "enabled" and "disabled" info.

lua-rocks commented 1 year ago

Here is another one:

[2023-04-21 16:55:32] |    INFO   |       GENERAL      | This session's log file: file:///home/luarocks/.config/VSCodium/logs/20230421T165523/window1/exthost/sumneko.lua/addonManager/16.log
[2023-04-21 16:56:05] |    INFO   |        Addon       | Enabled "argparse"
[2023-04-21 16:56:08] |    INFO   |        Addon       | Enabled "argparse"
[2023-04-21 16:56:09] |    INFO   |        Addon       | Enabled "argparse"
[2023-04-21 16:56:11] |    INFO   |        Addon       | Uninstalled argparse
[2023-04-21 16:56:15] |    INFO   |        Addon       | Enabled "bee"
[2023-04-21 16:56:16] |    INFO   |        Addon       | Enabled "bee"
[2023-04-21 16:56:17] |    INFO   |        Addon       | Uninstalled bee
carsakiller commented 1 year ago

I just fired up a Manjaro VM and installed VS Codium using yay. Then I installed v3.6.18 of the Lua extension. I can't seem to replicate your issue, though. I am able to install an addon, enable it, and receive completions, exactly as expected.

Is there anything you can think of that would be interfering with Git and/or file operations? It is very odd that your log files don't include all the log messages.

For reference, here is my log file from my working attempt on Manjaro:

Details ```log #### STARTUP #### [2023-04-22 02:14:48] | DEBUG | WebVue | Workspace Open: true [2023-04-22 02:14:49] | DEBUG | Filesystem | Created directory at "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager" [2023-04-22 02:14:49] | VERBOSE | Command | Executing "getAddons" ({"command":"getAddons","data":{"page":1}}) [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found argparse [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found bee [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found busted [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found cc-tweaked [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found cocos4.0 [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found love-nuklear [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found love2d [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found lovr [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found lpeg [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found luaecs [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found luafilesystem [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found luaharfbuzz [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found luasocket [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found luassert [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found luazip [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found luvit [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found lzlib [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found md5 [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found moneymoney [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found moonloader [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found nodemcu-esp32 [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found nodemcu-esp8266 [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found openresty [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found penlight [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found skynet [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found slnunicode [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found tex-lualatex [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found tex-lualibs [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found tex-luametatex [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found tex-luatex [2023-04-22 02:14:49] | VERBOSE | Addon Manager | Found xmake [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/busted/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/cc-tweaked/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/cocos4.0/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/love-nuklear/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/love2d/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/lovr/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/lpeg/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luaecs/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luafilesystem/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luaharfbuzz/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luasocket/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luassert/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luazip/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luvit/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/lzlib/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/md5/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/moneymoney/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/moonloader/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/nodemcu-esp32/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/nodemcu-esp8266/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/openresty/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/penlight/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/skynet/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/slnunicode/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/tex-lualatex/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/tex-lualibs/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/tex-luametatex/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/tex-luatex/info.json" [2023-04-22 02:14:50] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/xmake/info.json" [2023-04-22 02:14:53] | VERBOSE | Command | Executing "enable" ({"command":"enable","data":{"name":"cc-tweaked"}}) [2023-04-22 02:14:53] | DEBUG | Addon | Initialized submodule [2023-04-22 02:14:53] | DEBUG | Addon | Submodule up to date [2023-04-22 02:14:53] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/cc-tweaked/module/config.json" [2023-04-22 02:14:54] | INFO | Addon | Applied addon settings for cc-tweaked [2023-04-22 02:14:54] | INFO | Addon | Enabled "cc-tweaked" [2023-04-22 02:14:54] | DEBUG | Filesystem | Read "/home/manjaro/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/cc-tweaked/info.json" [2023-04-22 02:14:56] | VERBOSE | Command | Executing "openLog" ({"command":"openLog"}) ```
lua-rocks commented 1 year ago

Thank you very much for taking the time to check my issue. Today, for reasons completely unknown to me, everything worked! I swear I didn't change anything. My computer has been turned off since the last time I experienced this problem.

Thanks anyway. I close this issue and will reopen if it happens again.

lua-rocks commented 1 year ago

By the way, my output is still no different from the previous one. There is no debug or verbose info.

lua-rocks commented 1 year ago

Oops, sorry, I was copying the output from the vscode console and didn't notice the little icon that opens the log file with detailed information.

lua-rocks commented 1 year ago

Bad news. Everything was working fine, but after reboot it's not working again 😢.

All required files are loaded correctly, but they are not enabled in my project when I press the "Enable" button (no changes in .luarc.json or .vscode/settings.json).

Details ``` #### STARTUP #### [2023-04-24 14:59:29] | DEBUG | WebVue | Workspace Open: true [2023-04-24 14:59:29] | DEBUG | Filesystem | Created directory at "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager" [2023-04-24 14:59:29] | DEBUG | Git | Attempting to clone LLS-Addons to /home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager [2023-04-24 14:59:29] | VERBOSE | Command | Executing "getAddons" ({"command":"getAddons","data":{"page":1}}) [2023-04-24 14:59:30] | DEBUG | Git | Cloned LLS-Addons to /home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found argparse [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found bee [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found busted [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found cc-tweaked [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found cocos4.0 [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found love-nuklear [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found love2d [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found lovr [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found lpeg [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found luaecs [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found luafilesystem [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found luaharfbuzz [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found luasocket [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found luassert [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found luazip [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found luvit [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found lzlib [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found md5 [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found moneymoney [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found moonloader [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found nodemcu-esp32 [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found nodemcu-esp8266 [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found openresty [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found penlight [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found skynet [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found slnunicode [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found tex-lualatex [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found tex-lualibs [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found tex-luametatex [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found tex-luatex [2023-04-24 14:59:31] | VERBOSE | Addon Manager | Found xmake [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/busted/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/cc-tweaked/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/love-nuklear/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/cocos4.0/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/love2d/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/lovr/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/lpeg/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luaecs/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luafilesystem/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luaharfbuzz/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luasocket/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luassert/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luvit/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/luazip/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/lzlib/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/md5/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/moneymoney/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/nodemcu-esp32/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/nodemcu-esp8266/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/moonloader/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/openresty/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/penlight/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/skynet/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/slnunicode/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/tex-lualatex/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/tex-lualibs/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/tex-luametatex/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/tex-luatex/info.json" [2023-04-24 14:59:31] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/xmake/info.json" [2023-04-24 14:59:32] | VERBOSE | Command | Executing "openLog" ({"command":"openLog"}) [2023-04-24 14:59:44] | VERBOSE | Command | Executing "enable" ({"command":"enable","data":{"name":"argparse"}}) [2023-04-24 14:59:44] | DEBUG | Addon | Initialized submodule [2023-04-24 14:59:45] | DEBUG | Addon | Submodule up to date [2023-04-24 14:59:45] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/module/config.json" [2023-04-24 14:59:45] | INFO | Addon | Enabled "argparse" [2023-04-24 14:59:45] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/info.json" [2023-04-24 14:59:54] | VERBOSE | Command | Executing "enable" ({"command":"enable","data":{"name":"argparse"}}) [2023-04-24 14:59:55] | DEBUG | Addon | Initialized submodule [2023-04-24 14:59:55] | DEBUG | Addon | Submodule up to date [2023-04-24 14:59:55] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/module/config.json" [2023-04-24 14:59:55] | INFO | Addon | Enabled "argparse" [2023-04-24 14:59:55] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/info.json" [2023-04-24 14:59:56] | VERBOSE | Command | Executing "enable" ({"command":"enable","data":{"name":"argparse"}}) [2023-04-24 14:59:56] | DEBUG | Addon | Initialized submodule [2023-04-24 14:59:56] | DEBUG | Addon | Submodule up to date [2023-04-24 14:59:56] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/module/config.json" [2023-04-24 14:59:56] | INFO | Addon | Enabled "argparse" [2023-04-24 14:59:56] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/info.json" [2023-04-24 15:00:12] | VERBOSE | Command | Executing "enable" ({"command":"enable","data":{"name":"bee"}}) [2023-04-24 15:00:12] | DEBUG | Addon | Initialized submodule [2023-04-24 15:00:13] | DEBUG | Addon | Submodule up to date [2023-04-24 15:00:13] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/module/config.json" [2023-04-24 15:00:13] | INFO | Addon | Enabled "bee" [2023-04-24 15:00:13] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/info.json" [2023-04-24 15:00:14] | VERBOSE | Command | Executing "enable" ({"command":"enable","data":{"name":"bee"}}) [2023-04-24 15:00:14] | DEBUG | Addon | Initialized submodule [2023-04-24 15:00:15] | DEBUG | Addon | Submodule up to date [2023-04-24 15:00:15] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/module/config.json" [2023-04-24 15:00:15] | INFO | Addon | Enabled "bee" [2023-04-24 15:00:15] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/info.json" [2023-04-24 15:00:15] | VERBOSE | Command | Executing "enable" ({"command":"enable","data":{"name":"bee"}}) [2023-04-24 15:00:15] | DEBUG | Addon | Initialized submodule [2023-04-24 15:00:15] | DEBUG | Addon | Submodule up to date [2023-04-24 15:00:15] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/module/config.json" [2023-04-24 15:00:15] | INFO | Addon | Enabled "bee" [2023-04-24 15:00:15] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/info.json" [2023-04-24 15:00:17] | VERBOSE | Command | Executing "uninstall" ({"command":"uninstall","data":{"name":"bee"}}) [2023-04-24 15:00:17] | DEBUG | Filesystem | Deleted /home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/module [2023-04-24 15:00:17] | INFO | Addon | Uninstalled bee [2023-04-24 15:00:17] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/bee/info.json" [2023-04-24 15:00:17] | VERBOSE | Command | Executing "uninstall" ({"command":"uninstall","data":{"name":"argparse"}}) [2023-04-24 15:00:17] | DEBUG | Filesystem | Deleted /home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/module [2023-04-24 15:00:17] | INFO | Addon | Uninstalled argparse [2023-04-24 15:00:17] | DEBUG | Filesystem | Read "/home/luarocks/.config/VSCodium/User/globalStorage/sumneko.lua/addonManager/addons/argparse/info.json" ```
lua-rocks commented 1 year ago

I also noticed that in certain projects the addon manager always works correctly, but in others it never works. I can't figure out the difference between them. I tried temporarily deleting the ".vscode" folder from both projects and nothing changed - in one project I can enable plugins, in the other I can't.

lua-rocks commented 1 year ago

But wait, no, not always. One project is more likely to enable plugins and the other is less. Sometimes they are not enables anywhere. I guess it depends on the location of stars in the sky.

carsakiller commented 1 year ago

Interesting... do you have an example project I can try to reproduce the problem in?

lua-rocks commented 1 year ago

I think I figured out what the reason is! 🎉

If I open a project in which no .lua file has ever been opened, the addon manager cannot enable addons.

But after opening any .lua file in the project, it starts working correctly!

https://user-images.githubusercontent.com/82697845/234629897-83b8e874-dbfc-4b1a-b1e5-b6145ee3b393.mp4

carsakiller commented 1 year ago

Ah, yes, you would be correct! This appears to be because the Lua Language Server doesn't start until a .lua is opened. The addon manager depends on the Lua Language Server to apply settings, so an addon cannot be enabled until the language server is started.

carsakiller commented 1 year ago

There are only a few options here:

  1. Open any *.lua file to start the extension and language server
  2. Edit extension so that executing the addon manager command starts the language server
  3. Port the configuration file editing to the extension, so there is no dependency on the language server

For now, option 1 works, but option 2 will have to be explored, option 3 will be a lot of work just to do what is already done.

lua-rocks commented 1 year ago

It seems to me that the best solution here would be to start the language server on addon manager window open. Is it hard to implement?

carsakiller commented 1 year ago

That is what option 2 is. I found a way to activate the language server should it not be started when the addon manager is opened.