dart-lang / pub

The pub command line tool
https://dart.dev/tools/pub/cmd
BSD 3-Clause "New" or "Revised" License
1.04k stars 228 forks source link

Missing extension byte error after update to 2.5.1 #3140

Closed squid-f closed 1 year ago

squid-f commented 3 years ago

Hi after updating to 2.5.1 (manual update on Linux by downloading flutter sdk), I get the following error while trying to build my project:

+ flutter pub get
Running "flutter pub get" in syphon-0.1.13...                   
Missing extension byte (at offset 18)
dart:isolate  _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run

    dart pub --trace get --no-precompile

and include the logs in an issue on https://github.com/dart-lang/pub/issues/new

dart pub --trace get --no-precompile leads to:

Resolving dependencies... 
  _fe_analyzer_shared 20.0.0 (26.0.0 available)
  analyzer 1.4.0 (2.3.0 available)
  android_alarm_manager 2.0.0 (2.0.2 available)
  args 2.0.0 (2.3.0 available)
  asn1lib 1.0.0 (1.0.2 available)
  async 2.5.0 (2.8.2 available)
  build 2.0.0 (2.1.0 available)
  build_resolvers 2.0.1 (2.0.4 available)
  build_runner 2.0.2 (2.1.2 available)
  build_runner_core 7.0.0 (7.1.0 available)
  built_collection 5.0.0 (5.1.1 available)
  built_value 8.0.4 (8.1.2 available)
  characters 1.1.0 (1.2.0 available)
  charcode 1.2.0 (1.3.1 available)
  cli_util 0.3.0 (0.3.3 available)
  code_builder 4.0.0 (4.1.0 available)
  convert 3.0.0 (3.0.1 available)
  coverage 1.0.2 (1.0.3 available)
  cupertino_icons 1.0.2 (1.0.3 available)
  dart_style 2.0.0 (2.2.0 available)
  device_info 2.0.0 (2.0.2 available)
  emoji_picker_flutter 1.0.3 (1.0.7 available)
  encrypt 5.0.0 (5.0.1 available)
  equatable 2.0.0 (2.0.3 available)
  ffi 1.0.0 (1.1.2 available)
  file 6.1.0 (6.1.2 available)
  file_picker 3.0.1 (4.1.1 available)
  flutter_colorpicker 0.4.0 (0.6.0 available)
  flutter_dotenv 4.0.0-nullsafety.0 (5.0.2 available)
  flutter_launcher_icons 0.9.0 (0.9.2 available)
  flutter_local_notifications 5.0.0+1 (8.2.0 available)
  flutter_local_notifications_platform_interface 3.0.0 (4.0.1 available)
  flutter_plugin_android_lifecycle 2.0.1 (2.0.3 available)
  flutter_secure_storage 4.1.0 (4.2.1 available)
  flutter_speed_dial 4.2.0 (4.4.0 available)
  frontend_server_client 2.1.0 (2.1.2 available)
  graphs 2.0.0 (2.1.0 available)
  http 0.13.1 (0.13.3 available)
  image 3.0.2 (3.0.5 available)
  image_picker 0.7.4 (0.8.4+2 available)
  image_picker_for_web 2.0.0 (2.1.3 available)
  image_picker_platform_interface 2.1.0 (2.4.1 available)
  io 1.0.0 (1.0.3 available)
  json_annotation 4.0.1 (4.1.0 available)
  json_serializable 4.1.1 (5.0.2 available)
  lint 1.5.3 (1.7.2 available)
  logging 1.0.1 (1.0.2 available)
  matcher 0.12.10 (0.12.11 available)
  node_preamble 2.0.0 (2.0.1 available)
  package_config 2.0.0 (2.0.2 available)
  package_info 2.0.0 (2.0.2 available)
  palette_generator 0.3.0 (0.3.1 available)
  path_drawing 0.5.0 (0.5.1 available)
  path_parsing 0.2.0 (0.2.1 available)
  path_provider 2.0.1 (2.0.5 available)
  path_provider_linux 2.0.0 (2.1.0 available)
  path_provider_macos 2.0.0 (2.0.2 available)
  path_provider_windows 2.0.0 (2.0.3 available)
  pedantic 1.11.0 (1.11.1 available)
  petitparser 4.1.0 (4.3.0 available)
  platform 3.0.0 (3.0.2 available)
  plugin_platform_interface 2.0.0 (2.0.1 available)
  pointycastle 3.0.1 (3.3.4 available)
  process 4.2.1 (4.2.3 available)
  pub_semver 2.0.0 (2.1.0 available)
  pubspec_parse 1.0.0 (1.1.0 available)
  sembast 3.0.1 (3.1.1 available)
  shared_preferences 2.0.5 (2.0.8 available)
  shared_preferences_linux 2.0.0 (2.0.2 available)
  shared_preferences_macos 2.0.0 (2.0.2 available)
  shared_preferences_web 2.0.0 (2.0.2 available)
  shared_preferences_windows 2.0.0 (2.0.2 available)
  shelf 1.1.0 (1.2.0 available)
  shelf_static 1.0.0 (1.1.0 available)
  smooth_page_indicator 0.3.0-nullsafety.0 (1.0.0+2 available)
  source_gen 1.0.0 (1.1.0 available)
  sqflite 2.0.0+3 (2.0.0+4 available)
  sqflite_common 2.0.0+2 (2.0.1+1 available)
  sqflite_common_ffi 2.0.0 (2.0.0+3 available)
  sqlite3 1.0.0 (1.2.0 available)
  sqlite3_flutter_libs 0.4.1 (0.5.0 available)
  test 1.16.8 (1.17.12 available)
  test_api 0.3.0 (0.4.3 available)
  test_core 0.3.19 (0.4.2 available)
  timezone 0.7.0 (0.8.0 available)
  uni_links 0.5.0 (0.5.1 available)
  url_launcher 6.0.3 (6.0.11 available)
  url_launcher_linux 2.0.0 (2.0.2 available)
  url_launcher_macos 2.0.0 (2.0.2 available)
  url_launcher_platform_interface 2.0.2 (2.0.4 available)
  url_launcher_web 2.0.0 (2.0.4 available)
  url_launcher_windows 2.0.0 (2.0.2 available)
  vector_math 2.1.0 (2.1.1 available)
  vm_service 6.2.0 (7.3.0 available)
  web_socket_channel 2.0.0 (2.1.0 available)
  webview_flutter 2.0.4 (2.0.14 available)
  win32 2.0.5 (2.2.9 available)
  xml 5.1.0 (5.3.0 available)
Got dependencies!

flutter doctor -v gives:

[✓] Flutter (Channel stable, 2.5.1, on Mageia 8 5.10.62-desktop-1.mga8, locale fr_FR.UTF-8)
    • Flutter version 2.5.1 at /backup/rpmbuild/rpmbuild/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (il y a 5 jours), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 11.0.1 (Mageia 11.0.1-4.mga8)
    • cmake version 3.19.2
    • ninja version 1.10.2
    • pkg-config version 1.7.3

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Mageia 8 5.10.62-desktop-1.mga8

! Doctor found issues in 3 categories.

Has anyone faced this?

sigurdm commented 2 years ago

Can you reproduce this reliably?

squid-f commented 2 years ago

Hi. Yes, I used to, but I have not tried again recently. Using flutter sdk has been too much unstable. I walked way to focus on other project for some time. I'll give it a try again next week and I'll keep you posted then.

sigurdm commented 1 year ago

Closing as stale - please reopen if this is still relevant