Skip to content

πŸ› BUG: Compiler errorΒ #1054

@theRealProHacker

Description

@theRealProHacker

Describe the Bug

I get the following error

The Astro compiler encountered an unknown error while parsing this file's AST. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues

with the following code

export function _() {
  return
}
---

I am aware that this is incorrect code. It is missing the first three dashes ---

Steps to Reproduce

  1. Create an astro file with the content mentioned above
  2. Hover over it

Link to Minimal Reproducible Example

See bug description

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P3: minor bugAn edge case that only affects very specific usage (priority)feat: astRelated to the JSON AST output (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions