Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Check for dart2js on felt startup#21046

Merged
cbracken merged 1 commit intoflutter:masterfrom
cbracken:felt-dart2js
Sep 9, 2020
Merged

Check for dart2js on felt startup#21046
cbracken merged 1 commit intoflutter:masterfrom
cbracken:felt-dart2js

Conversation

@cbracken
Copy link
Member

@cbracken cbracken commented Sep 9, 2020

This adds a check for the presence of dart2js in the engine build.

Felt relies on an engine build with --full-dart-sdk set. Previously,
we checked for the presence of pub, but not for the presence of
web-specific tooling such as dart2js that felt relies on. Pub is built
as part of the default Dart SDK build when --full-dart-sdk is not set,
so its presence is insufficient to prove that other required tooling is
present.

Without this check, we get the following error on run:

Unhandled exception:
ProcessException: No such file or directory
  Command: /Users/cbracken/src/flutter/engine/src/out/host_debug_unopt/dart-sdk/bin/dart2js --no-minify --disable-inlining --enable-asserts --enable-experiment=non-nullable --no-sound-null-safety -O2 -o test/paragraph_builder_test.dart.browser_test.dart.js test/paragraph_builder_test.dart

Fixes flutter/flutter#65500

This adds a check for the presence of dart2js in the engine build.

Felt relies on an engine build with `--full-dart-sdk` set. Previously,
we checked for the presence of pub, but not for the presence of
web-specific tooling such as dart2js that felt relies on. Pub is built
as part of the default Dart SDK build when `--full-dart-sdk` is not set,
so its presence is insufficient to prove that other required tooling is
present.

Without this check, we get the following error on run:

    Unhandled exception:
    ProcessException: No such file or directory
      Command: /Users/cbracken/src/flutter/engine/src/out/host_debug_unopt/dart-sdk/bin/dart2js --no-minify --disable-inlining --enable-asserts --enable-experiment=non-nullable --no-sound-null-safety -O2 -o test/paragraph_builder_test.dart.browser_test.dart.js test/paragraph_builder_test.dart
Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

LGTM!

@cbracken cbracken merged commit 404e9b7 into flutter:master Sep 9, 2020
@cbracken cbracken deleted the felt-dart2js branch September 9, 2020 21:04
Copy link
Contributor

@ferhatb ferhatb left a comment

Choose a reason for hiding this comment

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

Thank you for fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Felt crash on startup if full Dart SDK not built

4 participants