vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Testing Debug Restart Fails C# - (Correlate debug sessions and test runs related)

Open chrisdel101 opened this issue 1 year ago • 1 comments

This is report similar to #228916 but related to C# not Python. Just reporting it here based on a this tip https://github.com/microsoft/vscode/issues/228916#issuecomment-2420082153, and since #214486 is now closed.

I am using the latest VScode and C# Microsoft extension, C# dev kit being the most relevant here.

Using the testing explorer, the "restart button" fails.

  • When clicked, the tests just exit with message "No process with the specified id is currently running."
  • The testing side panel also closes and returns to the file structure (default) view. I have to re-click back into the testing panel and click the tests I want to re-run.
  • Yes I am aware there are keyboard run shortcuts, but when using the mouse, having to flip back takes alot of time.
  • Having this restart feature actually work would be a HUGE time saver. It's already so awesome to have test debugging support. Having this restart support too would be epic.

Note:

  • There seems to be an issue with Omin-sharp on my system. I can't access it at all.
  • I'm new to C# and barely know what Omni-sharp is. Just reporting this in case it is somehow linked with the testing features of C# & C# Dev kit, and might be causing this bug.

Does this issue occur when all extensions are disabled?: Yes/No

  • Don't know - didn't try, but seems unlikely to make diff
  • VS Code Version: Latest
  • OS Version: Windows 10

Steps to Reproduce:

  1. Using C# Dev kit and N-unit - run tests in test explorer
  2. Push the restart button shown clearly here. Test process exits with message "No process with the specified id is currently running."

chrisdel101 avatar Oct 19 '24 17:10 chrisdel101

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!

How do u you know it’s an extension? The only extensions I have are the microsoft c# and net ones (3 total) and GH copilot. I think the MS are required for test explorer to work even? I did a fresh install and these are the only ones I’ve added. Any assistance is appreciated !

chrisdel101 avatar Oct 30 '24 19:10 chrisdel101

The C# extension is the place to file this. This is the repo for VS Code itself. Thanks!

connor4312 avatar Oct 30 '24 20:10 connor4312

Hi @connor4312 Okie. U told me to file it here I thought in #228916. At least that’s what I thought u meant? So this is def an C# dev kit issue then? confused since non C# ppl are having it over there in other issue

chrisdel101 avatar Oct 31 '24 00:10 chrisdel101