Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error: no config available to enable #2597

Open
luc-j-bourhis opened this issue Mar 2, 2025 · 2 comments
Open

Error: no config available to enable #2597

luc-j-bourhis opened this issue Mar 2, 2025 · 2 comments

Comments

@luc-j-bourhis
Copy link

Describe the bug

The status bar displays the message "no config available to enable" when I run "LSP: Enable language server globally". The server doesn't start.

To Reproduce

Steps to reproduce the behavior:

  1. Open Preferences > Package Settings > LSP > Settings
  2. Paste the following and save
{
    "clients": {
        "ruby": {
            "enabled": true,
            "command": ["bundle", "exec", "solargraph", "stdio"],
            "selector": "source.ruby | text.html.ruby",
            "initializationOptions": {
                "diagnostics": true
            }
        }
    }
}
  1. Execute the command "LSP: Enable language server globally"

Expected behavior

My settings should be found and the server should start.

Investigation with the Console

>>> from LSP.plugin.core.settings import client_configs
>>> client_configs.all.values()
dict_values([])

But that was obvious from a cursory examination of the source code of the LSP plugin. So the question is why is my setting not picked up?

@jwortmann
Copy link
Member

If you have "enabled": true, then the server is already enabled and it won't be shown in the list.

There might be a different reason if the language server doesn't start. Ensure that the specified command is correct or follow the troubleshooting guide https://lsp.sublimetext.io/troubleshooting/

@luc-j-bourhis
Copy link
Author

I would respectfully suggest that message in the status bar needs to be removed then, or replaced. It is extremely confusing.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants