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

">" problem in Rider #497

Open
NiroEnvy opened this issue Jul 8, 2024 · 5 comments
Open

">" problem in Rider #497

NiroEnvy opened this issue Jul 8, 2024 · 5 comments

Comments

@NiroEnvy
Copy link

NiroEnvy commented Jul 8, 2024

Describe the bug
I'm trying to format my axaml pages with Avalonia and when I try to apply a style it incorrectly formats the styles where ">" is used

To Reproduce

  1. When formatting any style line with ">" it change it to ">"

Expected behavior
">" should remain unchanged

Screenshots
Before:
image

After:
image

Version Info :

  • OS: Windows 10
  • Rider (2024.1.4)
  • XAML Styler: 3.2404.4.0
  • Avalonia 11.0.11
@NiroEnvy NiroEnvy added the Bug label Jul 8, 2024
@NiroEnvy NiroEnvy changed the title problem in Rider ">" problem in Rider Jul 8, 2024
@grochocki
Copy link
Contributor

This is a possible candidate for surfacing in some sort of error/warning UI in the future as part of #271, but there is a case to consider this otherwise by design due to XAML language spec. Here is some more information on XML Character Entities and XAML. Is this a delta between XAML language spec and AXAML?

@NiroEnvy
Copy link
Author

NiroEnvy commented Jul 9, 2024

This is a possible candidate for surfacing in some sort of error/warning UI in the future as part of #271, but there is a case to consider this otherwise by design due to XAML language spec. Here is some more information on XML Character Entities and XAML. Is this a delta between XAML language spec and AXAML?

There were no problems on the last version (2023.3.1 rider) and (N, last for 2023 rider i think) version of styler
However, just after the update, this problem appeared. I am also not sure that there may be some delta here, however I do not have enough knowledge to answer this question.
Avalonia version unchanged

I also thought the problem was in my configuration but reinstalling the plugin also didn't help.

Also, it happens only for "Style" section. Close brackets remain fine.

@grochocki
Copy link
Contributor

Hmm, interesting. Thanks for the info; will need to investigate further.

@colejohnson66
Copy link

Yes, Avalonia XAML is not valid XML in styles.

@Enhakiel
Copy link

Enhakiel commented Dec 4, 2024

that would be a life saver to have an option to don't process this char while formating....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants