-
Notifications
You must be signed in to change notification settings - Fork 676
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
Test debugging does not work on .NET Core 2.0 and xUnit 2.3.0 #1733
Comments
Yes, you're right that this was fixed recently in OmniSharp but that change has not made it into C# for VS Code yet. I'll keep this issue here until that happens and we have a new beta of C# for VS Code you can use. |
I've just taken a new version of OmniSharp that fixes this and created a new beta release: https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.13.0-beta1. You can following the instructions here to install the beta release. |
@DustinCampbell thank you! |
@DustinCampbell I've installed OmniSharp 1.13.0-beta1, but exception still appears on xUnit test debug: I'm using xUnit 2.3.0-beta5-build3769. |
Oop! I forgot to merge in the C# for VS Code side of this fix before creating the new beta. Will fix shortly. |
New day, new release. Please try C# for VS Code 1.13.0-beta2: https://github.com/OmniSharp/omnisharp-vscode/releases/tag/1.13.0-beta2. |
I still got the same error message after installed the vsix manually (1.13.0-beta2):
|
After uninstall 1.13.0-beta2 and reinstall manually, the "reload" icon is finally gone. The debug is working now. |
Glad to hear it's working for you now. |
Just discovered this - I'm managing to debug in VS Code now 🍾 Do you happen to know when this might be released? |
We're aiming for a release by the end of the month. |
Sweet - thanks! |
Great thread ! After 2 hours of googling I finally found it ! Thanks @DustinCampbell for the fix |
I'm having the same problem in vs-code on Ubuntu. Has this also been resolved? Thank you. See @asilferreira. Error: Info: xunit version 2.3.1 .NET Command Line Tools (2.0.0) Product Information: Runtime Environment: Microsoft .NET Core Shared Framework Host Version : 2.0.0 |
@americofreitasjr: Have you tried the latest C# for VS Code 1.13-beta5 release? You can follow the instructions here to install a beta release. |
Environment data
dotnet --info
output:VS Code version: 1.15.1
C# Extension version: 1.12.1
xUnit version: 2.3.0-beta4
Steps to reproduce
Create project with any xUnit test and click codelens "debug test" button.
Expected behavior
Test should be runned in debug mode.
Actual behavior
Exception message occurs:
An exception occurred while test discoverer 'VsTestRunner' was loading tests. Exception: Object reference not set to an instance of an object.
May be this is connected with this PR OmniSharp/omnisharp-roslyn#944? If so then may you update extension to include this fix?
The text was updated successfully, but these errors were encountered: