LuaLS / vscode-lua

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

Language Server crashes on startup #90

Closed SimonCahill closed 1 year ago

SimonCahill commented 1 year ago

Which OS are you using?

MacOS

Expected Behaviour

I expect the extension to startup with no problems

Actual Behaviour

...

I also see the following error:

[2023-03-03 21:00:33] |   ERROR   |         Git        | fatal: not a git repository (or any of the parent directories): .git

Reproduction steps

  1. Install extension on VS Code Insiders for macOS (AARCH64, Ventura 13.2.1)
  2. Get errors lol

Additional Notes

No response

Log

STARTUP

[2023-03-03 21:00:33] | DEBUG | Filesystem | Created directory at "/Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager" [2023-03-03 21:00:33] | ERROR | Git | Failed to checkout repo! [2023-03-03 21:00:33] | ERROR | Git | fatal: not a git repository (or any of the parent directories): .git

carsakiller commented 1 year ago

Hello!

Which version of the extension are you currently using?

SimonCahill commented 1 year ago

My bad! I was expecting it to be in the logs; should've looked closer.

The version currently installed is v3.6.16

carsakiller commented 1 year ago

Seems like there is possibly still a pathing issue for MacOS then 🥴. Can you check your /Users/me/Library/Application Support/Code/User/globalStorage/sumneko.lua/addonManager and let me know what it contains?

SimonCahill commented 1 year ago

Directory contents:

simoncahill@Frigg: /Users/simoncahill  
➜   find ./Library/Application\ Support/Code\ -\ Insiders/User/globalStorage/sumneko.lua/addonManager/ -type f                                                                                                     
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/LICENSE
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/luaecs/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/luassert/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/love2d/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/openresty/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/luafilesystem/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/cocos4.0/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/cc-tweaked/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/lovr/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/skynet/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/addons/busted/info.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.gitmodules
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/schemas/addon_config.schema.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/schemas/addon_info.schema.json
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/README.md
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/CONTRIBUTING.md
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.github/workflows/main.yml
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.github/PULL_REQUEST_TEMPLATE/newAddon.md
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.github/ISSUE_TEMPLATE/config.yml
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.github/ISSUE_TEMPLATE/new_addon.yml
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/config
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/shallow
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/objects/pack/pack-864a9bc848392f67b48b466b1397582288b249d9.idx
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/objects/pack/pack-864a9bc848392f67b48b466b1397582288b249d9.pack
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/HEAD
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/info/exclude
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/logs/HEAD
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/logs/refs/heads/main
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/logs/refs/remotes/origin/HEAD
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/description
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/commit-msg.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/pre-rebase.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/pre-commit.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/applypatch-msg.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/fsmonitor-watchman.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/pre-receive.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/prepare-commit-msg.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/post-update.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/pre-merge-commit.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/pre-applypatch.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/pre-push.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/update.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/hooks/push-to-checkout.sample
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/refs/heads/main
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/refs/remotes/origin/HEAD
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/index
./Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager//Users/simoncahill/Library/Application Support/Code - Insiders/User/globalStorage/sumneko.lua/addonManager/.git/packed-refs
carsakiller commented 1 year ago

Yeah, looks like the directory is still nesting on macOS. I am going to track this issue over in the other issue instead to keep things a little more organized.