editorconfig-emacs icon indicating copy to clipboard operation
editorconfig-emacs copied to clipboard

Error from `editorconfig-get-properties-function`

Open MisterDA opened this issue 11 months ago • 2 comments

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.

MisterDA avatar Jan 21 '25 08:01 MisterDA

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: [ ")"

Could you show the content of that .editorconfig file?

monnier avatar Jan 22 '25 12:01 monnier

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.

MisterDA avatar Jan 22 '25 14:01 MisterDA