Open eduherminio opened 9 months ago
This error happens in more situations:
When piping out the console output to another console.in. Exs:
mycode.exe > textoutput.txt
mycode.exe | more
psExec -s mycode.exe
I believe this are the same issue than piping above. Psexec should be piping the result to show in the source console.
Hmm, since stdout is redirected, you shouldn't be able to do live output at all (by design). We will need to investigate this.
Just FYI I do check Environment.UserInteractive && !Console.IsOutputRedirected
as a requirement to calling AnsiConsole.Clear()
, after having issues with CI runners (https://github.com/spectreconsole/spectre.console/issues/151), but never found an issue there with AnsiConsole.Live(table)
.
Information
Describe the bug
Unable to debug in in VSCode a console app that renders a table via
AnsiConsole.Live(table)
.Works as expected running directly from pwsh inside VSCode, and debugging from VS.
Stacktrace:
To Reproduce
Simplest code to reproduce it (debug from VSCode):
Real project:
Expected behavior No exception is thrown
Screenshots
From someone consuming the library that has the![image](https://github.com/spectreconsole/spectre.console/assets/11148519/4cea0d46-910f-44d1-824d-d45be394041a)
spectre.console
dependency via NuGet (https://github.com/eduherminio/AoCHelper/issues/183)From my PoC project (second repro above) that uses the library which![image](https://github.com/spectreconsole/spectre.console/assets/11148519/9e2546cb-ea3e-4b94-8cd2-5138633b2540)
spectre.console
dependency via project referencePlease upvote :+1: this issue if you are interested in it.