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

Please clarify that you need a local installation of git for the addons to work #163

Open
another-m00 opened this issue Feb 25, 2025 · 2 comments
Labels
addon manager Related to the addon manager

Comments

@another-m00
Copy link

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Libraries

Expected Behaviour

I expected the extension to work out of the box or have a a set up guide.

Actual Behaviour

Currently on windows the addon manager throws an uncaught spawn git ENOENT without any details. I had to go back through the logs to figure it out, that I need a local git installation.

Reproduction steps

  1. Install Visual Studio on a fresh windows machine
  2. Install the lua lls extension
  3. Try to open the addon manager
  4. Get the spawn git ENOENT error with the trimmed logs

Additional Notes

It would be enough to include a section in the documentation, or handle this error.

Log File

I'm including the extension log as this is a dependency issue with simple-git

exthost.log

The relevant line is line 322.

@carsakiller carsakiller transferred this issue from LuaLS/lua-language-server Feb 26, 2025
@carsakiller
Copy link
Collaborator

Hello👋

There should already be a check and warning in place when starting the extension without Git installed:

if (!(await git.version()).installed) {

Did you not receive this warning?

@carsakiller carsakiller added the addon manager Related to the addon manager label Feb 26, 2025
@another-m00
Copy link
Author

Hello,
No, I don't remember to see any error messages like that when I started up the addon manager. The addon just crashed with the ENOENT, and the addon session log only contained a single line saying that logging is started. There was a log file by simple git that stated that it cannot find the exe file though.

Is it possible that's happening because I installed a different git already? (Github desktop)

I'll tell more accurate information when I'm back home in a few hours.

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

No branches or pull requests

2 participants