XAML Source Code Coloring

Playing with Uno on Rider and when I open a XAML file, the text is all white, not colored or highlighted.

All other code files are fine. It used to be colored, then one day it stopped. Any ideas on how to get it back?

Thanks,

Joe

7 comments
Comment actions Permalink

Hi Joe! 

What Rider version do you use? Please check the top-right corner of the Editor tab: is there an OFF sign? Could you please try to switch this picker to `Highlight all problems`? 

Thanks! 

0
Comment actions Permalink

Hi Alexandra,

I am using 2021.3.3.

There is an OFF sign and highlight all problems is selected, however it also states that analysis is not supported.

I don't know if its related, but I've been doing to some digging and found an issue that refer to a link between Rider and Resharper.

https://youtrack.jetbrains.com/issue/RIDER-483#u=1458079291193

I have VS 2022 with Resharper 2021.3.3 installed and confirmed the "Color Identifiers" is checked. Interesting in VS, the xaml is showing the default VS colors, not the Resharper/Rider colors.

0
Comment actions Permalink

Hi Joe Young

Thank you for the details. Could you please share your project with us, just for checking? 

You can upload it to our server and share the ID. Thanks! 

0
Comment actions Permalink

Sure, Upload id: 2022_03_07_KLC32tBNebnPnkUt (file: UnoApp1.zip)

Something else that may interesting, opening a xaml file that was created by the Xamarin Templates colors fine, however the xaml files from Uno do not. Both are in a shared project.

0
Comment actions Permalink

Hi Joe Young

It seems like you could meet this problem. Please install the latest Rider EAP and choose a proper context for the file it breadcrumbs. Please let me know if this helps. 

0
Comment actions Permalink

I'm seeing this in a new template project (dotnet new unoapp-winui-net6) on 2022.1.1. The options in that dropdown are Skia.Gtk, Skia.WPF, Wasm, and Mobile, and none give syntax highlighting apart from Mobile, which gives broken highlighting (I don't think the dependencies were indexed correctly as I'm using Linux).

0
Comment actions Permalink

Hi YoshiRulz

Thank you for the request. I was able to reproduce the issue and reported it to YouTrack. This is a separate issue related to UNO support in Rider. Feel free to follow it. 

Should you have any other questions, let us know. Have a nice day! 

0

Please sign in to leave a comment.