Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Harden DotNetInfo a bit to handle situations when 'dotnet' doesn't launch properly or return data #879

Merged
merged 1 commit into from
May 31, 2017

Conversation

DustinCampbell
Copy link
Contributor

@DustinCampbell DustinCampbell commented May 31, 2017

Copy link
Member

@david-driscoll david-driscoll left a comment

Choose a reason for hiding this comment

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

Looks good... only question is on Version if we want to protect against additional null refs later.

Version = SemanticVersion.Parse(version);
Version = SemanticVersion.TryParse(version, out var value)
? value
: null;
Copy link
Member

Choose a reason for hiding this comment

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

Should Version be null or string.Empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, Version is a SemanticVersion.

Copy link
Member

Choose a reason for hiding this comment

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

doh I'm slow! lol

@DustinCampbell DustinCampbell merged commit 98b41d1 into OmniSharp:dev May 31, 2017
@DustinCampbell DustinCampbell deleted the harden-dotnetinfo branch August 30, 2017 19:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants