bun icon indicating copy to clipboard operation
bun copied to clipboard

ESLint: IntelliJ timeouts at "Starting ESLint service" since bun version >= 1.0.31

Open mstuercke opened this issue 1 year ago • 4 comments

What version of Bun is running?

1.1.8+89d25807f

What platform is your computer?

Darwin 23.5.0 arm64 arm

What steps can reproduce the bug?

See: https://github.com/mstuercke/bun-issue-11221-example

  • Install a bun version >= 1.0.31
  • IntelliJ: Use bun as node interpreter and package manager (Settings -> Language & Frameworks -> Node.js)
  • IntelliJ: Enable automatic ESLint configuration (Settings -> Language & Frameworks -> Code Quality Tools -> ESLint)

What is the expected behavior?

Linting works in IntelliJ (as in bun 1.0.30 and previous versions)

What do you see instead?

  • A background task named "Starting ESLint service" is started
  • The background task timeouts after some time and ESLint is not working

This is what I found in the logs: #c.i.l.j.s.JSLanguageServiceQueue - ESLint: Timed out waiting for ready notification

Additional information

  • The same may apply for WebStorm
  • When I downgrade the version to 1.0.30 or lower, everything works immediately ( curl -fsSL https://bun.sh/install | bash -s "bun-v1.0.30"

mstuercke avatar May 21 '24 11:05 mstuercke

@Electroid I've created a minimal project that leads to this problem: https://github.com/mstuercke/bun-issue-11221-example

mstuercke avatar May 22 '24 14:05 mstuercke

@Electroid Would you please remove the "needs repro" label, as I've provided an example already? Thank you!

mstuercke avatar Jun 05 '24 17:06 mstuercke

Also experiencing this problem with Bun 1.18 and Webstorm 2024.1.5.

JackTiber avatar Jul 12 '24 13:07 JackTiber

@Electroid Would you please remove the "needs repro" label, as I've provided an example already? Thank you!

@Electroid @Jarred-Sumner I think this issue will be ignored until the "needs repro" label is being removed. Would anyone please remove it? Thank you!

mstuercke avatar Jul 15 '24 08:07 mstuercke

I'm also seeing this issue. With Bun set as the node interpreter and package manager in IntelliJ settings.

kvenn avatar Aug 17 '24 16:08 kvenn

Maybe, JetBrains will solve the problem with https://youtrack.jetbrains.com/issue/WEB-67011 - but no one knows when/if they will start working on it. But it's strange, that the Bun versions 1.0.30 and below are working fine. Something fundamental must have been changed in 1.0.31. The release notes did not help me to find the direction to the cause.

mstuercke avatar Aug 22 '24 21:08 mstuercke

The Bun plugin is now available in IntelliJ but this bug still persists. I've created a bug issue here: https://youtrack.jetbrains.com/issue/WEB-69940/Starting-ESLint-service-timeouts-since-Bun-version-1.0.31

mstuercke avatar Oct 26 '24 02:10 mstuercke

Experiencing the same with latest Bun (1.1.34) and WebStorm (2024.3) on a MacBook M4 Pro. It's the first time I've tried WebStorm for a project, so I am straight back to VS Code until this is fixed.

CameronJThomas avatar Nov 13 '24 16:11 CameronJThomas

Experiencing the same issue. If you need more info about the bug, I can provide more if needed

genesiscz avatar Nov 19 '24 00:11 genesiscz