Resharper showing false errors
I'm the only person on our team that uses R#, and occasionally one of the other team members will commit code that looks fine and builds find on their PC, but R# flags as an error on my PC, but the solution does build.
One example is where someone had created an interface whose members were internal, along with a concrete instance of this where the members were public. Although it builds, Resharper treats the public member as an error, with this message:
Property xyz cannot implicitly implement a non-public property from interface IFoobar
Another example: We use ‘nameof()’ all the time, but on one occasion the dev (who doesn't use R#) committed the line below, which R# treats as an error, with the message “Cannot resolve symbol ‘isotope'”:
private bool Run(
Isotope isotope,
[CallerArgumentExpression(nameof(isotope))] string isotopeName = null)
We use VS2022. The project/solution is .Net 6. The latest .Net SDK installed on our PCs is v8.0.1. My Resharper version is 2022.2.4.
Any thoughts as to why the “fake” errors? Is my version of R# analysing using an earlier version of C# perhaps, where the above syntaxes aren't valid?
Please sign in to leave a comment.
thank you for contacting us.
Could you please install our latest EAP build from here: https://www.jetbrains.com/resharper/nextversion/?section=windows and check how it works for you?
Thank you!
Hi, I'm out of support (2022.2.4 is the latest version that I'm licensed for). Will I still be able to install and run this EAP version?
yes, you can install the EAP build. It is free.
Thank you!