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

coreclr-debug nullability #5405

Merged

Conversation

winstliu
Copy link
Contributor

@winstliu winstliu commented Oct 12, 2022

This handles the coreclr-debug folder. This is the last src folder that needs to be converted; one more PR will follow to address recent changes to the other folders & enable strict mode for all of src.

Behavior changes:

  • DotNetCliError has been removed. We now show the complete error string in both the notification and the output channel. (This isn't strictly necessary - I can always add the error back, just didn't think the overhead of a custom error type was worth it here.)
  • getDotnetInfo now throws if version info can't be parsed.
  • ❗Fixed dotnetExeName using path.join instead of just string concatenation, resulting in a Windows executable of dotnet\.exe rather than dotnet.exe.
  • Converted DotnetInfo from a class to an interface and removed the unused OsVersion property.

Impact:
22 strict violations in src, down from 43 in master. (Fun fact: including test, we're now at 198 strict violations. Below 200!)

@JoeRobich
Copy link
Member

@gregg-miskelly Could you review the debugger code changes?

Copy link
Member

@JoeRobich JoeRobich left a comment

Choose a reason for hiding this comment

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

Thanks @50Wliu!

export async function getDotnetInfo(dotNetCliPaths: string[]): Promise<DotnetInfo> {
if (_dotnetInfo !== undefined) {
return _dotnetInfo;
}

let dotnetExeName = join('dotnet', CoreClrDebugUtil.getPlatformExeExtension());
let dotnetExecutablePath: string | undefined = undefined;
let dotnetExeName = `dotnet${CoreClrDebugUtil.getPlatformExeExtension()}`;
Copy link
Member

Choose a reason for hiding this comment

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

Thanks. Not sure what I was thinking.

@JoeRobich JoeRobich merged commit e3960a0 into dotnet:master Oct 13, 2022
@winstliu winstliu deleted the users/winstonliu/coreclr-debug-nullability branch October 13, 2022 18:16
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.

3 participants