Devtools uses invalid bun --json arg #496
Replies: 2 comments
|
Yeah, this repros on bun 1.3.14. The empty-stdout branch ( Checked the mechanism locally by feeding the real table output through that promise (hangs) vs a valid-JSON string (resolves fine). The bun flag is genuinely broken, but the freeze is fixable devtools-side. |
|
I have been experiencing a random hang with the vite dev server with bun on a tanstack start project - I found this issue whilst trying to figure out why it didn't start sometimes. I will say, since I commented out the devtools plugin I haven't seen the hang - it's only been a few hours but I have restarted many times today - I usually see it quite often (like every 2nd or 3rd attempt to restart the dev server). I can't say definatively that devtools is the cause but it's looking that way. |
Uh oh!
There was an error while loading. Please reload this page.
emitOutdatedDeps() runs
bun outdated --jsonBun ignores --json and prints an ASCII table:
So tryParseJson returns null, and the exec callback hits a bare return — resolving nothing:
That promise is awaited in the plugin's "mounted" handler, so the devtools panel's mount handler hangs forever.
I have no idea how to fix this - there are several issues on the bun repo about json output which have no real activity attached.
I would have created an issue for this but it wants a sandbox example - which seems pointless to me when the problem affects every project that uses one of the devtools plugins (I am using the vite-devtools plugin) with bun.
All reactions