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 from editorconfig-get-properties-function #366

Open
MisterDA opened this issue Jan 21, 2025 · 2 comments
Open

Error from editorconfig-get-properties-function #366

MisterDA opened this issue Jan 21, 2025 · 2 comments

Comments

@MisterDA
Copy link
Contributor

MisterDA commented Jan 21, 2025

I'm using GNU Emacs 30.0.93 (with the Prelude distribution) and editorconfig 20241027.1815 on macOS 15.2. As soon as I load a .editorconfig file, I get this error:

*ERROR*: Error thrown from editorconfig lib: "Error from editorconfig-get-properties-function: (error \"Error while reading config file: /Users/antonin/Tarides/ocaml/trunk/.editorconfig:6:
    [
\")"

I'm currently unable to use the editorconfig plugin with Emacs.

It seems that this library cannot recover from reading a (even transiently) syntactically incorrect file.

@monnier
Copy link
Collaborator

monnier commented Jan 22, 2025 via email

@MisterDA
Copy link
Contributor Author

root = true

[

What happened is that I saved the file without finishing it. The plugin would then spam me with warnings, turning Emacs somewhat unresponsive. I cannot switch buffers because of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants