Skip to content
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

Getting code actions from ''ESLint'' #1055

Closed
artmsv opened this issue Aug 28, 2020 · 219 comments
Closed

Getting code actions from ''ESLint'' #1055

artmsv opened this issue Aug 28, 2020 · 219 comments
Labels
info-needed Issue requires more information from poster

Comments

@artmsv
Copy link

artmsv commented Aug 28, 2020

Issue Type: Performance Issue

I got a performance regression after an update of VSCode insider, not sure which version was working fine, updated on 08.26.2020 - 08.27.2020. Today decided to report an issue.

I found a couple of similar problems:

#999
microsoft/vscode#102956

settings.json

"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
    "source.fixAll": false,
    "source.fixAll.eslint": true
},

ESlint node module version: v6.8.0 (didn't change)

Extension version: 2.1.8
VS Code version: Code - Insiders 1.49.0-insider (6384e3246884694cbc34eacc70281ada15e2c7f2, 2020-08-28T16:02:16.834Z)
OS version: Darwin x64 19.6.0

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz (4 x 3100)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 4, 6
Memory (System) 16.00GB (0.42GB free)
Process Argv -psn_0_421991 --crash-reporter-id d4eda43b-3842-4492-8d6b-78ceef6890ab
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
   14	    82	 39168	code-insiders main
    5	    66	 39173	   gpu-process
    0	    16	 39174	   utility
    8	   246	 39176	   window (~/Development/project/component.js)
    0	    98	 39659	     extensionHost
    0	    49	 39669	       electron_node tsserver.js 
    0	   311	 39670	       electron_node tsserver.js 
    0	    33	 39676	         electron_node typingsInstaller.js typesMap.js 
    0	    49	 39673	       /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Renderer).app/Contents/MacOS/Code - Insiders Helper (Renderer) /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=39659
    0	    49	 39677	       electron_node server.js 
  113	   639	 39841	       electron_node eslintServer.js 
    0	    16	 39665	     watcherService
    0	     0	 40223	     /bin/zsh -l
    1	    82	 39660	   shared-process
    0	     0	 41238	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    2	    66	 41236	   window (Issue Reporter)
Workspace Info
|  Window (~/Development/project/component.js)
|    Folder (project): 2715 files
|      File types: html(896) js(699) json(335) png(74) svg(24) eot(6) ttf(6)
|                  woff(6) css(5) map(5)
|      Conf files: launch.json(1) package.json(1)
|      Launch Configs: pwa-node;
@dbaeumer
Copy link
Member

dbaeumer commented Sep 1, 2020

Without a reproducible case this is very hard to track down. Almost all cases I have seen so far result in high CPU usage in the eslint npm module itself. To verify that you could use the setting eslint.debug which prints a performance trace to the ESLint channel.

Can you provide me with a GitHub repository I can clone that demos what you are experiencing.

@dbaeumer dbaeumer added the info-needed Issue requires more information from poster label Sep 1, 2020
@artmsv
Copy link
Author

artmsv commented Sep 2, 2020

@dbaeumer Unfortunately I can't share the project but let me try with debug info.

@dbaeumer
Copy link
Member

dbaeumer commented Sep 4, 2020

@h3xsoul thanks. Let me know what you find out.

Dirk

@vscodebot vscodebot bot closed this as completed Sep 11, 2020
@vscodebot
Copy link

vscodebot bot commented Sep 11, 2020

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@timroes
Copy link

timroes commented Oct 6, 2020

I've having the same issue on a couple of repositories regularily. One of the repositories where I can reproduce it always is EUI. Just opening that project and trying to save a file a couple of times, usually from around the 5th saving on it'll always be in that state where it's stuck in the "Getting code actions from ESLint" phase. eslint.debug does not seem to produce any helpful information for me: https://gist.github.com/timroes/9f15a78f5fc1ed1e1b3cecb94f9195d5

When I hit saving in the stuck mode, no new lines will appear in the log. I know that other people working on that repository are having the same issue, so I hope with that above repo it should be easily reproducible. I've also enabled all other checks, to make sure it's really stuck on the ESLint check and not one of the TypeScript code actions.

It seems to happen OS independent (fails at least on Linux and Mac).

Please let me know if I can provide any additional information.

cc @chandlerprall @cchaos

@dbaeumer
Copy link
Member

dbaeumer commented Oct 6, 2020

@timroes actually the trace is helpful. It shows that the linting hangs in the ESLint npm library. The 2020-10-06T15:02:34.292Z eslint:linter Verify should at some point be closed with something like eslint:cli-engine Linting complete in:

@dbaeumer
Copy link
Member

dbaeumer commented Oct 6, 2020

@timroes I tried to reproduce this using the repository you pointed out. Any more steps you can provide (e.g. which file to save and what to type beforehand)

@timroes
Copy link

timroes commented Oct 6, 2020

@dbaeumer for me it happens pretty regularily. I e.g. just edited the combo_box.tsx file in a couple of places and saved it a couple of times and it got stuck. In general I don't have noticed any specific steps or actions I took, than just coding, saving and after some saves it's stuck.

@JonasBa
Copy link

JonasBa commented Oct 7, 2020

Happens pretty regularly to me too, with the message ': Getting code actions from ''ESLint', 'TypeScript Importer'' (configure)' I tried disabling the ts import plugin but it didnt solve the issue.

@dbaeumer
Copy link
Member

dbaeumer commented Oct 9, 2020

@timroes I tried again with the repository you provided but without any success. But I have to say I didn't make any meaningful changes. Not an expert in the code. When this happens to you the next time could you provide me with the content of the file when it gets stuck. May that helps to track this down.

@dbaeumer
Copy link
Member

dbaeumer commented Oct 9, 2020

And two general question

  • when this happens do you experience high CPU load ?
  • @timroes would you be willing to run the extension out of source? Then we could attach a debugger when it happens and get some more insight about where it hangs?. I can provide you with instructions. It is not complicated.

@cchaos
Copy link

cchaos commented Oct 9, 2020

I can attest to @timroes' problem as I personally had the same issue with the same repository a while back. It would definitely throttle my CPU and I'd always have click "Cancel" where it would skip the auto-formatting and then save the file.

I can't remember exactly what my previous configuration in my settings file was, though something similar to what the OP pasted. I removed all of those configs and I now just have the following relevant settings:

  "editor.formatOnSave": true,
  "eslint.format.enable": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode"

The editor saves and formats on save properly now.

@FloodGames
Copy link

It keeps coming up for me too since the latest releases from Eslint I guess.
image

@dbaeumer
Copy link
Member

I believe all of you that you see this. But without me being able to reproduce it there is very little I can do. So if someone has steps please provide them here. Or if someone is willing to debug please ping as well. I can provide steps on how to do this.

@myasonik
Copy link

@dbaeumer Happy to debug with your guidance. I can consistently trigger the hanging issue with any change right now so I'm not sure I can provide an repro steps other than "try saving a file..."

I'll hold off making @cchaos's recommended config changes for a few days so that I don't risk changing anything before getting to the bottom of this.

@dbaeumer
Copy link
Member

@myasonik thanks for your willingness to debug this. Highly appreciated. Here are the steps:

  • clone https://github.com/microsoft/vscode-eslint.git
  • cd into vscode-eslint
  • run npm install
  • run npm compile
  • open VS Code on the workspace
  • bring the debug viewlet to front
  • select Launch Client
  • press run button
  • in the new VS Code instance that opens open the workspace you can trigger the behavior in.
  • open a file that trigger ESLint validation
  • go back to the first instance of VS Code
  • in the debugger viewlet select Attach To Server and press the run button

When you hit the problem go back to the first instance of VS Code

  • select the server in the call stack pane and press the pause button

capture

Can you then provide me with the call stack. I will then see what additional information we can obtain to be able to reproduce this.

@dbaeumer dbaeumer reopened this Oct 19, 2020
@timroes
Copy link

timroes commented Oct 19, 2020

I am having "excessive saving issues", in the form that I hit "save" very very often while typing (like a couple of times per minutes). Sometimes I guess I hit it when the code is not even in a compilable state. I wonder if that could be related to that issue, because I had - while watching this behavior over the weekend - the feeling it happens more often when it's trying to reformat (prettier via eslint) in a state, where the code is not actually parseable. Sorry, haven't had the time to really debug it, but maybe @myasonik this can help reproducing this.

@myasonik
Copy link

Welp, I finally got around to this and I can't reproduce it after being able to reproduce it consistently for two days. (And I haven't touched the repo nor any settings in since then.) Banged at it for nearly an hour with no luck.

The only trace I could get is this one though it seems to just be a warning that wasn't causing any issues...

stack trace: SyntaxError: Unexpected token, expected ";" (89:78)
	at _class.raise (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:4028:15)
	at _class.unexpected (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:5343:16)
	at _class.semicolon (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:5327:40)
	at _class.parseVarStatement (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:7729:10)
	at _class.parseStatementContent (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:7327:21)
	at _class.parseStatementContent (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:10082:58)
	at _class.parseStatement (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:7277:17)
	at _class.parseBlockOrModuleBlockBody (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:7829:23)
	at _class.parseBlockBody (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:7816:10)
	at _class.parseTopLevel (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:7242:10)
	at _class.parse (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:8642:17)
	at parse (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/@babel/parser/lib/index.js:10648:38)
	at parse (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/import-cost/dist/src/babelParser.js:67:28)
	at getPackages (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/import-cost/dist/src/babelParser.js:60:13)
	at getPackages (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/import-cost/dist/src/parser.js:16:41)
	at Object._callee$ (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/import-cost/dist/src/index.js:43:47)
	at tryCatch (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:62:40)
	at Generator.invoke [as _invoke] (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:296:22)
	at Generator.next (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:114:21)
	at step (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/import-cost/dist/src/index.js:21:191)
	at /Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/import-cost/dist/src/index.js:21:437
	at new Promise (<anonymous>)
	at Timeout._onTimeout (/Users/myasonik/.vscode/extensions/wix.vscode-import-cost-2.12.0/node_modules/import-cost/dist/src/index.js:21:99)
	at listOnTimeout (internal/timers.js:531:17)
	at processTimers (internal/timers.js:475:7)

@just-Bri
Copy link

Just stopping by to say I have this same message popup almost every time I save a .tsx file in a React project.

I tried adding/removing options from the settings.json:

  "editor.formatOnSave": true,
  "eslint.format.enable": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode"

Tried enabling/disabling each of those but nothing changes the behaviour.

@dbaeumer
Copy link
Member

@myasonik thanks a lot for trying!!

@reifnotreef can you share that repository with steps to reproduce?

@just-Bri
Copy link

@reifnotreef can you share that repository with steps to reproduce?

Unfortunately no, it's a private work repo. My first guess is a specific setting we have but I haven't been able to find anything that would cause it in our config files etc.

@FloodGames
Copy link

At this point in time, it doesn't seem to get stuck anymore (latest vscode, eslint or just the act of upgrading did it?)

@just-Bri
Copy link

My current, relevant, settings are:

  "editor.formatOnSave": false,
  "eslint.format.enable": false,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.codeActionsOnSave": {
    "source.fixAll": false,
    "source.organizeImports": false,
    "source.fixAll.eslint": true
  },

I did make sure that I have the latest prettier/eslint via npm i -g.
It still pops up every now and then, but it doesn't hang for nearly as long as it used to.
I have all of vs-code's formatting turned off and rely on eslint/prettier specifically.

@dbaeumer
Copy link
Member

Can really no one share a repository with me we I can reproduce this?

@cchaos
Copy link

cchaos commented Oct 27, 2020

The repo that some of us have been having trouble with this in is https://github.com/elastic/eui

@timroes
Copy link

timroes commented Oct 27, 2020

@cchaos @myasonik I'd be curious if it happens to you after the latest VSCode upgrade still. I've upgraded last week and worked the weekend on a project, where it didn't happen that often as in EUI, but still often enough to notice, and I haven't had a single issue ont he whole weekend in that repo. But haven't checked yet if it also disappeared for EUI, maybe one of you already tried with the new VSCode version.

@dbaeumer
Copy link
Member

I again played with https://github.com/elastic/eui without success. @cchaos which file are you usually editing when you see this.

@tmswartz12
Copy link

Confirming this issue is still happening for me. Here is my settings.json

{
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact"
  ],
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.format.enable": true,
  "window.zoomLevel": 1,
  "tslint.exclude": null,
  "tslint.autoFixOnSave": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "eslint.codeAction.disableRuleComment": {},
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true
}

@michealroberts
Copy link

This is a daily chore issue for me, doesn't matter what project - it just crashes vscode.

@dbaeumer
Copy link
Member

dbaeumer commented Sep 7, 2022

@michealroberts have you tried to use the eslint.codeActionsOnSave.rules setting. Code action on save actually executes a whole lint pass and if you have expensive rules this will block the save. The above setting lets you control the rules consider on save. If you specify an empty array do you still see the dialog?

@chrismcleod
Copy link

chrismcleod commented Sep 7, 2022

I am seeing this never complete. I left it running all night ~8hrs and I still see the "Getting code actions" busy dialog. Started happening after I updated vscode to 1.71.0

It had always worked before that for me.

@dbaeumer
Copy link
Member

dbaeumer commented Sep 8, 2022

@chrismcleod what happens if you set eslint.codeActionsOnSave.rules to an empty array? And can you share a repository I can clone that demos what you are seeing?

@chrismcleod
Copy link

@dbaeumer in the process of trying to make a demo repo I figured out my issue at least. I have m1 Mac and home-brew puts things in /opt/homebrew. I saw a stack overflow that had recommended to fix a problem with Xcode, I should symlink node into /usr/local/bin. Not only did that break eslint plugin, but it also broke a npm install and a bunch of other stuff.

I deleted that symlink and it works again.

@tmswartz12
Copy link

I was able to get this working by deleting my local git remote by running -rm -rf on the directory and then re pulling the repository down. Def a pain in the butt... but it worked!

Lmk if anyone else has success trying this.

@dbaeumer
Copy link
Member

dbaeumer commented Sep 9, 2022

@chrismcleod good to hear you got it working again.

@LarryKarani
Copy link

LarryKarani commented Sep 15, 2022

Disabling "Local History" plugin worked for me. It made the workspace extremely large

@yucccc
Copy link

yucccc commented Sep 29, 2022

I have always had this problem, but I think it may have nothing to do with the vscode eslint plug-in, because I have the same problem when I switched to webstrom. Maybe it's an eslint's own problem?

@dbaeumer
Copy link
Member

What always help to track this down is to run the extension with eslint.debug set to true and check which rule might hang.

@kredenac
Copy link

kredenac commented Oct 3, 2022

Hi @dbaeumer , thanks for this awesome extension. It's working great apart from this issue.

Here is the full output (avoiding pasting it all here for readability)

Here's the relevant part (segment where you can see the slowdown):

2022-10-03T00:41:57.135Z eslint:rules Loading rule 'no-unneeded-ternary' (remaining=255)
2022-10-03T00:41:57.136Z eslint:rules Loading rule 'no-nested-ternary' (remaining=254)
2022-10-03T00:41:57.137Z eslint:rules Loading rule 'accessor-pairs' (remaining=253)
2022-10-03T00:41:57.145Z eslint:cli-engine Lint D:\Editor-SDK\packages\common\src\PyroCard\PyroShell.tsx
2022-10-03T00:41:57.145Z eslint:linter Linting code for D:\Editor-SDK\packages\common\src\PyroCard\PyroShell.tsx (pass 1)
2022-10-03T00:41:57.145Z eslint:linter Verify
2022-10-03T00:41:57.145Z eslint:linter With ConfigArray: D:\Editor-SDK\packages\common\src\PyroCard\PyroShell.tsx
2022-10-03T00:41:57.147Z eslint:linter Parsing: D:\Editor-SDK\packages\common\src\PyroCard\PyroShell.tsx
2022-10-03T00:42:22.875Z eslint:linter Parsing successful: D:\Editor-SDK\packages\common\src\PyroCard\PyroShell.tsx
2022-10-03T00:42:22.875Z eslint:linter Scope analysis: D:\Editor-SDK\packages\common\src\PyroCard\PyroShell.tsx
2022-10-03T00:42:22.875Z eslint:linter Scope analysis successful: D:\Editor-SDK\packages\common\src\PyroCard\PyroShell.tsx
2022-10-03T00:42:22.891Z eslint:linter Generating fixed text for D:\Editor-SDK\packages\common\src\PyroCard\PyroShell.tsx (pass 1)
2022-10-03T00:42:22.891Z eslint:source-code-fixer Applying fixes
2022-10-03T00:42:22.891Z eslint:source-code-fixer shouldFix parameter was false, not attempting fixes
2022-10-03T00:42:22.891Z eslint:cli-engine Linting complete in: 25750ms
2022-10-03T00:42:22.891Z eslint:rules Loading rule 'array-bracket-newline' (remaining=252)
2022-10-03T00:42:22.892Z eslint:rules Loading rule 'array-bracket-spacing' (remaining=251)
2022-10-03T00:42:22.893Z eslint:rules Loading rule 'array-callback-return' (remaining=250)

As you can see, while loading rules it starts linting the file that's open, and it lasts for 25 seconds. After that first run, everything works well. Just this first run is extremely slow and file save hangs until it's done.

I tried disabling no-nested-ternary and accessor-pairs just to see if it always hangs on that place by accident - but even after turning them off (I didn't turn have them in eslintrc) they're still loaded and the message and delay are the same. I also removed all entries from extends
If we can prevent these rules from being loaded and if it helps in debugging, let me know.

Here's my eslintrc and here's the .vscode/settings.json if it helps.

Edit:
After tinkering, noticed that this extension seems to only rely on the tsconfig in the root to dermine whic files to lint, and that somehow slows it extremely down.

I'm in a monorepo with root tsconfig, and then each package extends that tsconfig (same patter with root eslintrc and per-package eslintrc files which extend it).

If I just scope the root tsconfig to one package - it works extremely quickly (like 1 second vs 25 seconds)!

But this seems like a bug, why would the extension try to read the whole repo instead of the context of just one file I'm working in?

@dbaeumer
Copy link
Member

dbaeumer commented Oct 3, 2022

@kredenac The VS Code ESLint extension depends for validation fully on the ESLint npm package (https://eslint.org).

By default the ESLint extension doesn't consult any tsconfig.json files. This happens to my knowledge only when using the TypeScript plugins for ESLint.

There is an option in the ESLint TypeScript plugin to tell for each folder which tsconfig files to use. I do this for this repository for example as well. You might want to have a look at https://github.com/microsoft/vscode-eslint/blob/main/client/.eslintrc.json#L4 to see how this works.

In general if the ESLint npm module is slow (e.g. like in your trace) the best you can do to track this down is to use ESLint in a terminal (without VS Code) since it will show the same behavior and is easier to tweak.

@dbaeumer
Copy link
Member

dbaeumer commented Oct 3, 2022

@kredenac you might also want to make use of the eslint.workingDirectories feature in the VS Code extension to help the npm module to find the right config files. You might look at this repository as an example as well.

@sureshbabudj
Copy link

Even I was facing the same issue in multiple repos in react project (using multiple TS-ESLint plugins). Rolling back to ESLint
v2.3.0 solved the issue for me. As everyone said, It consumes lot of CPU...

@JakeRuth
Copy link

Here's how I consistently fix this hanging issue:

  • restart my computer, fully. Quitting and reopening Visual Studio Code does not fix

My hunches:

  • I'm using eslint 7.x, so maybe that's it
  • This may be an OS issue, I'm on Ubuntu 22.04.2 LTS

@dhwrwm
Copy link

dhwrwm commented Apr 23, 2024

Here's how I consistently fix this hanging issue:

  • restart my computer, fully. Quitting and reopening Visual Studio Code does not fix

My hunches:

  • I'm using eslint 7.x, so maybe that's it
  • This may be an OS issue, I'm on Ubuntu 22.04.2 LTS

Happening on my Mac as well. This is very much irritating

@dbaeumer
Copy link
Member

@JakeRuth @dhwrwm an you provide me with a GitHub repository I can clone with a minimal setup that demos this.

@NumanAnees
Copy link

I'm also facing the same issue.

@dbaeumer
Copy link
Member

@NumanAnees, @JakeRuth @dhwrwm have you followed the steps in #1344 to understand what is slow.

@MarArMar
Copy link

MarArMar commented May 18, 2024

Requiring issue to be reopended because many seems to be facing the issue still

Me included

@dbaeumer
Copy link
Member

@MarArMar have you followed the steps in #1344 to understand what is causing this. I most cases so far the slowness is caused by a slow ESLint rule which I can't do anything about it.

If you see the slowness somewhere else can you please open a new issue with a GitHub repository I can clone that demos the problem. Otherwise it is hard to tell what is causing this.

@MarArMar
Copy link

@dbaeumer Ok I added some comment to help with implementing one of your suggestions there, will report if still experiencing problems

Have a great day

@armenzg
Copy link

armenzg commented May 30, 2024

This started happening for me again today.
Saving 'traceTimeline.spec.tsx': Getting code actions from ''ESLint', 'Biome', 'GitHub Copilot Chat''

@armenzg
Copy link

armenzg commented May 30, 2024

Disabling the Biome and ESLint extensions made saving fast again.

@MarArMar
Copy link

Ok I believe for me @dbaeumer solution worked or at least I experienced the problem less 👍

@wesbos
Copy link

wesbos commented Jun 11, 2024

Had the same issue - I think it's Github copilot chat. I can see their icon go to a spinner when I hit save, and never back again.

The issue here is disabling an extension reloads the extension host, which fixes the problem for a bit, so its hard to debug. Would love some data on what extension is holding things up

@dbaeumer
Copy link
Member

@wesbos Have you looked at: #1344

It contains instructions on how to find out whether this is caused by ESLint and what can be done to improve the situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests