foss42 / apidash

API Dash is a beautiful open-source cross-platform API Client built using Flutter which can help you easily create & customize your API requests, visually inspect responses and generate API integration code. It is supported for macOS, Windows, Linux, Android & iOS. A lightweight alternative to postman/insomnia.
https://apidash.dev
Apache License 2.0
1.64k stars 309 forks source link

Issue with Dependencies - Missing File in flutter-desktop-embedding or Unpublished Packages #467

Closed bhaskaraa45 closed 1 month ago

bhaskaraa45 commented 1 month ago

Describe the bug/problem

When running the command flutter pub get, I encountered an error related to missing files in the dependency flutter-desktop-embedding or potentially an unpublished package.

Error message:

Resolving dependencies... (2.3s)
Could not find a file named "plugins/window_size/pubspec.yaml" in https://github.com/google/flutter-desktop-embedding.git eb3964990cf19629c89ff8cb4a37640c7b3d5601.

Steps to Reproduce the bug/problem

Expected behavior

The flutter pub get command should successfully resolve dependencies, ensuring that all required files are available, including the plugins/window_size from the flutter-desktop-embedding plugin or any unpublished packages.

Device Info (The device where you encountered this issue)

Flutter Doctor

Please run the flutter doctor -v command and provide the details below:

[✓] Flutter (Channel stable, 3.22.2, on Ubuntu 24.04.1 LTS 6.8.0-41-generic, locale en_IN)
    • Flutter version 3.22.2 on channel stable at /home/bhaskar/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/bhaskar/Android/Sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /snap/android-studio/161/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 2024.1)
    • Android Studio at /snap/android-studio/161
    • Flutter plugin version 80.0.2
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] IntelliJ IDEA Community Edition (version 2024.2)
    • IntelliJ at /snap/intellij-idea-community/530
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.93.1)
    • VS Code at /snap/code/current/usr/share/code
    • Flutter extension version 3.96.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 24.04.1 LTS 6.8.0-41-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 128.0.6613.119

[✓] Network resources
    • All expected network resources are available.

• No issues found!
ashitaprasad commented 1 month ago

You can check out this thread stating similar problem and try out the suggested solutions - https://stackoverflow.com/questions/27217278/could-not-find-a-file-named-pubspec-yaml-in

We tested it on both Ubuntu 23.04 & 24.04.1 at our end and it is working perfectly fine

$ flutter upgrade
Flutter is already up to date on channel stable
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (5 days ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3

$ flutter pub get
Resolving dependencies... (33.2s)
Downloading packages... (9.2s)
  _fe_analyzer_shared 72.0.0 (74.0.0 available)
  analyzer 6.7.0 (6.9.0 available)
  bidi 2.0.10 (2.0.12 available)
  build_runner_core 7.3.1 (7.3.2 available)
  collection 1.18.0 (1.19.0 available)
  coverage 1.9.0 (1.9.2 available)
  crypto 3.0.3 (3.0.5 available)
! extended_text_field 16.0.0 (overridden)
  ffi 2.1.2 (2.1.3 available)
  file_selector_android 0.5.1+5 (0.5.1+7 available)
  flex_seed_scheme 1.5.0 (3.3.0 available)
  http_parser 4.0.2 (4.1.0 available)
  just_audio_mpv 0.1.7 (discontinued replaced by just_audio_media_kit)
  just_audio_web 0.4.11 (0.4.12 available)
  leak_tracker 10.0.5 (10.0.7 available)
  leak_tracker_flutter_testing 3.0.5 (3.0.8 available)
  macros 0.1.2-main.4 (0.1.3-main.0 available)
  material_color_utilities 0.11.1 (0.12.0 available)
  mime 1.0.5 (1.0.6 available)
  path_provider_android 2.2.9 (2.2.10 available)
  pdf 3.11.0 (3.11.1 available)
! pdf_widget_wrapper 1.0.4 (overridden)
  screen_retriever 0.1.9 (0.2.0 available)
  shelf 1.4.1 (1.4.2 available)
  shelf_static 1.1.2 (1.1.3 available)
  shelf_web_socket 1.0.4 (2.0.0 available)
  source_map_stack_trace 2.1.1 (2.1.2 available)
  string_scanner 1.2.0 (1.3.0 available)
  test 1.25.7 (1.25.8 available)
  test_api 0.7.2 (0.7.3 available)
  test_core 0.6.4 (0.6.5 available)
  url_launcher_android 6.3.8 (6.3.10 available)
  url_launcher_linux 3.1.1 (3.2.0 available)
  video_player_android 2.6.0 (2.7.3 available)
! web 0.5.1 (overridden) (1.0.0 available)
  web_socket_channel 2.4.5 (3.0.1 available)
  win32 5.5.3 (5.5.4 available)
Got dependencies!
1 package is discontinued.
34 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.