As of recent updates, eslint takes an unreasonable time to run or sometimes doesn’t run at all, via the eslint vscode plugin. It works fine in vscode, and nobody on our team can figure out why. Any idea where we can look to figure out why this is happening? It seems to be a new issue
Steps to Reproduce
eslint 9 + latest vscode eslint plugin
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hey, thanks for the report. Can you confirm that your entire team is experiencing issues with this extension? Could you let me know how long this has been happening and in which version of Cursor this problem didn’t exist?
We’ve gotten reports about this in the last 10 days. It looks like it’s impacted the whole team in some way or another (not consistent), since even for those not being loud about it in our internal Slack, I’m seeing more PRs fail with lint errors, which wasn’t an issue before (e.g. lint issues getting caught in CI and not cursor).
Even if you all can’t pin down the issue with the limited info we have, I’d love more info on how we can debug it or get more logging.
eslint works fine, it’s not slow or hanging. But my frustration is that I have to hit “keep changes” after every change for the auto-formatter to run so cursor doesn’t try to manually fix all of the lint issues.
eslint starts out working fine for me, but eventually gives up and I have to restart to get it working again. Probably once or twice per day
eslint crashes every few days for me, and I don’t notice it until a push a log with a missing space.
FWIW, it’s been months since we upgraded eslint, so I don’t think that’s the issue.
Hi Ben!
I need your help to fix this one.
Whenever everything is super slow, could you press Cmd + Shift + P , type Developer: Show Running Extensions there, press enter.
Press a little white dot on the right side of the bar next to the green play button - “Start Extension Host Profiler”. Do some slow edits, force eslint to work hard for a minute or two. Go back to Running Extensions tab, press “Stop Extension Host Profiler“ (will be at place of the white dot). Press “Save Extensions Host Profile” - on the left side of the green play button and share the result here.
Hi, I work at the same company as @benasher44 and I’m one of the people who had this issue. Some more data points that might help:
I’m on Linux; most other engineers here are on macOS and Ben probably forgot I was one of the weird ones
git show-ref |wc -l showed 5344 refs for me when it was happening
I switched to VSCode, where I found I had the same problem
I mass-deleted most of my old branches, and now have only 164 refs
now I do not have the issue in either editor
This does suggest (1) it may be an upstream VSCode issue that doesn’t always appear for whatever reason, and (2) whatever hunch you had involving thousands of refs making it slow is likely true.
I did not try the test build (because Linux) but at least one coworker did, and it seemed to have helped for him.