You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ hx languages.toml
Bad language config: missing field `scope` for key `language`
Press <ENTER> to continue with default language config
Probably came up after #2145 ? I'm trying to test it Reverting fixes the problem
Reproduction Steps
My languages.toml:
[[language]]
name = "rust"
[language.config]
assist.importGranularity = "module"
then do:
$ cd $HOME/.config/helix/
$ hx language.toml
Bad language config: missing field `scope` for key `language`
Press <ENTER> to continue with default language config
Commenting out the whole languages.toml and repeating the steps does not raise the error.
The error "Bad language config: missing field scope for key language" also occurs if you add an invalid/incomplete language to your languages.toml.
E.g. the following will trigger this message:
# Copy-pasted from "json" language, because prettier provides a "json5" parser - but the language config is incomplete.
# `scope` and other required fields are missing from the "json5" language configuration.
[[language]]
name = "json5"
formatter = { command = 'prettier', args = ["--parser", "json5"] }
Summary
Probably came up after #2145 ?
I'm trying to test itReverting fixes the problemReproduction Steps
My
languages.toml
:then do:
Commenting out the whole
languages.toml
and repeating the steps does not raise the error.Helix log
No response
Platform
macOS
Terminal Emulator
kitty 0.25.0
Helix Version
1525e3c
The text was updated successfully, but these errors were encountered: