microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.3k stars 29.31k forks source link

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

Closed chrisdel101 closed 3 weeks ago

chrisdel101 commented 3 weeks ago

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.

Note:


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

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."
Cynn1989 commented 3 weeks ago

Run all tests

xvfb-run e test

Run the main process tests

xvfb-run e test --runners=main

Run the old remote tests

xvfb-run e test --runners=remote

Run all tests

xvfb-run e test

Run the main process tests

xvfb-run e test --runners=main

Run the old remote tests

xvfb-run e test --runners=remote# Enter an interactive JS prompt headlessly xvfb-run e start -iAuthentication Status: Authenticated Since: 2024-05-28 10:29:33 +0200 CEST Expires: 2024-08-26 10:29:33 +0200 CEST ... Access: Cache & Execute# Primary gclient checkout container /workspaces/gclient/ └─ src/ - # Chromium checkout └─ electron - # Elecdocs/fiddleshttps://github.com/electron/electron/tree/11c2b610116524e92dc8c0aa2d4c2873b2735814/docs/fiddlesdocs/fiddles/quick-startmain"ghcr.io/devcontainers-extra/features/aws-cdk:2": {}https://www.python.org/https://gitkraken.dev/register?source=gitlens&state=fbbdcaec-6c7a-427a-8e0c-782d46426ece&redirect_uri=https%3A%2F%2Fsuper-duper-barnacle-gjqpvww7w54hvxr4.github.dev%2Fextension-auth-callback%3Fstate%3D54202a76c5ffd8479ad5d038d0fcb6bfhttps://gitkraken.dev/connect?source=gitlens&provider=github&redirect_uri=https%3A%2F%2Fsuper-duper-barnacle-gjqpvww7w54hvxr4.github.dev%2Fextension-auth-callback%3Fstate%3D605c624c91c340bdc3b7f4059c0f2914https://github.com/Cynn1989/Nieto1989/issues/8#issue-2599364725{ "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "ghcr.io/my-org/private-features/hello:1": { "greeting": "Hello" } }, "customizations": { "codespaces": { "repositories": { "my-org/private-features": { "permissions": { "packages": "read", "contents": "read" } } } } } }https://github.com/users//packages/container/%2F/settingsghcr.io/devcontainers/feature-starter/color:1 ghcr.io/devcontainers/feature-starter/hello:1#!/bin/bash

echo "Activating feature 'color'" echo "The provided favorite color is: ${FAVORITE}"

...{ // ... "options": { "favorite": { "type": "string", "enum": [ "red", "gold", "green" ], "default": "red", "description": "Choose your favorite color." } } }├── src │ ├── hello │ │ ├── devcontainer-feature.json │ │ └── install.sh │ ├── color │ │ ├── devcontainer-feature.json │ │ └── install.sh | ├── ... │ │ ├── devcontainer-feature.json │ │ └── install.sh ...{ "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "ghcr.io/devcontainers/feature-starter/color:1": { "favorite": "green" } } }CynnNieto5152021@example.com{ "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "ghcr.io/devcontainers/feature-starter/hello:1": { "greeting": "Hello" } } }https://smee.io/n89s8c9EkMofd3whttp://gdevnieto1989.wordpress.comhttps://www.instagram.com/reel/C-t_Xz3MTkw/?igsh=YndxNWJ0NmkyZGxutron checkout

Symlinked Electron checkout (identical to the above)

/workspaces/electrone build.devcontainerdocs

vs-code-engineering[bot] commented 3 weeks ago

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!

chrisdel101 commented 1 week ago

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 !

connor4312 commented 1 week ago

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

chrisdel101 commented 1 week ago

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