Very slow "Updating source files"

I have a C++ solution with over 40 projects in it. Everytime when I open the solution, it will take over 20 minutes to do "Updating source files". During this time, it will hang sometines and cause Visual Studio 2019 not responding. No syntax highlighting. And after that, the intellisense is still teriible, almost cannot use.

Any suggestion?

6 comments
Comment actions Permalink

Hello,

Which version of R++ are you using? 2019.1 considerably improved the indexing time, and 2019.2 boosts it even more (should be around one third time faster compared to 2019.1), so please try the latest 2019.2 build from https://www.jetbrains.com/resharper/eap/.

R++ 2019.2 indexes pretty large solutions (like Unreal Engine or LLVM) in under three minutes, so it's either your solution is huge, or we're hitting some pathological performance issue. If possible, please profile a few minutes of indexing as described in https://resharper-support.jetbrains.com/hc/en-us/articles/210652849-Collect-Timeline-performance-snapshot-in-Visual-Studio and share the snapshot with us, we'll try to investigate.

If you don't care about some of the projects in your solution, you can exclude them from indexing on the "Third-Party code" options page (see https://www.jetbrains.com/help/resharper/Reference_Options_Code_Editing_Third_Party_Code.html for details).

Note that on the second solution open if the code didn't change, ReSharper will load the data from cache and should not reindex the entire solution.

Thanks!

 

0
Comment actions Permalink

Hi, Igor,

Actually, I'm using the latest version(2019.1.3). I installed it by using the offline installation package downloaded from your site. and the VS version should be the latest update, I did the update serval days ago.

For the profile, I'll try tomorrow and attach it here.

Also something I want to mention is, during the installation, It failed many times. And when I look into the log file, it is showing that there are some tasks which requires some dlls that cannot be resolved, like Microsoft.VisualStudio.Text.Data.dll, and Microsoft.VisualStudio.Text.UI.Wpf.dll. they are located at: [VSInstallDir]\Common7\IDE\CommonExtensions\Microsoft\Editor\, but the reshparper installer is trying to find it under [VSInstallDir]\Common7\IDE\PublicAssemblies and [VSInstallDir]\Common7\IDE\PrivateAssemblies

I manually copied some dlls from the true location to the privateAssemblies folder, then the installation can pass.

 

0
Comment actions Permalink

This shouldn't happen. If the installer fails again, please send us the full installation log and we'll investigate.

0
Comment actions Permalink

Hi, Igor,

I tried the 2019.2 EAP4, which installs successfully without above issue and the "Updating source files" step performs acceptable time now. Also, after the processing, the syntax highlighting and the intellisense is also working as expected.

I'm now expecting the newer version to be stable release:)

I would say thank you so much!

 

0
Comment actions Permalink

That's great, thanks! The EAP build will run for a month, the 2019.2 release build should be available mid-August.

How long approximately does the initial indexing take on your solution now?

0
Comment actions Permalink

It's about less than 3 minutes.

0

Please sign in to leave a comment.