C# syntax highlighting not working for VS Studio 2022 solution

I'm working on a solution in Rider 2024.2.4 (on Ubuntu 24.04.1) that was originally creating in Visual Studio 2022 and most of the syntax highlighting isn't working:

 

When I create a new Web API project in Rider everything works as expected, so I don't think it's a settings issue:

Any ideas on where to look or what to change/fix to get it working in the Visual Studio solution? TIA.


D

0
6 comments

Hello, Dean Mills ,

Could you please share a screenshot of the entire IDE window? I'm interested in the status of the code analysis daemon in the top right corner of the editor tab

0

Hi Ivan,

Sure thing, sorry about the cropping, I resized the IDE so that it's a little easier to see everything as well. I think you're referring to the green checkmark in the upper right corner? It is set to Highlight: All Problems:

0

Just adding this for anyone else who hits this, I went to File → Invalidate Caches…, checked everything there and clicked Invalidate and Restart and the syntax highlighting is working as expected!

D

3

As per Dean's suggestion, this resolved the same issue for me as well.

0

This doesn't solve the issue completely. The first time when you open Rider, nothing works - syntax highlighting turns on for a second or two and then stops. Restarting Rider helps, but you must do it each time you open a solution and it doesn't matter if you invalidate caches or not. Also, it doesn't t matter if it is a VS 2022 solution or a Rider solution.

0

Hi, everyone,

This issue is being actively investigated. Please upvote and follow the ticket: RIDER-116340 Code Parsing and Navigation Fails in Rider After Opening a Solution.

The issue description also lists things that you can try to avoid the issue. Check the list, maybe there's some workaround you haven't tried yet.

Please accept my apologies for this, I understand it's a painful problem to deal with. But we're on it, so please keep an eye on further updates in the ticket.

0

Please sign in to leave a comment.