Skip to content

Compiler error messages get buried #39201

@Hixie

Description

@Hixie
ianh@burmese:~/dev/dummy$ flutter run
Launching lib/main.dart on Pixel 3 XL in debug mode...
Initializing gradle...                                              0.6s
Resolving dependencies...                                           1.4s
Running Gradle task 'assembleDebug'...                          


Compiler message:

lib/main.dart:4:23: Error: Method not found: 'BoxToRenderFrameAdapter'.

void main() => runApp(BoxToRenderFrameAdapter(

                      ^^^^^^^^^^^^^^^^^^^^^^^

Compiler failed on /home/ianh/dev/dummy/lib/main.dart



FAILURE: Build failed with an exception.



* Where:

Script '/home/ianh/dev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 765



* What went wrong:

Execution failed for task ':app:compileFlutterBuildDebugArm64'.

> Process 'command '/home/ianh/dev/flutter/bin/flutter'' finished with non-zero exit value 1



* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.



* Get more help at https://help.gradle.org



BUILD FAILED in 6s
Running Gradle task 'assembleDebug'...                              6.5s
Gradle task assembleDebug failed with exit code 1
ianh@burmese:~/dev/dummy$ 

This is way too long (in part because we seem to be adding extra newlines in the output? But also because Gradle.) In fact when I just saw this it was so long that it went off the top of my screen and all I saw was the text from "What went wrong" to the bottom, which is entirely unactionable and useless.

It need not, and should not, be more than the following:

ianh@burmese:~/dev/dummy$ flutter run
Launching lib/main.dart on Pixel 3 XL in debug mode...
Initializing gradle...                                              0.6s
Resolving dependencies...                                           1.4s
Running Gradle task 'assembleDebug'...                          
Compiler error:
lib/main.dart:4:23: Error: Method not found: 'BoxToRenderFrameAdapter'.
void main() => runApp(BoxToRenderFrameAdapter(
                      ^^^^^^^^^^^^^^^^^^^^^^^
ianh@burmese:~/dev/dummy$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: first hourThe first hour of using Fluttera: qualityA truly polished experienceteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions