Skip to content

Add linux doctor implementation - #34755

Merged
jonahwilliams merged 15 commits into
flutter:masterfrom
jonahwilliams:desktop_doctor
Jun 20, 2019
Merged

jonahwilliams merged 15 commits into
flutter:masterfrom
jonahwilliams:desktop_doctor

Conversation

@jonahwilliams

@jonahwilliams jonahwilliams commented Jun 19, 2019 •

Copy link
Copy Markdown
Contributor

Reland #31873

@dnfield dnfield added t: flutter doctor Problem related to the "flutter doctor" tool tool Affects the "flutter" command-line tool. See also t: labels. labels Jun 20, 2019
if (clangResult.exitCode != 0) {
ProcessResult clangResult;
try {
clangResult = await processManager.run(const <String>[

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This does do a bit more than processManager.canRun - but is that intended? Is canRun not good enough here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I could be wrong but I've seen canRun throw argument errors too

@dnfield dnfield left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, as long as we really do need to execute clang++ and make and can't just check that they are available on the path.

@jonahwilliams

Copy link
Copy Markdown
Contributor Author

We'd need to check for them on the path and then execute with --version to check that. This combines that into a single call, which nicely simplifies the code

@jonahwilliams
jonahwilliams merged commit b9932d5 into flutter:master Jun 20, 2019
@jonahwilliams
jonahwilliams deleted the desktop_doctor branch June 20, 2019 15:21
johnsonmh pushed a commit to johnsonmh/flutter that referenced this pull request Jul 30, 2019
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

t: flutter doctor Problem related to the "flutter doctor" tool tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants