LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.12k stars 289 forks source link

Cannot enable love2d package #2687

Closed JJSax closed 1 month ago

JJSax commented 1 month ago

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?

Diagnostics/Syntax Checking

Expected Behaviour

I expect to be able to enable the love2d package. I've never had this issue until recently.

Actual Behaviour

I get a VSCode popup saying "Error Failed to enable love2d!" message with buttons "okay" and "open log". Log is attached.

Reproduction steps

  1. right click and choose Lua: Open Addon Manager
  2. Click 'enable' on love2d
  3. See error message.

Additional Notes

I'm pretty close to having a fresh install with no other extensions, so it's unlikely a conflict. But just in case, I have 1) Better Comments by Aaron Bond 2) Local Lua Debugger by Tom Blind (This one enables fine in the addon manager) 3) VS Sequential Number by Neptune Design

The logs say there would be files overwritten, and to commit, so I committed which didn't fix. Then I updated all my submodules and committed everything and that still didn't fix.

Log File

22.log

carsakiller commented 1 month ago

The love2D addon has been updated recently. When you go to enable the addon, it attempts to update it to the latest version, but it appears that you may have some local changes that are conflicting.

Could you try uninstalling the addon, ensuring the module is completely gone from the install location, and seeing if that fixes things for you?

JJSax commented 1 month ago

Yes that did it. I double checked it on another project I was having the issue with using the same profile and it worked right away after reinstalling from my other one. That is the fix.

carsakiller commented 1 month ago

Glad to hear!