Skip to content

fragment shader compilation errors don't mention the file #182497

@gaaclarke

Description

@gaaclarke

observed

$ flutter run
Launching lib/main.dart on iPhone 16 Plus in debug mode...
error: 111: initializers are not permitted on arrays (or structs containing arrays)
error: 112: unknown identifier 'param_2'
error: 119: initializers are not permitted on arrays (or structs containing arrays)
error: 120: unknown identifier 'param_5'
error: 121: unknown identifier 'result'
error: 122: unknown identifier 'shapeSDF'
error: 124: unknown identifier 'result'
error: 124: unknown identifier 'param_6'
error: 124: unknown identifier 'param_7'
error: 130: initializers are not permitted on arrays (or structs containing arrays)
error: 131: unknown identifier 'param_11'
error: 132: unknown identifier 'result'
error: 133: unknown identifier 'shapeSDF_1'
error: 135: unknown identifier 'result'
error: 135: unknown identifier 'param_12'
error: 135: unknown identifier 'param_13'

expected

I expect the file name where the error occurred to be part of the error logs.

doctor

[!] Flutter (Channel [user-branch], 3.42.0-1.0.pre-118, on macOS 15.7.3 24G419 darwin-arm64, locale en) [395ms]
    ! Flutter version 3.42.0-1.0.pre-118 on channel [user-branch] at /Users/aaclarke/dev/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.

cc @b-luk

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions