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

error Bad config: unknown field whitespace when using editor.whitespace in config.toml #2614

Closed
mandarvaze opened this issue May 30, 2022 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@mandarvaze
Copy link

Summary

I get error Bad config: unknown field whitespace when I specify editor.whitespace.characters in config.toml

Reproduction Steps

I'm referring to this section of the documentation. Accordingly, I've added the following to my config.toml

mandar in ~/.config/helix took 1m2s
➜ cat config.toml
theme = "onedark"

[editor]
line-number = "relative"

[editor.whitespace]
render = "all"

[editor.whitespace.characters]
space = "·"
nbsp = ""
tab = ""
newline = ""

But whenever I start helix I get the following error:

mandar in ~/.config/helix
➜ hx config.toml
Bad config: unknown field `whitespace`, expected one of `scrolloff`, `scroll-lines`, `mouse`, `shell`, `line-number`, `middle-click-paste`, `auto-pairs`, `auto-completion`, `idle-timeout`, `completion-trigger-len`, `auto-info`, `file-picker`, `cursor-shape`, `true-color`, `search`, `lsp` for key `editor` at line 9 column 1

I expected this to happen:

helix starts without error, and space, newline are rendered using the characters specified in the config.toml

Instead, this happened:

I get the error

Bad config: unknown field `whitespace`, expected one of `scrolloff`, `scroll-lines`, `mouse`, `shell`, `line-number`, `middle-click-paste`, `auto-pairs`, `auto-completion`, `idle-timeout`, `completion-trigger-len`, `auto-info`, `file-picker`, `cursor-shape`, `true-color`, `search`, `lsp` for key `editor` at line 9 column 1

Helix log

~/.cache/helix/helix.log
mandar in ~/.config/helix took 3s
➜ cat ~/.cache/helix/helix.log
2022-05-30T21:46:36.908 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { LSP not defined }

Platform

macOS

Terminal Emulator

Alacritty

Helix Version

helix 22.03 (d4e45fd)

@mandarvaze mandarvaze added the C-bug Category: This is a bug label May 30, 2022
@the-mikedavis
Copy link
Member

Visible whitespace and its configuration #1802 was added after the 22.03 release and is in 22.05

@mandarvaze
Copy link
Author

@the-mikedavis Wow! That was quick.
I updated to 22.05, and now works as expected.
Sorry for the unnecessary noise 😢

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