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

Bad language config: unknown field language-servers #8045

Closed
pvamshi opened this issue Aug 23, 2023 · 2 comments
Closed

Bad language config: unknown field language-servers #8045

pvamshi opened this issue Aug 23, 2023 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@pvamshi
Copy link

pvamshi commented Aug 23, 2023

Summary

I get the following error when I open hx

Bad language config: unknown field `language-servers`, expected one of `name`, `scope`, `file-types`, `shebangs`, `roots`, `comment-token`, `text-width`, `soft-wrap`, `config`, `auto-format`, `formatter`, `diagnostic-severity`, `grammar`, `injection-regex`, `language-server`, `indent`, `debugger`, `auto-pairs`, `rulers`, `workspace-lsp-roots`
in `language`

Press <ENTER> to continue with default language config

Reproduction Steps

Added ~/.config/helix/languages.toml

 [[language]]
 name = "typescript"
 language-servers = [  "typescript-language-server"]

Opening hx gives the above error.
I am trying simplest config to emulate the error.

Helix log

the log was blank

Platform

macOs

Terminal Emulator

kitty

Helix Version

helix 23.05 (7f5940b)

@pvamshi pvamshi added the C-bug Category: This is a bug label Aug 23, 2023
@CptPotato
Copy link
Contributor

CptPotato commented Aug 23, 2023

There was a change to how language servers are defined when support for multiple LSPs per language was added (#2507).

This happened after the latest release, so you're trying to use newer configuration options with an a version of helix that uses the old ones.

Your options are this:

  • use the old syntax: (edit) see here
  • build helix' current master branch from source
  • wait for the next release (which should not be that far off)

@pvamshi
Copy link
Author

pvamshi commented Aug 23, 2023

Installed from master. Working fine now thanks

@pvamshi pvamshi closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants