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

non-abstract class 'StethoHttpClientRequest' is missing implementations for HttpClientRequest.abort #39

Open
jasonlewicki opened this issue Sep 3, 2020 · 5 comments

Comments

@jasonlewicki
Copy link

./../Tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_stetho-0.5.0/lib/src/http_client_request.dart:10:7: Error: The non-abstract class 'StethoHttpClientRequest' is missing implementations for these members:
 - HttpClientRequest.abort
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class StethoHttpClientRequest implements HttpClientRequest {
      ^^^^^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:2045:8: Context: 'HttpClientRequest.abort' is defined here.
  void abort([Object? exception, StackTrace? stackTrace]);
       ^^^^^

this is for sdk: ">=2.1.0 <3.0.0"

@jasonlewicki
Copy link
Author

jasonlewicki commented Sep 3, 2020

$ flutter doctor -v
[✓] Flutter (Channel dev, 1.22.0-9.0.pre, on Mac OS X 10.15.6 19G2021, locale en-US)
    • Flutter version 1.22.0-9.0.pre at XXX
    • Framework revision 7a43175198 (6 days ago), 2020-08-28 23:18:04 -0400
    • Engine revision 07e2520d5d
    • Dart version 2.10.0 (build 2.10.0-73.0.dev)


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Platform android-30, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.7, Build version 11E801a
    • CocoaPods version 1.8.4

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.48.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.13.2

[✓] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

@jasonlewicki
Copy link
Author

dart-lang/sdk#41904

@sgehrman
Copy link

same here, I'm on dev channel too.

@jasonlewicki
Copy link
Author

jasonlewicki commented Sep 20, 2020

@sgehrman in the meantime you can use my PR if you'd like:

https://github.com/jasonlewicki/flutter_stetho

pubspec.yaml

flutter_stetho:  
    git:
      url: git://github.com/jasonlewicki/flutter_stetho.git
      ref: master

there's only one method added:
https://github.com/brianegan/flutter_stetho/pull/40/files

@danilofuchs
Copy link

Flutter 1.22 is now on stable and breaks flutter_stetho

https://medium.com/flutter/announcing-flutter-1-22-44f146009e5f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants