Code Monkey home page Code Monkey logo

Comments (5)

grochocki avatar grochocki commented on July 16, 2024

@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.

chris84948 avatar chris84948 commented on July 16, 2024

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>

image

from xamlstyler.

grochocki avatar grochocki commented on July 16, 2024

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.

chris84948 avatar chris84948 commented on July 16, 2024

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.

DaveInCaz avatar DaveInCaz commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.