ReSharper faultily marking variables and usings as unused
All of a sudden ReSharper marks variables and 'using' statements as not used anywhere and thus obsolete. This is definitely incorrect but I tried to follow the lightbulb suggestion anyway (remove unused local variable) and the following error appears: "Cannot perform this action, most likely because of errors in the source code".
Also that is incorrect. There are no errors in the source code. The highlighting was fine a few days ago and today all of a sudden completely off. The application builds fine.
What I already tried to resolve this (all to no avail, unfortunately):
- Removed the DotSettings.user file.
- Removed ReSharper from Visual Studio and reinstalled it.
- Updated ReSharper.
- Updated Visual Studio.
I hope you have other suggestions on how to get ReSharper working properly again. It's a great tool and I prefer not to do too much coding without it.
Many thanks in advance!
Frits
Please sign in to leave a comment.
Hello Frits!
Could you please try clearing caches as described in the following help article - https://resharper-support.jetbrains.com/hc/en-us/articles/206546989-ReSharper-stopped-working-for-a-single-specific-solution
Thank you.
Hi Angelina,
thanks for the suggestion. I had figured this out in the meantime (removed the solution's cache folder manually) and it made things work as normal again, thankfully!
I meant to update this thread, but once I got working again it slipped my mind.
Many thanks for the reply though! Very helpful.
Cheers