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

Improve error when FLUTTER_ROOT is missing. #2316

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented Aug 24, 2020

This is a re-do, sort of, of #1714, which was broken in #2190. Fixes #2279

This is a re-do, sort of, of dart-lang#1714, which was broken in dart-lang#2190.
@srawlins srawlins requested a review from scheglov August 24, 2020 20:39
@googlebot googlebot added the cla: yes Google CLA check succeeded. label Aug 24, 2020
@devoncarew
Copy link
Member

Interesting - when does dartdoc run pub get / flutter pub get?

@srawlins
Copy link
Member Author

It looks like it only runs it when .dart_tool/package_config.json is not found... Not sure why we voluntarily do it, but it's been in there for at least two years.

@devoncarew
Copy link
Member

It looks like it only runs it when .dart_tool/package_config.json is not found... Not sure why we voluntarily do it, but it's been in there for at least two years.

Interesting. We should likely change this to hard fail if some set of conditions aren't met, instead of falling back on running pub for the user.

@srawlins
Copy link
Member Author

Looks like analyzer is broken at HEAD (~0.40.1-dev)

@scheglov
Copy link
Contributor

@bwilkerson There might be an issue with TargetKind in the analyzer.

@srawlins
Copy link
Member Author

@scheglov Travis turned green.

@srawlins
Copy link
Member Author

@scheglov This is ready for review.

@srawlins srawlins merged commit 977f765 into dart-lang:master Aug 27, 2020
@srawlins srawlins deleted the friendly-flutter-root branch August 27, 2020 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid argument(s): join(null, "bin", "cache", "dart-sdk"): part 0 was null, but part 1 was not.
4 participants