AoCHelper
AoCHelper copied to clipboard
IOException thrown by Solver.SolveLast when debugging in VS Code
Just installed AocHelper and using the Template. When attempting to debug my code, the SolveLast method throws an IOException when attempting to set the cursor visibility.
This project has run successfully when not using the debugger. This same code, when debugged using Visual Studio, will run just fine (debugger behaves without throwing the exception).
I suspect this is some configuration or installation problem on my end with VSCode. Have you seen anything like this before?
Hi @clrudolphi,
I did see this before, in https://github.com/spectreconsole/spectre.console/issues/151, but that was inside of a GH Actions runner.
Let me investigate a bit more which part of the rendering code causes this
This happens during AnsiConsole.Live(table), which is the key part of AoCHelper.
I can reproduce it myself as well, so it's not an issue with your VSCode installation.
I opened a bug in sprectre.console about this to try to understand if this is the expected behavior, I hope we can provide a solution soon to be able to debug from VSCode as well.
If you run into this issue, as a workaround, you can just configure the VSCode setting Csharp › Debug: Console to NOT be internalConsole.
"csharp.debug.console": "integratedTerminal"