-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESLint is preventing my files from being saved #1902
Comments
I only have the ESLInt extension enabled, I disabled all the other extensions and I still get the issue |
I tried to reproduce this with an empty |
It's happening on a monorepo setup with Lerna, I don't get the issue on other codebases that I'm working on. I did not have time to investigate if it's a codebase setup that is causing the issue or something else. A colleague of mine just got the same issue on the same codebase with a new Mac, using Ubuntu or Windows doesn't cause the issue. |
@eianc |
I'm not sure if I'm running into this exactly, but I made a somewhat minimal reproducer: https://github.com/A5rocks/repro-eslint-vscode I reproduced in node v18.15.0 and v20.13.1 (on Debian Linux), and this reproducer worked for someone else (so hopefully it's not just a user settings thing). |
@A5rocks you are affected by yarnpkg/berry#6335 (e.g. a problem with yarn and synckit) |
Initially I thought that GitHub Copilot is causing the issue, however I discovered that it's the ESLint extension from VS Code.
When I have the ESLint extension enabled in VS Code, the files are not saving. Whenever I try to save a file, the file doesn't save and after a few seconds a notification similar with this shows up and nothing happens, it just hangs.
.
I used to be able to save the file by cancelling the notification, however now that doesn't seem to work anymore and I can't save any files. Restarting VS Code doesn't help.
In VS Code user configuration I have the following:
I tried different settings but none of them seem to make any difference.
I'm on:
macOS: Sosoma version 14.5
VS Code
Version: 1.91.1 (Universal)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:07:54.982Z (2 days ago)
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin x64 23.5.0
ESLint version 3.0.10 (I tried with the pre-release version 3.0.11 however that did not help)
The text was updated successfully, but these errors were encountered: