Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rider] Unable to Resolve Symbol 'LightGray' in Uno Platform #19634

Open
ShahrukhYousafzai opened this issue Mar 5, 2025 · 11 comments
Open

[Rider] Unable to Resolve Symbol 'LightGray' in Uno Platform #19634

ShahrukhYousafzai opened this issue Mar 5, 2025 · 11 comments
Labels
area/external Categorizes an issue or PR as being external to the Uno area/rider-jetbrains Categorizes an issue or PR as relevant to Jet-Brains Rider IDE

Comments

@ShahrukhYousafzai
Copy link

ShahrukhYousafzai commented Mar 5, 2025

Current behavior

When using the UNO Platform, the symbol 'LightGray' is not recognized, resulting in error:

Image

Image

The symbol 'LightGray' is not recognized, but build works however these errors are pretty annoying as program do compiles properly

Expected behavior

The LightGray color should be resolved correctly, as it is a standard predefined color.

How to reproduce it (as minimally and precisely as possible)

Create a new UNO Platform project.
Try using "LightGray" or any Color in XAML.
Observe the error in the build output.

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Target Platforms: (WinUI, Android, iOS, WebAssembly, macOS, Linux)
IDE & Version: (Visual Studio 2022, JetBrains Rider)

NuGet package version(s)

No response

Affected platforms

Tested on Windows

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@ShahrukhYousafzai ShahrukhYousafzai added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Mar 5, 2025
@jeromelaban
Copy link
Member

Thanks for the report.

This is indeed a known color:

public static Color LightGray => _lightGray ??= FromInteger(unchecked((int)0xFFD3D3D3));

This looks like a Rider IDE issue that we cannot fix without help from the Rider team. It's likely best to open an issue on their tracker.

@ShahrukhYousafzai
Copy link
Author

ShahrukhYousafzai commented Mar 5, 2025

I do get the same errors about color on visual studio as well. And I do not get this LightGray or any color error on any other type of project. It happens only on UNO Platform project no matter if I use Rider or Visual Studio as you can see in the screenshots of both IDEs

@jeromelaban
Copy link
Member

Thanks. Could you show a screenshot of the error you're seeing in visual studio?

@ShahrukhYousafzai
Copy link
Author

I get a different error in Visual Studio, but it's still related to color. Why does this happen?

These errors are really frustrating because they don’t appear in any other type of project—only in UNO Platform.

Image

@jeromelaban
Copy link
Member

Thanks. This is indeed not the same error. As a workaround, if you have the net9.0-windows targetframework, select it at the top left corner of the editor.

Still, this is an issue we've been trying to fix for years but it seems that VS intellisense changed recently and #19642 will fix it. This will be present in an upcoming release of Uno.

For Rider, opening an issue on their bug tracker is the best way to have it fixed.

@MartinZikmund
Copy link
Member

@jeromelaban should this be kept open?

@jeromelaban
Copy link
Member

@MartinZikmund It's for rider, so I tend to think that it should.

@jeromelaban jeromelaban added area/external Categorizes an issue or PR as being external to the Uno and removed kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Mar 10, 2025
@ShahrukhYousafzai
Copy link
Author

Thank you, The workaround for the VS worked. Thanks for the great work and I had tried UNO Platform few years ago and now it has improved a lot. Amazing work!

@MartinZikmund MartinZikmund changed the title Unable to Resolve Symbol 'LightGray' in UNO Platform [Rider] Unable to Resolve Symbol 'LightGray' in Uno Platform Mar 10, 2025
@MartinZikmund MartinZikmund added the area/rider-jetbrains Categorizes an issue or PR as relevant to Jet-Brains Rider IDE label Mar 10, 2025
@Takoooooo
Copy link

Takoooooo commented Mar 20, 2025

Created an issue for this one - https://youtrack.jetbrains.com/issue/RIDER-124060/Unable-to-Resolve-Symbol-for-XAML-Colors-in-Uno-Platform
Actually it seems we already have a similar issue opened - #18960 and also the similar issue in the Rider YT - https://youtrack.jetbrains.com/issue/RSRP-499591/Uno-Platform-XAML-Bugs
Should we close this one as a duplicate @MartinZikmund @jeromelaban ?

@RSReswin
Copy link

ha ha that is my rider ticket, i create the ticker before 3 months still not fixed.

i am now just selecting all error and ignoring it, it is annoying color error.

@Takoooooo
Copy link

Can you guys upvote the issue so the Rider team will more likely prioritize it?
https://youtrack.jetbrains.com/issue/RIDER-124060/Unable-to-Resolve-Symbol-for-XAML-Colors-in-Uno-Platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/external Categorizes an issue or PR as being external to the Uno area/rider-jetbrains Categorizes an issue or PR as relevant to Jet-Brains Rider IDE
Projects
None yet
Development

No branches or pull requests

5 participants