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

🐛 EditorConfig parsing fails if .editorconfig contains [...] #5410

Open
1 task done
tats-u opened this issue Mar 22, 2025 · 0 comments
Open
1 task done

🐛 EditorConfig parsing fails if .editorconfig contains [...] #5410

tats-u opened this issue Mar 22, 2025 · 0 comments
Labels
S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@tats-u
Copy link

tats-u commented Mar 22, 2025

Environment information

CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         unset
  JS_RUNTIME_VERSION:           "v22.13.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "pnpm/9.9.0"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 false

Workspace:
  Open Documents:               0

What happened?

configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  × Failed to parse the .editorconfig file.

    Caused by:
      Custom("INI syntax error: section name contains ']'")

.editorconfig:

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true

[*.{{ht,ya,to}ml,{[mc],}[jt]s{,x},{s,}css,json}]
indent_size = 2

https://github.com/tats-u/biome-editorconfig

https://editorconfig.org/ says:

Syntax Description
[name] Matches any single character in name
[!name] Matches any single character not in name

EditorConfig files use an INI format that is compatible with the format used by Python ConfigParser Library, but [ and ] are allowed in the section names.

This means this .editorconfig is valid and Biome must parse it.

Expected result

No errors

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@tats-u tats-u added the S-Needs triage Status: this issue needs to be triaged label Mar 22, 2025
@dyc3 dyc3 added S-Bug-confirmed Status: report has been confirmed as a valid bug and removed S-Needs triage Status: this issue needs to be triaged labels Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

No branches or pull requests

2 participants