Describe the bug
dprint version: 0.54.0
TypeScript plugin version: 0.96.1
When formatting a with statement that has a trailing line comment after the opening brace, dprint reports "Formatting not stable. Bailed after 5 tries."
Input Code
Expected Output
Should format stably (or at least not error).
Actual Output
Error formatting repro.ts. Message: Formatting not stable. Bailed after 5 tries.
Additional context
- Reproduction repository: https://github.com/Rel1cx/dprint-bug-repro
- Removing the comment (
//) makes the error disappear.
- Removing the block braces (e.g.
with (a) 1; //) also makes the error disappear.
- The bug also affects
.js and .md files containing this code snippet.
Describe the bug
dprint version: 0.54.0
TypeScript plugin version: 0.96.1
When formatting a
withstatement that has a trailing line comment after the opening brace, dprint reports "Formatting not stable. Bailed after 5 tries."Input Code
Expected Output
Should format stably (or at least not error).
Actual Output
Additional context
//) makes the error disappear.with (a) 1; //) also makes the error disappear..jsand.mdfiles containing this code snippet.