-
-
Notifications
You must be signed in to change notification settings - Fork 791
Labels
A-CoreArea: coreArea: coreA-ParserArea: parserArea: parserL-HTMLLanguage: HTML and super languagesLanguage: HTML and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug
Milestone
Description
Environment information
CLI:
Version: 2.3.0
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
BIOME_THREADS: unset
NO_COLOR: unset
TERM: xterm-256color
JS_RUNTIME_VERSION: v20.18.1
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: bun/1.2.20
Biome Configuration:
Status: Loaded successfully
Path: biome.jsonc
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: true
Workspace:
Open Documents: 0
What happened?
while open an astro file, biome crashed, i get this error in Biome LSP output
2025-10-24 18:06:08.046 [info] Biome encountered an unexpected error
This is a bug in Biome, not an error in your code, and we would appreciate it if you could report it to https://github.com/biomejs/biome/issues/ along with the following information to help us fixing the issue.
When opening the issue, please provide a minimal reproduction, or identify and share the file/code that triggers it. Without a way to reproduce the error, the error can't be fixed:
Source Location: /Users/runner/work/biome/biome/crates/biome_parser/src/lib.rs:888:13
Thread Name: tokio-runtime-worker
Message: could not downcast root node to language biome_html_syntax::syntax_node::HtmlLanguage
there is my code and config
---
import { Counter } from '@/components/counter'
import PageLayout from '@/components/page-layout/index.astro'
// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh.
---
<PageLayout>
<main class="flex h-screen w-screen flex-col items-center justify-center">
<Counter client:load>
<span>------</span>
</Counter>
</main>
</PageLayout>
Expected result
not crashed and format my astro code
Code of Conduct
- I agree to follow Biome's Code of Conduct
qyurila, roonie007, Gernii, petrprikryl, hyriph and 3 more
Metadata
Metadata
Assignees
Labels
A-CoreArea: coreArea: coreA-ParserArea: parserArea: parserL-HTMLLanguage: HTML and super languagesLanguage: HTML and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug