Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lua-rocks opened this issue Apr 15, 2023 · 18 comments · Fixed by #121
Closed

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

lua-rocks opened this issue Apr 15, 2023 · 18 comments · Fixed by #121
Labels
addon manager Related to the addon manager

Comments

@lua-rocks
Copy link

lua-rocks commented Apr 15, 2023

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
Copy link
Collaborator

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.

@carsakiller carsakiller added the addon manager Related to the addon manager label Apr 16, 2023
@lua-rocks
Copy link
Author

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

@carsakiller
Copy link
Collaborator

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

@lua-rocks
Copy link
Author

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
Copy link
Author

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
Copy link
Collaborator

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
#### 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
Copy link
Author

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
Copy link
Author

lua-rocks commented Apr 24, 2023

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

@lua-rocks
Copy link
Author

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
Copy link
Author

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 lua-rocks reopened this Apr 24, 2023
@lua-rocks
Copy link
Author

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
Copy link
Author

lua-rocks commented Apr 24, 2023

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
Copy link
Collaborator

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

@lua-rocks
Copy link
Author

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!

screenrecord.mp4

@carsakiller
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addon manager Related to the addon manager
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants