# eslint: Fix ESLint server startup failure on stale cached server install \(\#52883\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ac204881137fd7854da3d52c0417f0c1b7626d5d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ac204881137fd7854da3d52c0417f0c1b7626d5d

Requested commit: ac204881137fd7854da3d52c0417f0c1b7626d5d

Commit: ac204881137fd7854da3d52c0417f0c1b7626d5d

Tree: 85b51401d7d59d2685f0ad8d77bbb7b8719020ad

Author: Smit Barmase

Committer: GitHub

## Message

````
eslint: Fix ESLint server startup failure on stale cached server install (#52883)

Closes
https://github.com/zed-industries/zed/issues/19709#issuecomment-3494789304
Closes
https://github.com/zed-industries/zed/issues/24194#issuecomment-2835787560

This PR fixes case where if eslint cached install is partial or stale,
Zed can try to launch a missing `eslintServer.js` and the server crashes
with `MODULE_NOT_FOUND`.

```
Error: Cannot find module '/Users/.../languages/eslint/vscode-eslint-2.4.4/vscode-eslint/server/out/eslintServer.js'
```

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)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed ESLint server startup failures caused by reusing an incomplete
or stale cached server install.
````

## Parents

- [a9dd7e9f062933336b04c07145caaf19893c0f89](https://git.cafe/gitcafe/zed/commit/a9dd7e9f062933336b04c07145caaf19893c0f89?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ac204881137fd7854da3d52c0417f0c1b7626d5d?format=markdown)
