flutter / flutter/flutter

[native assets] Inconsistent logging on error.

Open
#147,544 9 comments 2 reactions 0 assignees View on GitHub
P2 team-tool tool tool-still-valid triaged-tool
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

When native assets build.dart fails during `flutter build`, its output should be printed. This doesn't currently happens consistently.

macOS (xcodebulld):
- stdout is printed
- stderr is printed twice

linux (CMake / Ninja):
- stdout is printed only with verbose flag (-v)
- stderr is printed as expected

windows (CMake / MSBuild):
- neither stdout or stderr is printed without verbose flag (-v)
- with verbose flag stderr is printed twice.

Out of these windows seems worst, as the error gets swallowed by default, and it needs to be looked up in the full log, with quite a bit of text printed after the main error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.