Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Base config from repo not working and sending errors #9608

Closed
MartinFillon opened this issue Feb 12, 2024 · 3 comments
Closed

Base config from repo not working and sending errors #9608

MartinFillon opened this issue Feb 12, 2024 · 3 comments
Labels
C-bug Category: This is a bug

Comments

@MartinFillon
Copy link

MartinFillon commented Feb 12, 2024

Summary

File is the raw one from main
I have errors such as :

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

Or:

Bad language config: unknown key in `file-types` list: glob
in `language.file-types`

Reproduction Steps

I tried this:

  1. copy file from repo
  2. hx

I expected this to happen:
no error displayed
Instead, this happened:

Helix log

~/.cache/helix/helix.log

Log is not useful as not related :

2024-02-12T12:55:07.711 helix_view::editor [ERROR] Failed to initialize the language servers for `source.toml` - `taplo` { cannot find binary path }

Platform

Linux

Terminal Emulator

kitty

Installation Method

yay

Helix Version

helix 23.10

@MartinFillon MartinFillon added the C-bug Category: This is a bug label Feb 12, 2024
@TornaxO7
Copy link
Contributor

This error:

Bad language config: unknown key in `file-types` list: glob
in `language.file-types

should come from this PR and I assume the other error comes from another recent PR as well. So you can either use helix from the master branch or remove the invalid lines from your config.

@MartinFillon
Copy link
Author

Yeah I guess I am gonna try helix from master.

@pascalkuthe
Copy link
Member

You should never copy the languages.to.l from the repo it's built into the binary

@helix-editor helix-editor locked and limited conversation to collaborators Feb 12, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #9609 Feb 12, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants