Stacked-Org / stacked

A Flutter application architecture created from real world scenarios
MIT License
935 stars 256 forks source link

[bug]: stacked generate fails on brand new project Command complete. ExitCode: 255 #1056

Closed jakusb closed 7 months ago

jakusb commented 7 months ago

Describe the bug

Running dart run build_runner build --delete-conflicting-outputs ... Command complete. ExitCode: 255

To reproduce

stacked create app t2o_stacked --template=web ┌──────────────────────────────────────────────────────────────────┐ │ A new version of Stacked CLI is available! │ │ │ │ To update to the latest version, run "stacked update" │ └──────────────────────────────────────────────────────────────────┘

No configuration file found. Default Stacked values will be used. Running flutter create t2o_stacked ... Signing iOS app for device deployment using developer identity: "Apple Development: appledev@lazymen.eu (DDW223AJA5)"

Creating project t2o_stacked...

Resolving dependencies in t2o_stacked...

Got dependencies in t2o_stacked.

Wrote 129 files.

All done!

You can find general documentation for Flutter at: https://docs.flutter.dev/ Detailed API documentation is available at: https://api.flutter.dev/ If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

$ cd t2o_stacked $ flutter run

Your application code is in t2o_stacked/lib/main.dart.

Command complete. ExitCode: 0 Add Stacked Magic ... Created File: 't2o_stacked/web/main-icon.png' Created File: 't2o_stacked/web/index.html' Created File: 't2o_stacked/web/favicon.png' Created File: 't2o_stacked/test/viewmodels/unknown_viewmodel_test.dart' Created File: 't2o_stacked/test/viewmodels/notice_sheet_model_test.dart' Created File: 't2o_stacked/test/viewmodels/info_alert_dialog_model_test.dart' Created File: 't2o_stacked/test/viewmodels/home_viewmodel_test.dart' Created File: 't2o_stacked/test/helpers/test_helpers.dart' Created File: 't2o_stacked/stacked.json' Created File: 't2o_stacked/pubspec.yaml' Created File: 't2o_stacked/lib/ui/widgets/mouse_transforms/translate_on_hover.dart' Created File: 't2o_stacked/lib/ui/widgets/mouse_transforms/scale_on_hover.dart' Created File: 't2o_stacked/lib/ui/views/unknown/unknown_viewmodel.dart' Created File: 't2o_stacked/lib/ui/views/unknown/unknown_view.tablet.dart' Created File: 't2o_stacked/lib/ui/views/unknown/unknown_view.mobile.dart' Created File: 't2o_stacked/lib/ui/views/unknown/unknown_view.desktop.dart' Created File: 't2o_stacked/lib/ui/views/unknown/unknown_view.dart' Created File: 't2o_stacked/lib/ui/views/startup/startup_viewmodel.dart' Created File: 't2o_stacked/lib/ui/views/startup/startup_view.dart' Created File: 't2o_stacked/lib/ui/views/home/home_viewmodel.dart' Created File: 't2o_stacked/lib/ui/views/home/home_view.tablet.dart' Created File: 't2o_stacked/lib/ui/views/home/home_view.mobile.dart' Created File: 't2o_stacked/lib/ui/views/home/home_view.desktop.dart' Created File: 't2o_stacked/lib/ui/views/home/home_view.dart' Created File: 't2o_stacked/lib/ui/dialogs/info_alert/info_alert_dialog_model.dart' Created File: 't2o_stacked/lib/ui/dialogs/info_alert/info_alert_dialog.dart' Created File: 't2o_stacked/lib/ui/common/ui_helpers.dart' Created File: 't2o_stacked/lib/ui/common/app_strings.dart' Created File: 't2o_stacked/lib/ui/common/app_constants.dart' Created File: 't2o_stacked/lib/ui/common/app_colors.dart' Created File: 't2o_stacked/lib/ui/bottom_sheets/notice/notice_sheet_model.dart' Created File: 't2o_stacked/lib/ui/bottom_sheets/notice/notice_sheet.dart' Created File: 't2o_stacked/lib/main.dart' Created File: 't2o_stacked/lib/extensions/hover_extensions.dart' Created File: 't2o_stacked/lib/app/app.dart' Created File: 't2o_stacked/build.yaml' Created File: 't2o_stacked/README.md' Created File: 't2o_stacked/.vscode/settings.json' Running dart format . -l 80 in t2o_stacked/... Formatted lib/app/app.dart

Formatted lib/main.dart

Formatted lib/ui/bottom_sheets/notice/notice_sheet.dart

Formatted lib/ui/bottom_sheets/notice/notice_sheet_model.dart

Formatted lib/ui/common/app_colors.dart

Formatted lib/ui/common/app_constants.dart

Formatted lib/ui/common/app_strings.dart

Formatted lib/ui/common/ui_helpers.dart

Formatted lib/ui/dialogs/info_alert/info_alert_dialog.dart

Formatted lib/ui/dialogs/info_alert/info_alert_dialog_model.dart

Formatted lib/ui/views/home/home_view.dart

Formatted lib/ui/views/home/home_view.desktop.dart

Formatted lib/ui/views/home/home_view.mobile.dart

Formatted lib/ui/views/home/home_view.tablet.dart

Formatted lib/ui/views/home/home_viewmodel.dart

Formatted lib/ui/views/startup/startup_view.dart

Formatted lib/ui/views/startup/startup_viewmodel.dart

Formatted lib/ui/views/unknown/unknown_view.dart

Formatted lib/ui/views/unknown/unknown_view.desktop.dart

Formatted lib/ui/views/unknown/unknown_view.tablet.dart

Formatted lib/ui/views/unknown/unknown_viewmodel.dart

Formatted lib/ui/widgets/mouse_transforms/scale_on_hover.dart

Formatted test/helpers/test_helpers.dart

Formatted test/viewmodels/home_viewmodel_test.dart

Formatted test/viewmodels/info_alert_dialog_model_test.dart

Formatted test/viewmodels/notice_sheet_model_test.dart

Formatted 31 files (26 changed) in 0.43 seconds.

Command complete. ExitCode: 0 Running flutter pub get in t2o_stacked/... Resolving dependencies...

Changed 60 dependencies!

Command complete. ExitCode: 0 Running dart run build_runner build --delete-conflicting-outputs in t2o_stacked/... Command complete. ExitCode: 255 Running dart format . -l 80 in t2o_stacked/... Formatted 31 files (0 changed) in 0.41 seconds.

Command complete. ExitCode: 0 Cleaning project... Project cleaned.

Expected behavior

no error. all files generated

Screenshots

image

Additional Context

No response

jakusb commented 7 months ago

For some reason I was running an old version of dart on my macOS: brew info dart ==> dart-lang/dart/dart: stable 2.18.3, HEAD

I did: "brew unlink dart" and rerun "dart pub global activate stacked_cli". This solved the issues I had.