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

ScriptException: The script l10n failed to execute. #41

Open
Eway opened this issue Sep 26, 2024 · 0 comments
Open

ScriptException: The script l10n failed to execute. #41

Eway opened this issue Sep 26, 2024 · 0 comments

Comments

@Eway
Copy link

Eway commented Sep 26, 2024

PS D:\Workspace\Boilerplate> make sync
melos bootstrap
└> D:\Workspace\Boilerplate

Running "flutter pub get" in workspace packages...
✓ app
└> app
✓ data
└> data
✓ domain
└> domain
✓ gen_env
└> tools/gen_env
✓ initializer
└> initializer
✓ nals_lints
└> nals_lints
✓ resources
└> resources
✓ shared
└> shared

SUCCESS

Generating IntelliJ IDE files...

SUCCESS

-> 8 packages bootstrapped
melos run l10n
└> dart pub global run melos exec --fail-fast --scope="resources" --flutter -- flutter pub run intl_utils:generate
└> RUNNING

$ melos exec
└> flutter pub run intl_utils:generate
└> RUNNING (in 1 packages)


resources:
Failed to build intl_utils:generate:
/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/short/source_visitor.dart:2392:27: Error: Type 'MixinOnClause' not found.
void visitMixinOnClause(MixinOnClause node) {
^^^^^^^^^^^^^
/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/short/source_visitor.dart:600:19: Error: The getter 'macroKeyword' isn't defined for the class 'ClassDeclaration'.

  • 'ClassDeclaration' is from 'package:analyzer/src/dart/ast/ast.dart' ('/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/analyzer-6.2.0/lib/src/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'macroKeyword'.
    modifier(node.macroKeyword);
    ^^^^^^^^^^^^
    /C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/short/source_visitor.dart:1282:14: Error: The getter 'onClause' isn't defined for the class 'ExtensionDeclaration'.
  • 'ExtensionDeclaration' is from 'package:analyzer/src/dart/ast/ast.dart' ('/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/analyzer-6.2.0/lib/src/dart/ast/ast.dart').

Try correcting the name to the name of an existing getter, or defining a getter or field named 'onClause'.
if (node.onClause case var onClause?) {
^^^^^^^^

/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/short/source_visitor.dart:2392:27: Error: 'MixinOnClause' isn't a type.
void visitMixinOnClause(MixinOnClause node) {
^^^^^^^^^^^^^
/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/front_end/ast_node_visitor.dart:1299:27: Error: Type 'MixinOnClause' not found.
void visitMixinOnClause(MixinOnClause node) {
^^^^^^^^^^^^^
/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/front_end/ast_node_visitor.dart:271:16: Error: The getter 'macroKeyword' isn't defined for the class 'ClassDeclaration'.

  • 'ClassDeclaration' is from 'package:analyzer/src/dart/ast/ast.dart' ('/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/analyzer-6.2.0/lib/src/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'macroKeyword'.
    node.macroKeyword,
    ^^^^^^^^^^^^

/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/front_end/ast_node_visitor.dart:629:14: Error: The getter 'onClause' isn't defined for the class 'ExtensionDeclaration'.

  • 'ExtensionDeclaration' is from 'package:analyzer/src/dart/ast/ast.dart' ('/C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/analyzer-6.2.0/lib/src/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'onClause'.
    if (node.onClause case var onClause?) {
    ^^^^^^^^
    /C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/front_end/ast_node_visitor.dart:1299:27: Error: 'MixinOnClause' isn't a type.
    void visitMixinOnClause(MixinOnClause node) {
    ^^^^^^^^^^^^^
    /C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/front_end/piece_factory.dart:1199:7: Error: Type 'MixinOnClause' not found.
    MixinOnClause? onClause,
    ^^^^^^^^^^^^^
    /C:/Users/ayina/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/src/front_end/piece_factory.dart:1199:7: Error: 'MixinOnClause' isn't a type.

    MixinOnClause? onClause,
    ^^^^^^^^^^^^^


$ melos exec
└> flutter pub run intl_utils:generate
└> FAILED (in 1 packages)
└> resources (with exit code 1)

melos run l10n
└> dart pub global run melos exec --fail-fast --scope="resources" --flutter -- flutter pub run intl_utils:generate
└> FAILED
ScriptException: The script l10n failed to execute.
make: *** [makefile:91: sync] Error 1
PS D:\Workspace\Boilerplate>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant