Skip to content

🐛 Constant crashes when editing css files #3256

@ktdd

Description

@ktdd

Environment information

CLI:
  Version:                      1.8.2
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         unset
  JS_RUNTIME_VERSION:           unset
  JS_RUNTIME_NAME:              unset
  NODE_PACKAGE_MANAGER:         unset

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

Workspace:
  Open Documents:               0

What happened?

When editing a css file, Biome crashes constantly with error:

| Source Location: D:\a\biome\biome\crates\biome_parser\src\diagnostic.rs:353:14
| Thread Name: tokio-runtime-worker
| Message: Expected token to be a punctuation or keyword.

Rule example:

.formTable tbody td {
    font-size: 14px;
    border-left: 1px #e1e1e1 solid;
    border-right: 1px #e1e1e1 solid;
}

Crash happens when removing e1e1e1 from border-left and only leaving #. I have CSS files ignored in my config but it doesn't help.

Expected result

It should not crash.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ParserArea: parserL-CSSLanguage: CSS and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions