Skip to content

Conversation

@rowanhwilliams
Copy link
Contributor

@rowanhwilliams rowanhwilliams commented Jun 5, 2025

Problem

Test runs triggered via the Ionide Test Adapter hang and never complete, when run after a test has been debugged via the Test Adapter.

Caused by stale VSTEST_HOST_DEBUG=1 env variable values affecting the non-debug run, resulting in the test hanging waiting for debugger attachment.

Steps to reproduce

  1. Create solution and open solution:
mkdir HangingTestExecutionTestCase && cd HangingTestExecutionTestCase
dotnet new sln -n HangingTestExecutionTestCase
dotnet new console -lang "F#" -o console
dotnet sln add console/console.fsproj
dotnet new xunit -lang "F#" -o tests
dotnet sln add tests/tests.fsproj
code .
  1. Click on Testing in Primary Side Bar, wait for Ionide F# Test Explorer to load
  2. Open tests tree and click debug icon on the My test F# test - test is executed with debugger attached
  3. Click run icon on the My test F# test (no debug run) - test execution hangs

Machine infos

  • Operating system: Windows_NT
  • Arch: x64
  • VSCode: 1.100.3
  • UI Kind: Desktop
  • Ionide: 7.26.1
  • Runtime: netcore
  • Dotnet version: 9.0.200

Copy link
Member

@TheAngryByrd TheAngryByrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@TheAngryByrd TheAngryByrd merged commit 065d62f into ionide:main Jun 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants