-
Notifications
You must be signed in to change notification settings - Fork 931
Doctor/windows #675
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
Doctor/windows #675
Conversation
| : 'sdkmanager --list', | ||
| (err, stdout) => { | ||
| if (err) { | ||
| resolve('Not Found'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be reject()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering same thing. This probably should be reject.
|
|
||
| return { | ||
| needsToBeFixed: | ||
| (sdks === 'Not Found' && installMessage) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make 'Not Found' a constant or make sdks undefined instead?
| ? { | ||
| 'Build Tools': matches, | ||
| } | ||
| : 'Not Found', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not Found is resolved here as well.
|
I changed it to reject on failure and set sdks to 'Not Found' in the catch so it's just in one place. Is this better? I don't think it should make |
Summary:
This fixes multiple issues on Windows:
Test Plan:
Run
doctoron a Windows machine with no Android SDKs installed to see #1, and then install Android SDKs and see that it was still showing an error.