reactiveui / ReactiveUI

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
https://www.reactiveui.net
MIT License
8.11k stars 1.12k forks source link

[Bug]: Annoying Trace Listener popups when working with Winforms Designer #3884

Open Micha-kun opened 2 months ago

Micha-kun commented 2 months ago

Describe the bug 🐞

This week I tried to open some of my forms, but it surprised me that, suddenly, a lot of those screens are poping one after another, and only with debug info from ReactiveUI:

image image

They show when form or user control is loading, and seems to ignore the "IsInDesignMode". If it was a single one I could tolerate, but I have forms that are showing HUNDREDS of popups one after another (because they are using a lot of bindings). Anything changed in latest versions? Why I'm getting those popups? Any way to disable that? I'm going crazy with that.

PD: I'm detecting that there are more popups when a form inherits from a base form.

Thank you

Step to reproduce

  1. Open a Form or User Control from a Winforms proyect in Design Mode
  2. When designer is loading, ReactiveUI log is printing as a Message Box.

Reproduction repository

https://github.com/reactiveui/ReactiveUI

Expected behavior

Winforms Designer opens without Trace Listener Popups

Screenshots 🖼️

image image

IDE

Visual Studio 2022

Operating system

Windows

Version

.NET 6

Device

Windows 11

ReactiveUI Version

20.1.1, 20.0.1

Additional information ℹ️

No response

mike-forster commented 1 month ago

Happens to me as well but without ReactiveUI. Visual Studio Community 2022 Version 17.11.5

dpvreony commented 1 month ago

relates to: https://github.com/dotnet/winforms/issues/12360