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

πŸ“ Invalid document: Expected end tag of kind Indent but found Group. #1511

Closed
1 task done
Conaclos opened this issue Jan 10, 2024 · 1 comment Β· Fixed by #1547
Closed
1 task done

πŸ“ Invalid document: Expected end tag of kind Indent but found Group. #1511

Conaclos opened this issue Jan 10, 2024 · 1 comment Β· Fixed by #1547
Assignees
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug S-Help-wanted Status: you're familiar with the code base and want to help the project

Comments

@Conaclos
Copy link
Member

Conaclos commented Jan 10, 2024

Environment information

Biome v1.5.1

Description

The following codes

call(a, function (b: () => t1 | t2) {});
call(a, (b: () => t1 | t2) => {})

crashes the formatter:

test.ts format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  βœ– Invalid document: Expected end tag of kind Indent but found Group.
    
     This is an internal Biome error. Please report if necessary.

EDIT: Making a git-bisect, the issue comes from 88016613ff67eaed07142697633cd9c0c0804292.

Playground link

https://biomejs.dev/playground/?enabledLinting=false&importSortingEnabled=false&code=YwBhAGwAbAAoAGEALAAgAGYAdQBuAGMAdABpAG8AbgAgACgAYgA6ACAAKAApACAAPQA%2BACAAdAAxACAAfAAgAHQAMgApACAAewB9ACkAOwA%3D&jsx=false

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos Conaclos added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Jan 10, 2024
@Conaclos
Copy link
Member Author

Making a git-bisect, the issue comes from 88016613ff67eaed07142697633cd9c0c0804292.

@Conaclos Conaclos added the S-Help-wanted Status: you're familiar with the code base and want to help the project label Jan 11, 2024
@Conaclos Conaclos self-assigned this Jan 12, 2024
Conaclos added a commit that referenced this issue Jan 12, 2024
Conaclos added a commit that referenced this issue Jan 12, 2024
Conaclos added a commit that referenced this issue Jan 12, 2024
Co-authored-by: Emanuele Stoppa <[email protected]>
ematipico added a commit to DaniGuardiola/biome that referenced this issue Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug S-Help-wanted Status: you're familiar with the code base and want to help the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant