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

DevTools failed to connect with package:provider #859

Closed
MinByeongDon opened this issue Jan 31, 2024 · 3 comments
Closed

DevTools failed to connect with package:provider #859

MinByeongDon opened this issue Jan 31, 2024 · 3 comments
Assignees
Labels
bug Something isn't working needs triage

Comments

@MinByeongDon
Copy link

Describe the bug

The following error message is displayed:

image
image

But in "pubspec.yaml" it is defined as "provider: ^6.1.1":

version: 1.0.0+1
environment:
  sdk: '>=3.2.3 <4.0.0'

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  flutter_riverpod: ^2.4.9
  riverpod_annotation: ^2.3.3
  flutter_hooks: ^0.20.3
  intl: ^0.18.1
  provider: ^6.1.1

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^3.0.1
  build_runner: ^2.4.7
  json_serializable: ^6.7.1
  riverpod_generator: ^2.3.9
  riverpod_lint: ^2.3.7
  freezed: ^2.4.6
  custom_lint: ^0.5.11

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.5, on macOS 14.2.1 23C71 darwin-arm64, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.85.1)
[✓] VS Code (version 1.86.0-insider)
[✓] Connected device (2 available)
[✓] Network resources

Expected behavior

It looks like the Provider inspector of DevTools should be connected correctly.
Thanks.

@MinByeongDon
Copy link
Author

I misunderstood that providers from pkg:Riverpod are also displayed.
I have verified that using providers from pkg:Provider works fine and shows up.
image

Please close the issue if you are correct that pkg:Riverpod's providers are not displayed.
Sorry for the hassle. Thanks

@rrousselGit
Copy link
Owner

Indeed, providers from pkg:Riverpod aren't supported. A separate devtool is planned

@Bus42
Copy link

Bus42 commented Jan 31, 2024

@rrousselGit I see this has been marked as completed, but I am experiencing the same issue and I'm not using Riverpod. Here are my env and dependencies in pubspec.yaml:

...
version: 1.0.0+1

environment:
  sdk: ">=3.2.0-42.2.beta <4.0.0"
dependencies:
  flutter:
    sdk: flutter
  google_fonts: ^6.1.0
  flutter_appauth: ^6.0.1
  flutter_dotenv: ^5.0.2
  http: ^1.0.0
  provider: ^6.0.5
  auth0_flutter: ^1.2.1
  flutter_svg: ^2.0.7
  flutter_native_splash: ^2.3.2
  # SDK Package used to interact with the Story Squad API
  story_squad_sdk:
    path: ../story_squad_sdk
    # git:
    #   url: [email protected]:<hidden>.git
    #   ref: dev-staging
  # Game Plugins
  storyflix:
    path: ../storyflix
    # git:
    #   url: [email protected]:<hidden>.git
    #   ref: dev-staging
  clash_of_the_pencils:
    path: ../clash_of_the_pencils_fe
    # git:
    #   url: [email protected]:<hidden>.git
    #   ref: dev-staging

  cupertino_icons: ^1.0.2
  url_strategy: ^0.2.0
  uuid: ^4.1.0
  intl: ^0.18.1

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_launcher_icons: ^0.13.1
  flutter_lints: ^3.0.0
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

3 participants