Skip to content

Fix ESLint not starting on Windows#54945

Merged
Veykril merged 1 commit intozed-industries:mainfrom
tristanphease:eslint-node-modules
Apr 27, 2026
Merged

Fix ESLint not starting on Windows#54945
Veykril merged 1 commit intozed-industries:mainfrom
tristanphease:eslint-node-modules

Conversation

@tristanphease
Copy link
Copy Markdown
Contributor

@tristanphease tristanphease commented Apr 27, 2026

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • 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:
image
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

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Apr 27, 2026

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'.

@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Apr 27, 2026
@tristanphease
Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 27, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Apr 27, 2026

The cla-bot has been summoned, and re-checked this pull request!

@maxdeviant maxdeviant changed the title Fix eslint not starting on Windows Fix ESLint not starting on Windows Apr 27, 2026
@yeskunall
Copy link
Copy Markdown
Member

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.

@tristanphease
Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tristanphease
Copy link
Copy Markdown
Contributor Author

Hey @Veykril could you rerun that test please? Don't think it's related to the change

@Veykril Veykril added this pull request to the merge queue Apr 27, 2026
Merged via the queue into zed-industries:main with commit eced4ea Apr 27, 2026
61 of 63 checks passed
@tristanphease tristanphease deleted the eslint-node-modules branch April 27, 2026 11:28
tomhoule pushed a commit that referenced this pull request Apr 27, 2026
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
@BlueBlue21
Copy link
Copy Markdown

BlueBlue21 commented May 4, 2026

Hello, I’d really like to see this bug fixed in the stable release. Could you cherry-pick this fix into the stable branch?

@tristanphease
Copy link
Copy Markdown
Contributor Author

@BlueBlue21 it's in preview. Think it should be released on the 6th (Wednesday)

@BlueBlue21
Copy link
Copy Markdown

Thank you for your reply.

ebaah46 pushed a commit to ebaah46/zed that referenced this pull request May 6, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESLint and Intelephense not working

4 participants