[bug]: stacked generate fails on brand new project Command complete. ExitCode: 255
jakusb opened this issue · 1 comments
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...
-
_fe_analyzer_shared 61.0.0 (65.0.0 available)
-
analyzer 5.13.0 (6.3.0 available)
-
args 2.4.2
-
build 2.4.1
-
build_config 1.1.1
-
build_daemon 4.0.1
-
build_resolvers 2.4.1
-
build_runner 2.4.6
-
build_runner_core 7.2.11
-
built_collection 5.1.1
-
built_value 8.7.0
-
checked_yaml 2.0.3
-
code_builder 4.8.0
collection 1.17.2 (1.18.0 available) -
convert 3.1.1
-
crypto 3.0.3
-
dart_style 2.3.2 (2.3.4 available)
-
file 7.0.0
-
fixnum 1.1.0
-
flutter_animate 4.3.0
< flutter_lints 1.0.4 (was 2.0.3) (3.0.1 available) -
flutter_web_plugins 0.0.0 from sdk flutter
-
freezed_annotation 2.4.1
-
frontend_server_client 3.2.0
-
get 4.6.6
-
get_it 7.6.4
-
glob 2.1.2
-
graphs 2.3.1
-
http_multi_server 3.2.1
-
http_parser 4.0.2
-
io 1.0.4
-
js 0.6.7
-
json_annotation 4.8.1
< lints 1.0.1 (was 2.1.1) (3.0.0 available) -
logger 1.4.0 (2.0.2+1 available)
-
logging 1.2.0
material_color_utilities 0.5.0 (0.8.0 available)
meta 1.9.1 (1.11.0 available) -
mime 1.0.4
-
mockito 5.4.3
-
nested 1.0.0
-
package_config 2.1.0
-
pool 1.5.1
-
provider 6.1.1
-
pub_semver 2.1.4
-
pubspec_parse 1.2.3
-
recase 4.1.0
-
responsive_builder 0.7.0
-
shelf 1.4.1
-
shelf_web_socket 1.0.4
-
source_gen 1.4.0
stack_trace 1.11.0 (1.11.1 available) -
stacked 3.4.1+1
-
stacked_generator 1.5.1
-
stacked_services 1.3.0
-
stacked_shared 1.4.0
stream_channel 2.1.1 (2.1.2 available) -
stream_transform 2.1.0
test_api 0.6.0 (0.6.1 available) -
timing 1.0.1
-
typed_data 1.3.2
-
universal_io 2.2.2
-
url_strategy 0.2.0
-
watcher 1.1.0
web 0.1.4-beta (0.4.0 available) -
web_socket_channel 2.4.0
-
yaml 3.1.2
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
Additional Context
No response
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.