Skip to content

🐛 Svelte: biome lsp crashes when beginning to type template syntax #10003

@solithcy

Description

@solithcy

Environment information

Details
rose@roses-MacBook-Pro biome-partial-if % bun run biome rage
CLI:
  Version:                      2.4.12
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:                    unset
  BIOME_LOG_PREFIX_NAME:             unset
  BIOME_LOG_LEVEL:                   unset
  BIOME_LOG_KIND:                    unset
  BIOME_CONFIG_PATH:                 unset
  BIOME_THREADS:                     unset
  BIOME_WATCHER_KIND:                unset
  BIOME_WATCHER_POLLING_INTERVAL:    unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           v24.14.1
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         bun/1.3.11

Biome Configuration:
  Status:                       Loaded successfully
  Path:                         biome.json
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  false
  HTML full support enabled:    true

Workspace:
  Open Documents:               0

What happened?

When beginning to type a Svelte template, the LSP crashes and requires manual interaction to reenable (at least on the Intellij plugin). Experimental HTML mode is enabled. See below example:
https://biomejs.dev/playground/?indentScriptAndStyle=true&tab=formatter&pane=Diagnostics&code=ewAjAH0ACgAKADwAcwBwAGEAbgA%2BAGEAcwBkAGEAcwBkADwALwBzAHAAYQBuAD4A&language=svelte

Expected result

It should handle such errors gracefully and not crash unrecoverably.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions