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

Preview fail silently if compilation fail or unhandled error occur #112

Open
Mrcubix opened this issue Feb 15, 2024 · 0 comments
Open

Preview fail silently if compilation fail or unhandled error occur #112

Mrcubix opened this issue Feb 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Mrcubix
Copy link

Mrcubix commented Feb 15, 2024

Describe the bug

Related to #111, Extension will currently not display a notification when compilation fails or when an unhandled error in the extension itself occur. A book worth of errors and exception can however be found in the logs.

To Reproduce

This is only an example, there are many ways to reach the same result.

  1. Try adding a background to a control or a view you are trying to preview, for example :
<Design.PreviewWith>
  <views:BindingsOverview Background="{StaticResource BodyColorBrush}" />
</Design.PreviewWith>

(Source accessible by prashantvc here

  1. Try to preview that element,
  2. Previewing failed, you find yourself with an empty preview, no notifications & a wall of logs such as the one in Relevant log output

or

try to preview a control with invalid syntax anywhere.

Avalonia for VS Code

0.0.31

Avalonia version

11.0.4 - 11.0.9

VS Code version

1.85.2

Relevant log output

https://gist.github.com/Mrcubix/ef331e50cd2d84c7e1f09f87de56d856

Additional context

image

@Mrcubix Mrcubix added the bug Something isn't working label Feb 15, 2024
@Mrcubix Mrcubix changed the title Extension fail silently if compilation fail or unhandled error occur Preview fail silently if compilation fail or unhandled error occur Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant