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

[BUG] Type 'User' not found and can't get 0.7.0 since it's incompatible with flutter_quill #238

Closed
Cierra-Runis opened this issue Jan 16, 2023 · 4 comments · May be fixed by #234
Closed
Assignees
Labels
New issue New issue which has not been checked yet

Comments

@Cierra-Runis
Copy link

Cierra-Runis commented Jan 16, 2023

Describe the bug
Can't build apk after using catcher.

/D:/flutter/.pub-cache/hosted/pub.dartlang.org/catcher-0.5.0/lib/handlers/sentry_handler.dart:12:3: Error: Type 'User' not found.
  User? userContext;
  ^^^^
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/catcher-0.5.0/lib/handlers/sentry_handler.dart:12:3: Error: 'User' isn't a type.
  User? userContext;
  ^^^^

/D:/flutter/.pub-cache/hosted/pub.dartlang.org/catcher-0.5.0/lib/handlers/sentry_handler.dart:93:22: Error: Couldn't find constructor 'Message'.
      message: const Message("Error handled by Catcher"),
                     ^^^^^^^
3

FAILURE: Build failed with an exception.

* Where:
Script 'D:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'D:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 11s
Exception: Gradle task assembleDebug failed with exit code 1
Because catcher >=0.7.0 depends on device_info_plus ^7.0.0 and flutter_quill >=6.1.8 depends on device_info_plus ^8.0.0, catcher >=0.7.0 is incompatible with flutter_quill >=6.1.8.
So, because mercurius depends on both flutter_quill ^6.2.1 and catcher ^0.7.0, version solving failed.
pub get failed (1; So, because mercurius depends on both flutter_quill ^6.2.1 and catcher ^0.7.0, version solving failed.)

To Reproduce

Just try the example, and try to use 0.7.0 version of catcher.

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.3.9, on Active code page: 65001

Microsoft Windows [版本 10.0.22621.1105], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.3)
[√] Android Studio (version 2021.3)
[√] VS Code (version 1.74.3)
[√] Connected device (4 available)
[√] HTTP Host Availability

• No issues found!

Catcher version

  • Version: 0.5.0

Smartphone (please complete the following information):

  • Device: iQOO neo5
  • OS: Android 12
@Cierra-Runis Cierra-Runis added the New issue New issue which has not been checked yet label Jan 16, 2023
@MichalOneNav
Copy link

Same here ! Can you update device_info_plus dependency ?

@calcitem
Copy link

It's a pity that the author has rarely updated recently, and this project may be abandoned, so the fastest way to solve the problem is to fork it yourself and maintain it.

@Cierra-Runis
Copy link
Author

Same here ! Can you update device_info_plus dependency ?

I didn't add device_info_plus package at my pubspec.yaml file, it's these two package (catcher and flutter_quill) depending two versions of device_info_plus.

Here what is needed is that catcher's author updating his package.

@ThexXTURBOXx
Copy link
Contributor

Please look through PRs first before posting issues. #234 solves this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New issue New issue which has not been checked yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants