PANE

Developers Can't Format YAML with Bun

14 posts in the last 30 days, all from GitHub.

“What is the problem this feature would solve? bun lint already has an extension point for rules that aren't built in — the docs say "Need a rule that isn't built in? Load any ESLint plugin, from npm or your own", and bunfig.toml accepts [lint] plugins = ["eslint plugin…”
GitHub
“What version of Bun is running? 1.4.4+38afee6c8 (also 1.4.5 canary.1+d4796b2b6 ) What platform is your computer? Darwin 27.2.0 arm64 arm (same on Linux arm64, oven/bun:1.4.4 ) What steps can reproduce the bug? What is the expected behavior? /admin /x is left as it is. It is an…”
GitHub
“What version of Bun is running? 1.4.4+38afee6c8 (also main 447ff870b, canary 1.4.4 canary.1+447ff870b ; src/format and src/md are unchanged there) What platform is your computer? macOS 26.7 arm64 (Darwin 25.6.0); also Linux x86 64 What steps can reproduce the bug? a.md and b.md…”
GitHub

Several developers are encountering issues with Bun's code formatter, including incorrect comma placement in YAML, unexpected spaces in Markdown, and problems with object keys. These issues lead to code that doesn't parse correctly and require manual intervention.

devtoolsformattingcodetoolstypescript
FIT
0%
SIGNAL
67%
SOURCES15
FRESHEST POST14D AGO
TRACKED SINCE22D AGO

SOURCES (15)

“What is the problem this feature would solve? bun lint already has an extension point for rules that aren't built in — the docs say "Need a rule that isn't built in? Load any ESLint plugin, from npm or your own", and bunfig.toml accepts [lint]…”

GITHUB14d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also 1.4.5 canary.1+d4796b2b6 ) What platform is your computer? Darwin 27.2.0 arm64 arm (same on Linux arm64, oven/bun:1.4.4 ) What steps can reproduce the bug? What is the expected behavior? /admin /x is left as it is. It is an argument of startsWith , not a class list. What do you see instead? The two spaces become one, so the string's value changes. Additional information Prettier 3.10.1 with prettier plugin tailwindcss 0.8.1, and oxfmt 0.72.0”

GITHUB17d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also 1.4.5 canary.1+d4796b2b6 ) What platform is your computer? Darwin 27.2.0 arm64 arm (same on Linux arm64, oven/bun:1.4.4 ) What steps can reproduce the bug? What is the expected behavior? A syntax error, exit code 2, and the file left as it is. oxfmt 0.72.0 (and 0.78.0) exit 2 with Syntax error: expect token <ident , but found ( and do not touch the file. The docs say the exit code is " 2 if something went wrong, like a syntax error", and that”

GITHUB17d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 447ff870b, canary 1.4.4 canary.1+447ff870b ; src/format and src/md are unchanged there) What platform is your computer? macOS 26.7 arm64 (Darwin 25.6.0); also Linux x86 64 What steps can reproduce the bug? a.md and b.md (one line each): What is the expected behavior? The output means the same as the input, and a second run changes nothing. Before formatting, Bun.markdown.html renders both files as <p <em <em a <em b</em </em c</em </p :”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 447ff870b, canary 1.4.4 canary.1+447ff870b ; src/format and src/md are unchanged there) What platform is your computer? macOS 26.7 arm64 (Darwin 25.6.0); also Linux x86 64 What steps can reproduce the bug? a.md (one line): What is the expected behavior? One paragraph with the emphasis around the link and the text, for example a[[]] . Before formatting, Bun.markdown.html renders <p <em <a href="b" a</a [[]]</em </p . src/format/CLAUDE.md”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 447ff870b, canary 1.4.4 canary.1+447ff870b ; src/format and src/md are unchanged there) What platform is your computer? macOS 26.7 arm64 (Darwin 25.6.0); also Linux x86 64 What steps can reproduce the bug? a.yaml ( \ is an escaped space, so the value is ab cd ): What is the expected behavior? The value stays "ab cd" , so the line does not break at the space of \ . YAML 1.2.2 §5.7 lists \ as an escaped space, and §7.3.1 makes a \ at the e”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 447ff870b, canary 1.4.4 canary.1+447ff870b ; src/format and src/md are unchanged there) What platform is your computer? macOS 26.7 arm64 (Darwin 25.6.0); also Linux x86 64 What steps can reproduce the bug? config.yaml : What is the expected behavior? The file is already formatted and stays as it is. Without the tag ( a: 0 as the first line) bun fmt keeps x indented under b . src/format/CLAUDE.md : "Formatting the result again changes not”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 447ff870b, canary 1.4.4 canary.1+447ff870b ; src/format and src/md are unchanged there) What platform is your computer? macOS 26.7 arm64 (Darwin 25.6.0); also Linux x86 64 What steps can reproduce the bug? blocks.js formats five inputs and renders each one before and after with Bun.markdown.html : What is the expected behavior? Each output means the same as its input. In each case the output differs from the input by one empty line, and”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 What platform is your computer? Microsoft Windows NT 10.0.26300.0 x64 What steps can reproduce the bug? Save as repro.ts , run bun repro.ts (also bun repro.ts async and bun repro.ts retries ). It marks a file delete pending through an open handle, then runs a recursive rm on its directory in a child killed after 10 s. What is the expected behavior? The call removes the directory or throws. Node 26.12.1 throws EPERM (113 ms; 1026 ms with maxRetries:”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 What platform is your computer? Darwin 23.6.0 arm64 arm What steps can reproduce the bug? Summary When a "readable" handler on a child process stdout stream reads exactly the buffered amount with stream.read(n) (so read() never returns null ), Bun often stops emitting "readable" . The child keeps writing, Bun keeps buffering (up to the high water mark, 131072 bytes), but no further "readable" event fires, so the reader waits forever. Node.js never”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 2596ac5d3; src/format is unchanged on main 89452d2ac1) What platform is your computer? Linux 7.0.0 1014 aws x86 64 x86 64 What steps can reproduce the bug? a.md (7 spaces after the second 99. ): What is the expected behavior? with the code still x . CommonMark 0.31.2 §5.2 (list items), rule 2: when an item starts with indented code, the content starts one space after the marker, and further spaces belong to the code. Bun.markdown.html re”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 2596ac5d3; src/format is unchanged on main 89452d2ac1) What platform is your computer? Linux 7.0.0 1014 aws x86 64 x86 64 What steps can reproduce the bug? a.yaml : What is the expected behavior? A file that still parses as { a: {} } , for example: YAML 1.2.2 §7.4 (flow collections) allows a , only after an entry, so { , } is not a flow mapping. The yaml npm package (2.9.1) parses the input as {"a":{}} . What do you see instead? The yaml”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 2596ac5d3; src/format is unchanged on main 89452d2ac1) What platform is your computer? Linux 7.0.0 1014 aws x86 64 x86 64 What steps can reproduce the bug? key.js : What is the expected behavior? and check exits 0. That is what bun fmt prints for the same file with the key written a . A second run already prints it (see below), so a file just written by bun fmt should pass bun fmt check . docs/guides/format/migrate from prettier.mdx list”

GITHUB22d ago

“What version of Bun is running? 1.4.4+38afee6c8 (also main 2596ac5d3; src/format is unchanged on main 89452d2ac1) What platform is your computer? Linux 7.0.0 1014 aws x86 64 x86 64 What steps can reproduce the bug? overload.ts : What is the expected behavior? overload.ts after formatting: and the last command still prints hi . The ; has to stay: without it, the block on the next line is the body of f . docs/guides/format/migrate from prettier.mdx : "Where Prettier's output changes what a file me”

GITHUB22d ago

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux 6.8.0 124 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? Node.js prints: What do you see instead? Bun prints: Additional information No response”

GITHUBJun 22

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.