Skip to content

Fix flutter doctor (pluginsPath) check for Mac#50324

Merged
fluttergithubbot merged 4 commits intoflutter:masterfrom
c9n:fix-plugins-path-check-for-mac
Feb 26, 2020
Merged

Fix flutter doctor (pluginsPath) check for Mac#50324
fluttergithubbot merged 4 commits intoflutter:masterfrom
c9n:fix-plugins-path-check-for-mac

Conversation

@c9n
Copy link
Copy Markdown
Contributor

@c9n c9n commented Feb 7, 2020

Description

Flutter plugin & Dart plugin installation checking may fail when using flutter doctor on Mac.

However, they are both installed.

brew-doctor

It failed just because it checked the wrong directory.

If you install IDEA via JetBrain ToolBox, the default plugin directory is something like this one:

/Users/lynn/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/193.6015.39/IntelliJ IDEA.app.plugins

So, we should read the Info.plist first then decide where to check for plugins.

flutter doctor after fix ↓

brew-doctor-2

@fluttergithubbot
Copy link
Copy Markdown
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Feb 7, 2020
@c9n c9n changed the title Fix pluginsPath check for Mac Fix brew doctor (pluginsPath) check for Mac Feb 7, 2020
@c9n c9n requested review from cbracken and zanderso February 7, 2020 15:39
Copy link
Copy Markdown
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

Comment thread packages/flutter_tools/lib/src/doctor.dart Outdated
Comment thread packages/flutter_tools/lib/src/doctor.dart Outdated
Comment thread packages/flutter_tools/lib/src/doctor.dart Outdated
Comment thread packages/flutter_tools/lib/src/doctor.dart Outdated
@c9n c9n changed the title Fix brew doctor (pluginsPath) check for Mac Fix flutter doctor (pluginsPath) check for Mac Feb 8, 2020
Copy link
Copy Markdown
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

Code looks good. Still needs a test.

@c9n
Copy link
Copy Markdown
Contributor Author

c9n commented Feb 12, 2020

Code looks good. Still needs a test.

Test added.

@c9n c9n requested a review from zanderso February 12, 2020 16:56
Copy link
Copy Markdown
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

Thanks for writing the test. On reading the change again, I noticed a couple of things.

Comment thread packages/flutter_tools/lib/src/doctor.dart
Comment thread packages/flutter_tools/lib/src/doctor.dart
Comment thread packages/flutter_tools/lib/src/doctor.dart
@c9n
Copy link
Copy Markdown
Contributor Author

c9n commented Feb 26, 2020

@zanderso Is everything ok now?

Copy link
Copy Markdown
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

lgtm

@fluttergithubbot fluttergithubbot merged commit 2243c42 into flutter:master Feb 26, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants