Unused variables no longer reliable

I've noticed in the newest releases of Rider it started displaying fields, properties, methods, etc.. as unused (highlighted dark gray).  I can even run "safe delete" on them and it works fine.  However I then find out they are, in fact, being used.  In addition if I run "find usages" on the element in question it will find results.  This is in a pretty standard .NET Framework ASP.NET MVC project, nothing fancy or out of the ordinary.

Anyone else experiencing this disconnect?  It's making the feature pretty much worthless and I really lean on that feature a lot.

0
3 comments
Hello,

Where is the affected method used? Do you have analysis/highlighting enabled in the file that uses this method that is highlighted as unused?
0

Hello.  Yes I always have analysis/highlighting enabled across all files.  I've noticed lately even that can get out of sync sometimes, even on the latest version of Rider.  It's really annoying because I'll do a rename refactoring and then end up with a bunch of references that were not updated.  Something is seriously wrong in the indexing/caching system.

0

Hello Nightski,

Could you please try to clear the caches via File | Invalidate caches => Invalidate and restart? Also you can try right-clicking the solution in the Solution explorer window and selecting Reload all projects.

If the problem would reoccur after carrying out the steps above, please provide a sample solution we can use to investigate the issue on our side. Screenshots of your Explorer view with the problematic solution, displaying the affected files where the declaration and usages of symbols are located.

0

Please sign in to leave a comment.