LuaLS / vscode-lua

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

Lua Extension crashes due to not being able to find the .git repo #101

Closed taranlu-houzz closed 1 year ago

taranlu-houzz commented 1 year ago

Which OS are you using?

MacOS

Expected Behaviour

The extension should not crash on startup.

Actual Behaviour

The Lua extension started to complain after a recent update to VSCode. I think this either has to do with the fact that my repo is a mono-repo with many sub-projects or that there are symlinks within the repo.

I also see the following error:

[2023-03-06 15:14:08] |   ERROR   |         Git        | fatal: not a git repository (or any of the parent directories): .git

Reproduction steps

  1. Open VSCode

Additional Notes

Log

STARTUP

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

carsakiller commented 1 year ago

This is to do with the new addon manager and seems to be a duplicate of https://github.com/LuaLS/vscode-lua/issues/81. The extension and language server is not crashing, the addon manager is just throwing an error.