tareqimbasher / NetPad

A cross-platform C# editor and playground.
MIT License
1.34k stars 68 forks source link

Can't stop a runaway query without killing the app #98

Closed ChristopherHaws closed 11 months ago

ChristopherHaws commented 1 year ago

I'm unable to stop a runaway query without closing NetPad. It seems to only happen when logging to the console or using .Dump().

Minimal Repro

while (true) {
    Console.WriteLine(DateTime.Now);
}
tareqimbasher commented 11 months ago

Thanks for reporting. Will take a look.

tareqimbasher commented 11 months ago

So this started me down a rabbit hole and finally had me focus on making some planned, and overdue, design changes to how script output is rendered. #112 introduces a number of changes and enhancements that include fixing this issue. It will go out with next release.

It also, under the hood, lays down the foundation to introducing more Dump capabilities like dumping controls in the future.

tareqimbasher commented 11 months ago

Will keep open till new version is released

tareqimbasher commented 11 months ago

Closing with publish of new v0.6.0 release.