Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOException thrown by Solver.SolveLast when debugging in VS Code #183

Open
clrudolphi opened this issue Dec 2, 2023 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@clrudolphi
Copy link

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.
image

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?

@eduherminio
Copy link
Owner

Hi @clrudolphi,

I did see this before, in spectreconsole/spectre.console#151, but that was inside of a GH Actions runner.

Let me investigate a bit more which part of the rendering code causes this

@eduherminio
Copy link
Owner

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.

@vsilvar
Copy link

vsilvar commented Dec 11, 2023

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants