Everything is red even with cleaning caches / reinstalling etc

Hello,

I'm running Visual Studio Professional 2019 (16.5.2) against Resharper Ultimate 2019.3.4.

So I've encountered the famous problem of the "everything is red in my CS files" but I've already had this problem some times in the past (long time Re# user here).

First difference as the bug I already had: everything is red in all my solutions, not just one in particular.

What's I've tried already:

- Clean Resharper caches (via the resharper menu & via the direct path on the disk), then restarting visual studio then pausing / resuming Resharper)
- Uninstall Resharper -> Repair Visual Studio -> Reinstall Resharper
- Starting from a clean checkout of my repo (so all the caches / .suo / bin & obj folder are gone)
- Launched Visual Studio as Administrator (or not)
- Disable or Enable solution wide analysis

So I'm the end of the ideas I have to solve this issue.

I've reproduced the bug with the log enabled in verbose mode for Resharper. I've uploaded my log file using the web form under the name:

resharper_log.txt 

Sorry for the generic name. The upload was made 2 minutes ago.

Thanks for helping me,

Matthias.

7 comments
Comment actions Permalink

Hello Matthias,

 

Is the problem reproduced for a newly created solution?

Have you tried disabling ReSharper in VS Tools | Options | ReSharper Ultimate and check if the red code issues goes away?

Also, one more suggestion - please try disabling the following option - ReSharper | Options | Environment | General | Read solution model directly and check if it is reproduced.

Thank you.

0
Comment actions Permalink

Hello Angelina,

When Resharper is disabled, everything is green and the compilation is working fine.

I tried why you said (disabling the read solution model directly) and it seems to fix the issue, or at least to work around it since everything is normal when I do that.

Matthias.

0
Comment actions Permalink

Thank you for the reply, Matthias.

 

We need to investigate the problem, so we'd be grateful if you could provide us sample solution demonstrating the problem or the following info:
1. Start VS with ReSharper in internal mode with command devenv /ReSharper.Internal
2. Select in menu ReSharper | Internal | Project Model | Project Model Dump and save it in DumpOptionDisabled.txt file
3. Enable Read solution model directly option
4. Select in menu ReSharper | Internal | Project Model | Project Model Dump and save it in DumpOptionEnabled.txt file
5. Select in menu ReSharper | Internal | Project Model | Reload project from file system and collect logs and save it in ReloadProject.txt file.
6. In VS Options | Project and Solutions | Build and Run set MSBuild project build output verbosity to 'Diagnostic', rebuild solution and save build ouput to DiagnosticBuild.txt.

You can share all the information via "Submit a request" form at the top of the page.
Thanks in advance.

0
Comment actions Permalink

Hello Angelina,

I've submitted the ticket with the log files you asked. Let me know if you need something else or if you find why it's not working with this option enabled on my computer, thanks!

Matthias.

0
Comment actions Permalink

I am just wondering if there was any solution to or conclusion from this? I have a similar problem, except with Resharper Ultimate 2019.1.3 with Visual Studio Community 2019 v16.6.1. I have tried all the above solutions to clear caches etc. but some references stay red. Happy to open another ticket as well if that's preferred.

Edit: as a note, my issue happens only on some solutions and not others. For the solutions that exhibit the issue, it happens regardless of the PC I open the solution on. (Same version of Resharper / Visual Studio across the PCs.)

Can it be something to do with the specific solution / project references?

0
Comment actions Permalink

Hello Lyall Guiney,

 

Could you please check if the problem is reproduced with the latest ReSharper 2020.1.3 - https://www.jetbrains.com/resharper/download.

Please let me know about the results.

Thank you.

0
Comment actions Permalink

Hi Angelina,

Yes that does resolve it thanks. I was hoping to keep using my 2019 perpetual license but I guess I will upgrade.

0

Please sign in to leave a comment.