You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
System.IO.IOException: 'The handle is invalid'
at System.ConsolePal.set_CursorVisible(Boolean value)
at Spectre.Console.LegacyConsoleCursor.Show(Boolean show) in /_/src/Spectre.Console/Internal/Backends/Legacy/LegacyConsoleCursor.cs:line 7
at Spectre.Console.CursorExtensions.Hide(IAnsiConsoleCursor cursor) in /_/src/Spectre.Console/Extensions/CursorExtensions.cs:line 33
at Spectre.Console.LiveDisplayRenderer.Started() in /_/src/Spectre.Console/Live/LiveDisplayRenderer.cs:line 16
at Spectre.Console.LiveDisplay.<>c__DisplayClass18_0`1.<<StartAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Live/LiveDisplay.cs:line 104
--- End of stack trace from previous location ---
at Spectre.Console.Internal.DefaultExclusivityMode.RunAsync[T](Func`1 func) in /_/src/Spectre.Console/Internal/DefaultExclusivityMode.cs:line 40 at Spectre.Console.LiveDisplay.StartAsync[T](Func`2 func) in /_/src/Spectre.Console/Live/LiveDisplay.cs:line 98 at Spectre.Console.LiveDisplay.StartAsync(Func`2 func) in /_/src/Spectre.Console/Live/LiveDisplay.cs:line 78 at AoCHelper.Solver.SolveAll(Action`1 options) in C:\dev\_Competitive_Programming\AoCHelper\src\AoCHelper\Solver.cs:line 227 at Program.<Main>$(String[] args)in C:\dev\_Competitive_Programming\AoCHelper\src\AoCHelper.PoC\Program.cs:line 4 at Program.<Main>(String[] args)
To Reproduce
Simplest code to reproduce it (debug from VSCode):
Just FYI I do check Environment.UserInteractive && !Console.IsOutputRedirected as a requirement to calling AnsiConsole.Clear(), after having issues with CI runners (#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
spectre.console
dependency via NuGet (eduherminio/AoCHelper#183)From my PoC project (second repro above) that uses the library which
spectre.console
dependency via project referencePlease upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: