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

VS 2022 can't run tests with Chutzpah installed #815

Open
giggio opened this issue Apr 28, 2022 · 1 comment
Open

VS 2022 can't run tests with Chutzpah installed #815

giggio opened this issue Apr 28, 2022 · 1 comment

Comments

@giggio
Copy link

giggio commented Apr 28, 2022

VS test explorer would not run tests anymore when running VS 2022 with the VS 2022 extension for Chutzpah installed.
I'm not sure what caused the hanging, I don't even have tests JS tests in this project.
I took a memory dump from VS and opened it in VS itself, it gave the clue that the ofender was Chutzpah. Once I uninstalled the extension the problem went away.
I'm on VS 17.1.6. These are .NET Framework NUnit tests. I couldn't repro it on a brand new project. I tried git cleaning the project, rebuilding, etc, nothing worked, only uninstalling the extension.
The VS Output window, when set to "Tests", only showed "Building Test Projects" when I asked for the test run. The spinner would start, VS would stay at 15% CPU and nothing more would happen. VS was responsive all the time.

This is the stack I got. I'm not sure what caused it:

image

@joj
Copy link

joj commented Nov 28, 2022

We're seeing the same thing. The problem is that the Chutzpah vsix is including System.Memory.dll and that's incompatible with the version in VS/testconsole. My recommendation would be to suppress System.Memory.dll from the vsix. No extension should ship that anyway; the only version that should exist is the one in PublicAssemblies. There are a lot of other versions, though, and that's also wrong. Still, removing that dll from the vsix (or its installation) fixes the test explorer.

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

No branches or pull requests

2 participants