Skip to content

Adding an unknown language to languages.toml gives a cryptic error message #14858

@jochumdev

Description

@jochumdev

Summary

Hey!

I love helix, thanks for it!

Adding an unkonwn language gives a cryptic error.

Reproduction Steps

I tried this:

Adding this to languages.toml:

[[language]]
name = "unknown"

Gives the following error:

I expected this to happen:

Unknown language "unknown" in language config.

Instead, this happened:

Failed to parse language config: missing field `scope`
in `language`

Helix log

No response

Platform

Linux

Terminal Emulator

alacritty

Installation Method

arch linux package

Helix Version

25.07.1-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions