Clear Cache Needed Too Often

My team is finding that our Solution Analysis is getting corrupted often and we are forced to clear the cache (and restart VS).  Unfortunately some on the team have given up and simply ignore the solution wide analysis.  This can happen when switching from Debug to Release.  We've also seen it when switching between branches.  

Is there something that we can look into about our solution / setup that may help us?  A couple of things that may contribute: This is a solution of about 50 projects.  A number of the unit test projects are using Fakes - so we also have Fakes projects.  The source code takes up only about 15MB.

I'm sure this is somewhat isolated to us and this solution, because if it weren't there would be much wailing and gnashing of teeth in the Resharper community (and there doesn't seem to be).  Small demo solutions do not have the issue.

5
15 comments

it's 2021 and I'm having this same problem,  any solutions?

0

Travis Hawkins, sorry to hear you faced such difficulties. Could you please describe the problem in detail? Does it sound like the problem described in the original post? Thank you in advance for the reply!

0

Thanks for getting back to me.  The Solution is the same, I clear the cache 4-5 times a day to keep things running smoothly.

When OP says solution analysis is 'getting corrupted'. I could add some detail there.  In my case the keyboard starts reacting really slowly and sometimes the last word I typed will come out backwards or closer to backwards than forwards, it's just a jumble.

Also pasting anything while it's in this state ends up with like 1000 of the pasted item.  Clearly I didn't hit ctrl-v 1000 times, or hold it down for a long time. I just hit it once like normal and now I've got 1000 copies of it in my document.

I've never pushed it past that to see if any other aberrant behavior presents itself, I clear Resharper's cache and restart VS.

It seems like the more features of Resharper that I disable the less often this happens but my laptop is no slouch:

intel i9 -9th gen - 32bg ram, 1gb ssd with room to spare, 1GB ethernet connected directly.

Nothing else is slowing down and there's no reason for ReSharper to be.

Thanks!

 

0

Travis Hawkins, thanks for the reply! What ReSharper version are you using? Is it 2021.1.4 (ReSharper | Help | About JetBrains ReSharper)?

If so, could you please try disabling Inlay Hints in ReSharper | Options | Environment | Inlay Hints | General? Does it help? 

0

I am using version 2021.1.4 and I've turned off Inlay Hints and so far it's working well.  I'll give it a few hours and if it jams up again I'll get back to you.

Thanks so much for your help

0

Good! We're going to release 2021.1.5 with a fix for this problem shortly.

0

This is happening to me very often. At least once a day after opening the VS solution. It happens after any VS extension or VS 2022 update. I am using ReSharper v.2021.3.1.

0

Hello Arman Ghazanchyan,

Could you please let me know if clearing caches helps to solve the problem?

Thank you.

 

0

Hi Angelina Elycheva,

Clearing caches works but I have to clear the cache every time I want to work with the project. It seems somehow the cache is getting corrupted every time.

0

Hello Arman Ghazanchyan

Could you please perform the following steps when you experience the same issue again:
1. Start ReSharper in internal mode "devenv.exe /ReSharper.Internal"
2. Open the problem solution
3. Select ReSharper | Internal | Project Model | Dump Project Model and save the content to ProjectModelBefore.txt
4. Select ReSharper | Internal | Project Model | Dump Psi Moduls and save the content to PsiBefore.txt
5. Clear caches 
6. Check that the issue is no longer reproduced
7. Select ReSharper | Internal | Project Model | Dump Project Model and save the content to ProjectModelAfter.txt
8. Select ReSharper | Internal | Project Model | Dump Psi Moduls and save the content to PsiAfter.txt
Please send us the files for further investigation. You can share it privately via "Submit a request" form.

Thank you.

0

Any updates on this? I have to clear cache every time I close the solution even if I don't do any changes to the project otherwise, I would end up with multiple errors next time it opens.

I am not sure, but this might do something with encoding...

0

Hi, I am having the same issues on VS2022 and ReSharper 2021.3.2

Same as Arman Ghazanchyan described (need to clear constantly - after branch switch, build, sometimes even close/open without any changes made). Can't even use navigating shortcuts (F12, etc.) - just a caption "Resharper is thinking..." appears and stays until focus of the window is lost.

0

Hello Tomas Malovic,

Could you please provide the same information as was asked in this comment so we could investigate the problem?

Thank you.

0

Hi Angelina Elycheva,

I used the "Submit a request" form to send further details.

0

Please sign in to leave a comment.