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

🐛 Can't run flutterfire configure #10375

Closed
arnab opened this issue Feb 2, 2023 · 3 comments
Closed

🐛 Can't run flutterfire configure #10375

arnab opened this issue Feb 2, 2023 · 3 comments
Labels
resolution: invalid This doesn't seem right and might not belong here. type: bug Something isn't working

Comments

@arnab
Copy link

arnab commented Feb 2, 2023

Bug report

Following the instructions at https://firebase.google.com/docs/flutter/setup, I am trying to install and use flutterfire.

Steps to reproduce

  1. Install flutterfire
  2. fvm dart pub global activate flutterfire_cli
  3. Run flutterfire configure

It throws an error:

Can't load Kernel binary: Invalid kernel binary format version.
Could not find a file named "pubspec.yaml" in "/Users/arnab/.pub-cache/hosted/pub.dev/flutterfire_cli-0.2.7".

Expected behavior

Not an error :)


Additional context

This has worked for me in the past with other apps. So perhaps a new problem?

  1. Notice how the error complains about not finding the file in /Users/arnab/.pub-cache/hosted/pub.dev/flutterfire_cli-0.2.7.
  2. However that directory /Users/arnab/.pub-cache/ does not exist. Instead I have /Users/arnab/.pub-cache/hosted/pub.dartlang.org
  3. And inside there, I do have flutterfire: ~/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.7.

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.10, on macOS 13.0.1 22A400 darwin-arm, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.74.3)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
Dart SDK 2.18.6
Flutter SDK 3.3.10
orcapod_app 1.0.0+1

dependencies:
- cupertino_icons 1.0.5
- flex_color_scheme 6.1.2 [flex_seed_scheme flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_riverpod 2.1.3 [collection flutter meta riverpod state_notifier]
- go_router 6.0.1 [collection flutter flutter_web_plugins logging meta]
- google_fonts 3.0.1 [flutter http path_provider crypto]
- logger 1.1.0
- riverpod_annotation 1.1.1 [meta riverpod]

dev dependencies:
- build_runner 2.3.3 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- flutter_lints 2.0.1 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]
- go_router_builder 1.0.16 [analyzer async build build_config collection meta path path_to_regexp source_gen source_helper]
- riverpod_generator 1.1.1 [analyzer build build_config collection crypto meta riverpod_annotation source_gen]

transitive dependencies:
- _fe_analyzer_shared 50.0.0 [meta]
- analyzer 5.2.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- args 2.3.2
- async 2.9.0 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- build 2.3.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.1.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.1.0 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.7 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.4.3 [built_collection collection fixnum meta]
- characters 1.2.1
- checked_yaml 2.0.2 [json_annotation source_span yaml]
- clock 1.1.1
- code_builder 4.4.0 [built_collection built_value collection matcher meta]
- collection 1.16.0
- convert 3.1.1 [typed_data]
- crypto 3.0.2 [typed_data]
- dart_style 2.2.4 [analyzer args path pub_semver source_span]
- fake_async 1.3.1 [clock collection]
- ffi 2.0.1
- file 6.1.4 [meta path]
- fixnum 1.0.1
- flex_seed_scheme 1.1.0 [flutter material_color_utilities meta]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- frontend_server_client 3.2.0 [async path]
- glob 2.1.1 [async collection file path string_scanner]
- graphs 2.2.0 [collection]
- http 0.13.5 [async http_parser meta path]
- http_multi_server 3.2.1 [async]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- io 1.0.4 [meta path string_scanner]
- js 0.6.4
- json_annotation 4.8.0 [meta]
- lints 2.0.1
- logging 1.1.1
- matcher 0.12.12 [stack_trace]
- material_color_utilities 0.1.5
- meta 1.8.0
- mime 1.0.4
- package_config 2.1.0 [path]
- path 1.8.2
- path_provider 2.0.11 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- path_provider_android 2.0.22 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.11 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.7 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.7 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.5 [flutter platform plugin_platform_interface]
- path_provider_windows 2.1.3 [ffi flutter path path_provider_platform_interface win32]
- path_to_regexp 0.4.0
- platform 3.1.0
- plugin_platform_interface 2.1.3 [meta]
- pool 1.5.1 [async stack_trace]
- process 4.2.4 [file path platform]
- pub_semver 2.1.3 [collection meta]
- pubspec_parse 1.2.1 [checked_yaml collection json_annotation pub_semver yaml]
- riverpod 2.1.3 [collection meta stack_trace state_notifier]
- shelf 1.4.0 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.3 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- source_gen 1.2.6 [analyzer async build dart_style glob meta path source_span yaml]
- source_helper 1.3.3 [analyzer collection source_gen]
- source_span 1.9.0 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- state_notifier 0.7.2+1 [meta]
- stream_channel 2.1.0 [async]
- stream_transform 2.1.0
- string_scanner 1.1.1 [source_span]
- term_glyph 1.2.1
- test_api 0.4.12 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timing 1.0.1 [json_annotation]
- typed_data 1.3.1 [collection]
- vector_math 2.1.2
- watcher 1.0.2 [async path]
- web_socket_channel 2.3.0 [async crypto stream_channel]
- win32 3.1.3 [ffi]
- xdg_directories 0.2.0+3 [meta path process]
- yaml 3.1.1 [collection source_span string_scanner]

@arnab arnab added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Feb 2, 2023
@arnab
Copy link
Author

arnab commented Feb 3, 2023

I reinstalled flutter (with fvm) and then

  • fvm flutter pub get
  • fvm dart pub global activate flutterfire_cli

... and then flutterfire configure started working again.

I am curious to know what happened though...

@darshankawar darshankawar added the triage Issue is currently being triaged. label Feb 3, 2023
@darshankawar
Copy link

@arnab
flutterfire configure related issues need to be reported in dedicated repo: https://github.com/invertase/flutterfire_cli/issues
I see a similar closed issue in it: invertase/flutterfire_cli#8. See if it helps in your case.

Closing from here.

@darshankawar darshankawar added resolution: invalid This doesn't seem right and might not belong here. and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Feb 3, 2023
@bastaware
Copy link

I fixed it by reinstalling flutterfire_cli:

dart pub global activate flutterfire_cli

@firebase firebase locked and limited conversation to collaborators Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: invalid This doesn't seem right and might not belong here. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants