Fix ESLint not starting on Windows#54945
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @tristanphease on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
Nice @tristanphease! There are other reasons why ESLint could fail on Windows, too. See this: #54093 (comment). Once you fix this, I think users will hit the bug in my comment, based on other issues I’ve seen in the past, for example: #50677. |
|
I didn't see any bugs like that causing any issues, and I think the "os error 123" people are seeing (including me) is this one specifically. |
|
Hey @Veykril could you rerun that test please? Don't think it's related to the change |
eced4ea
Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #54093 (at least the os error 123 in the comments of that bug)/#54901 (although the diagnosis in that bug is totally wrong) Used process monitor to work out what that issue was: <img width="1573" height="94" alt="image" src="https://github.com/user-attachments/assets/2f82ad1a-8532-465d-9dcd-ba0bd092e9e7" /> There's actually a '\n' after node_modules there so it's an invalid directory. Add trim() to fix. After adding that change locally, eslint loaded fine Release Notes: - Fixed bug where eslint didn't start on Windows
|
Hello, I’d really like to see this bug fixed in the stable release. Could you cherry-pick this fix into the stable branch? |
|
@BlueBlue21 it's in preview. Think it should be released on the 6th (Wednesday) |
|
Thank you for your reply. |
Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes zed-industries#54093 (at least the os error 123 in the comments of that bug)/zed-industries#54901 (although the diagnosis in that bug is totally wrong) Used process monitor to work out what that issue was: <img width="1573" height="94" alt="image" src="https://github.com/user-attachments/assets/2f82ad1a-8532-465d-9dcd-ba0bd092e9e7" /> There's actually a '\n' after node_modules there so it's an invalid directory. Add trim() to fix. After adding that change locally, eslint loaded fine Release Notes: - Fixed bug where eslint didn't start on Windows
Self-Review Checklist:
Closes #54093 (at least the os error 123 in the comments of that bug)/#54901 (although the diagnosis in that bug is totally wrong)

Used process monitor to work out what that issue was:
There's actually a '\n' after node_modules there so it's an invalid directory. Add trim() to fix.
After adding that change locally, eslint loaded fine
Release Notes: