Skip to content

Conversation

@FrostSource
Copy link
Contributor

Fixes a syntax error causing the addon to fail enabling.

Comments present in the example config.json on the wiki cause a syntax error when trying to enable the addon from the manager. I have removed all comments and it seems to enable correctly now.

The exact log was:

[2025-01-23 17:52:28] |  VERBOSE  |       Command      | Executing "enable" ({"command":"enable","data":{"name":"HLA-VScript"}})
[2025-01-23 17:52:29] |   DEBUG   |        Addon       | Initialized submodule
[2025-01-23 17:52:29] |   DEBUG   |        Addon       | Submodule up to date
[2025-01-23 17:52:29] |   ERROR   |        Addon       | Failed to read config.json file for HLA-VScript (SyntaxError: Expected property name or '}' in JSON at position 7 (line 2 column 5))
[2025-01-23 17:52:29] |   ERROR   |    Enable Addon    | Failed to enable HLA-VScript!
[2025-01-23 17:52:29] |   ERROR   |    Enable Addon    | SyntaxError: Expected property name or '}' in JSON at position 7 (line 2 column 5)
[2025-01-23 17:52:30] |  VERBOSE  |       Command      | Executing "openLog" ({"command":"openLog"})

@carsakiller carsakiller added the Addon Update An update for an existing addon label Jan 23, 2025
@carsakiller carsakiller merged commit ceee181 into LuaLS:main Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Addon Update An update for an existing addon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants