Skip to content

Fix doctor command for android and adb #1170

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

Merged
merged 2 commits into from
Nov 11, 2015

Conversation

rosen-vladimirov
Copy link
Contributor

Fix doctor command, which checks adb and android incorrectly. Pass correct paths for verification.
Also make sure "No issues were detected" is printed when there are no issues.

@rosen-vladimirov rosen-vladimirov self-assigned this Nov 10, 2015
@rosen-vladimirov rosen-vladimirov added this to the 1.5.0 milestone Nov 10, 2015
public getPathToAdbFromAndroidHome(): IFuture<string> {
return (() => {
if(this.androidHome) {
let pathToAdb = path.join(this.androidHome, "platform-tools", "adb") + (this.$hostInfo.isWindows ? ".exe" : "");
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you really need to take care of the .exe suffix? It should work without it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if it works without, it but it works with .exe and CI is green :) 💯

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, I do not need this, I'll remove it (I've added it for debugging purposes and I forgot to remove it).

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-doctor-command-again branch from 80044b5 to 349082c Compare November 10, 2015 21:56
@Mitko-Kerezov
Copy link
Contributor

👍

Fix doctor command, which checks adb and android incorrectly. Pass correct paths for verification.
Also make sure "No issues were detected" is printed when there are no issues.
Add SysInfo class that extends the base SysInfoBase class by calling `getSysInfo` method with correct paths to android and adb.
Remove check for java, as javac check is enough for us.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-doctor-command-again branch from 349082c to b150659 Compare November 11, 2015 09:15
@ns-bot
Copy link

ns-bot commented Nov 11, 2015

Test PASSed.

@teobugslayer
Copy link
Contributor

Do not forget to squash, 👍

rosen-vladimirov added a commit that referenced this pull request Nov 11, 2015
…and-again

Fix doctor command for android and adb
@rosen-vladimirov rosen-vladimirov merged commit 433334c into master Nov 11, 2015
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-doctor-command-again branch November 11, 2015 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants