forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
953 stars 406 forks source link

Incredibly Slow Startup #4919

Closed Llnski closed 8 months ago

Llnski commented 1 year ago

Summary

Incredibly long plugin load time, my computer is more than capable of of running the plugin.

Steps To Reproduce:

  1. Install Plugin
  2. Start Vscode

Expected result

Reasonable start-up time, Vscode developers have acknowledged that a plugin with 2400 ms start-up time is ridiculous, Salesforce takes more than a minute to start-up.

Actual result

image

Salesforce Extension Version in VS Code: Most Recent

SFDX CLI Version: 1.82.0

OS and version: Windows 10, 10.0.19045

CristiCanizales commented 1 year ago

Hello @Llnski! Can you specify which version of the extensions you're running?

Llnski commented 1 year ago

image v58.2.0 @CristiCanizales

anantagarwal2002 commented 1 year ago

For me, it always takes more than 4 min to load this extension(latest version) in vscode. I can see in extension log that it tries to load couple of extensions in background every min which started after 2 min. It would be good to get basic work started so that we can start the activity.

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

ctinghino commented 1 year ago

Can we kindly have an official response to this issue? Many of us are facing daily performance issues, slow startups and unresponsiveness. Thanks

Llnski commented 1 year ago

The reviews for this extension on the Vscode marketplace are littered with more reports of this issue.

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

Llnski commented 1 year ago

bump

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

laszlo-foldi-attentioncrm commented 1 year ago

I can back this up. This really slows down my development time when trying to jump right on a problem and have to wait minutes for my full environment to load. image

Llnski commented 1 year ago

Bump

laszlo-foldi-attentioncrm commented 1 year ago

This is getting ridiculous... Can anyone from the project team respond to this issue?

CristiCanizales commented 1 year ago

Hello! We have this issue in our backlog, but there are some other things with deadlines for which we need to work on first! Sorry for the inconveniences this might be causing you and thank you again for your patience.

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

laszlo-foldi-attentioncrm commented 1 year ago

Bump

SFDX-Sam commented 1 year ago

Painfully slow for me too

DC-ICT commented 1 year ago

5-10 minutes to load all SFDX extensions for me.

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

laszlo-foldi-attentioncrm commented 1 year ago

Still no update on this issue.

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

reignman5 commented 1 year ago

bump, because this problem is really hindering the developer experience

tneuburger commented 1 year ago

This affects me as well @lukeis . Thanks for watching it on my laptop here at Dreamforce '23.

SFDX-Sam commented 1 year ago

This is on a 32 core 13th Gen Intel(R) Core(TM) i9-13900K with 32GB of RAM, I can't imagine the average laptop

Just some more info

DC-ICT commented 1 year ago

This is on a 32 core 13th Gen Intel(R) Core(TM) i9-13900K with 32GB of RAM, I can't imagine the average laptop

My average company laptop took 83094ms this morning. That's on the quick end.

balderm commented 1 year ago

Having the same issue, extremely slow startup time, and i got an high end 2018 laptop for work.

OS: Windows 11 22H2 VSCode version: 1.82.0 SFDX version: @salesforce/cli/2.7.11 win32-x64 node-v18.17.1 Extension version: 58.14.2

Screenshot 2023-09-13 125252

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

BobSeu commented 1 year ago

Same thing here.

ytiq commented 1 year ago

Same thing here. It takes more than 5 minutes to boot up all Salesforce extension until I can't do basically anything, can't even check Git status most of the time and need to use terminal for SFDX and Git. And it's with top end laptop with i7-12700H

Can you please improve it?

image

chrisabralse commented 1 year ago

image image image

Still hitting this issue months later. Crazy long load times

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

laszlo-foldi-attentioncrm commented 1 year ago

I may bump this issue again.

AnanyaJha commented 1 year ago

Hi all! Thank you so much for reporting your issues here, we'll be pulling this into the work for our upcoming iteration. A member of our engineering team will reach out with more updates once we've begun investigating. Appreciate your patience!

git2gus[bot] commented 1 year ago

This issue has been linked to a new work item: W-14255695

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

msriver commented 1 year ago

bump

zxmarcos commented 1 year ago

Upgrading from JDK17 to JDK21 solved this issue for me.

DC-ICT commented 1 year ago

No difference for me with JDK21 (also can't activate Apex Language Server on 21).

Llnski commented 1 year ago

No difference for me with JDK21 either

shetzel commented 1 year ago

Linking with related GH issue: https://github.com/forcedotcom/salesforcedx-vscode/issues/3198

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

jongpie commented 1 year ago

Bump

gbickel-nuage commented 1 year ago

This is an issue on my machine as well. Brand new machine with 32 GB of RAM and a new Intel 13th Gen i7 processor. The hardware isn't the bottleneck here. Running Java version "11.0.20", Salesforce Extension pack v59.3.1 and CLI @salesforce/cli/2.13.9 win32-x64 node-v18.15.0

As a consulting firm changing between VS folders is common throughout the day and this is killing us.

melissaklein68 commented 1 year ago

When it starts up it's incredibly slow. But it doesn't always start up - I had to close the app to reboot my computer yesterday and haven't yet been able to authorize an org. I've uninstalled and reinstalled the extension twice and it still isn't recognizing it. I can't do my work with it like this.

Running @salesforce/cli/2.13.9 win32-x64 node-v18.15.0 and Salesforce Extension Pack v59.4.0

AnanyaJha commented 1 year ago

Hi all, appreciate the patience for the long-running issue you've been experiencing. There will be an initial fix going out in next week's release that should address this problem. We'll post an update once the release has gone out, thanks!

cc @gbockus-sf

diyer commented 1 year ago

Hello all, we're excited to let you know the latest version of our extensions 59.5.1 is released! We encourage you to try it out and let us know if you see any improvement with this fix and if possible with some data. Your feedback is valuable to us. Thank you for being part of our journey!!

cc: @AnanyaJha @gbockus-sf

DC-ICT commented 1 year ago

I'm clocking 74000ms on the latest version, so no improvement at all.

reignman5 commented 1 year ago

unfortunately also no improvement for me

fabiobarcelona commented 1 year ago

Same for me after the extension update. Startup time is around 25-50k ms using Oracle Java 11 and latest CLI version

image

gbockus-sf commented 1 year ago

@fabiobarcelona @DC-ICT @reignman5 And all :) Thanks for the feedback. This was step one which should improve the startup time. Telemetry so far is telling me there's small improvement to avg startup time for the CLI Integration extension, but not everyone has updated to the latest yet so it will be interesting to see what happens to that number as the day goes on.

This def should have improved the end-to-end time for when an update drops as it reduced the size of the CLI extension by a good amount. It has to download the extension before it ever kicks off the activation of the extension.

We also have another change that will hopefully make the next release that should further improve the activation time number (altering the load order of the extensions to allow the base extension to activate first).

diyer commented 1 year ago

@fabiobarcelona @DC-ICT @reignman5 Thank you for your feedback! Do you mind comparing the start up time for your core extension on previous version with the latest one and let us know? The fix we have in our latest version impacts only the core extension and as @gbockus-sf said there are further improvements in the pipeline.