镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Garry's Mod addon not working anymore as of the last few days #154

Closed
LuaLS/lua-language-server
#2913

Description

@CheezusChrust

Which OS are you using?

Windows

Expected Behaviour

I expect the GMod definitions to work.

Actual Behaviour

It fails to load.

I also see the following error:

[2024-10-21 18:36:34] |   ERROR   |     Filesystem     | Unable to resolve nonexistent file 'vscode-userdata:/c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/garrysmod/module'

Reproduction steps

  1. Open a workspace using gmod lua
  2. Addon doesn't load
  3. Open addons menu
  4. See this
    image

Additional Notes

No response

Log

[2024-10-21 18:36:34] |   ERROR   |     Filesystem     | Unable to resolve nonexistent file 'vscode-userdata:/c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/garrysmod/module'
[2024-10-21 18:36:34] |   ERROR   |     Filesystem     | Unable to resolve nonexistent file 'vscode-userdata:/c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/garrysmod/module'
[2024-10-21 18:37:52] |   ERROR   |     Filesystem     | Unable to resolve nonexistent file 'vscode-userdata:/c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/garrysmod/module'
[2024-10-21 18:37:52] |   ERROR   |     Filesystem     | Unable to resolve nonexistent file 'vscode-userdata:/c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/garrysmod/module'
[2024-10-21 18:38:52] |   ERROR   |     Filesystem     | Unable to resolve nonexistent file 'vscode-userdata:/c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/garrysmod/module'
[2024-10-21 18:38:52] |   ERROR   |     Filesystem     | Unable to resolve nonexistent file 'vscode-userdata:/c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/garrysmod/module'```

Activity

  1. carsakiller commented on Oct 22, 2024

    @carsakiller
    Collaborator

    There is a potential fix waiting for release. In the meantime, please delete the folder at c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua and reinstall the addon using the addon manager. 🙂

  2. CheezusChrust commented on Oct 23, 2024

    @CheezusChrust
    Author

    Did that, and now there's no errors but the addon doesn't function at all.

    [2024-10-22 22:35:00] |    INFO   |        Addon       | Applied addon settings for garrysmod
    [2024-10-22 22:35:00] |    INFO   |        Addon       | Enabled "garrysmod"
    

    image
    image

  3. carsakiller commented on Oct 23, 2024

    @carsakiller
    Collaborator

    What version of the extension are you on? Can you see the addon installed at :/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/garrysmod/module/?

    Also, can you share your settings.json or .luarc.json?

  4. CheezusChrust commented on Oct 23, 2024

    @CheezusChrust
    Author

    Using version 3.11.1
    image
    Looks like everything's there, lots of stuff in the library folder.

    Here's the settings.json

    {
        "Lua.workspace.checkThirdParty": false,
        "Lua.runtime.version": "LuaJIT",
        "Lua.runtime.special": {
            "include": "dofile",
            "IncludeCS": "dofile"
        },
        "Lua.runtime.nonstandardSymbol": [
            "continue",
            "/**/"
        ],
        "Lua.diagnostics.disable": [
            "duplicate-set-field"
        ],
        "Lua.workspace.library": [
            "${addons}/garrysmod/module/library"
        ]
    }
    

    I do notice that if I click "Disable" in the addon manager, while it's enabled, I get the following in the log and can't actually disable/re-enable it.
    [2024-10-22 23:50:37] | WARN | Addon | "garrysmod" is already disabled

    Tried to delete settings.json and re-enable the addon but that didn't make a difference, same problem.

  5. carsakiller commented on Oct 23, 2024

    @carsakiller
    Collaborator

    Hmmm. It seems that perhaps it is failing to resolve ${addons} to c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addons.

    If you replace ${addons} with c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addons in your settings.json, does the library load?

  6. demiurgeQuantified commented on Oct 23, 2024

    @demiurgeQuantified

    i'm having the same issue with another addon, ${addons} doesn't work for me but the full path does

    EDIT: as maintainer of the umbrella addon, i asked around and it seems like everyone is having this problem

  7. CheezusChrust commented on Oct 25, 2024

    @CheezusChrust
    Author

    Hmmm. It seems that perhaps it is failing to resolve ${addons} to c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addons.

    If you replace ${addons} with c:/Users/USERNAME/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addons in your settings.json, does the library load?

    Yeah, replacing ${addons} with the path manually fixes the issue.

  8. linked a pull request that will close this issueStorage fspath #156on Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions