Comments (5)
@chris84948 This appears when there is an issue processing the XAML markup. Would it be possible to share a snippet of XAML for what is on line 48 of the file you are attempting to format?
from xamlstyler.
I can definitely attach a sample, but it's not really about the XAML itself. I know the code has an error, but it's more about having to deal with a popup every time it tries to format, while an error is in place. I'd rather it just have a silent error.
I think in the 2019 version it would silently fail, and that's honestly what I'd prefer.
Here's a bare minimum sample
<UserControl x:Class="Binding.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
</UserControl>
from xamlstyler.
I am assuming as part of your flow, you are saving as you go (i.e., before you get to adding the >
). I can reproduce with that sample code in both VS2019 and VS2022. You can disable Format on Save, though, so perhaps you had this off in your VS2019 instance?
This is a parser error when encountering malformed XAML (which we can't format). We may be able to improve this experience in the future as part of #271 (including possibly helping you identify and fix these issues instead of the somewhat cryptic error message we show today).
from xamlstyler.
I'm not really looking for more information, it's fairly clear that it didn't format.
I guess I'd just like it to silently fail instead of constantly popping up that error.
from xamlstyler.
I've definitely seen this popup in VS2019 from time to time.
The format on save option is very useful, I wouldn't want to disable that to avoid the popup.
Could this popup be removed entirely, perhaps, and the error message added instead to the VS errors/warnings list?
from xamlstyler.
Related Issues (20)
- Format document shortcut missing in JetBrains Rider version.
- Publish latest XamlStyler.Console to NuGet HOT 5
- Is it possible to prevent formatting of short lines - regardless of number of attributes? HOT 2
- Markup extensions not keep on line HOT 1
- Markup extension formatting no longer works HOT 2
- Add support for Rider 2023.2 HOT 7
- Position Setter each attribute on a separate line HOT 2
- XamlStyler moves <!--#endregion--> wrongly HOT 5
- Unit tests are broken on Unix HOT 1
- Console: Add option to write formatted output to stdout instead of modifying the file HOT 1
- Yasin
- Yasin
- Extension will not alphabetize HOT 4
- XamlStyler.Console doesn't read axaml files when searching recursively
- can not run in linux while dotnet-sdk 7/8 installed HOT 2
- XAML Styler firing for Project files (*.csproj) also after updating to v3.2311.2. Previously, it was working fine. HOT 9
- Error in StylerPackage (regarding &) HOT 1
- "Max attribute characters per line" is not respected even when "Attribute Tolerance"=5 and "Max attributes per line"=8 HOT 5
- Rider 2023.3 support
- Unexpected results with <elements> in text HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamlstyler.