Skip to content

[1.0.0-pre.1] - Compiler errors #251

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

Closed
Larpoux opened this issue Mar 20, 2020 · 3 comments
Closed

[1.0.0-pre.1] - Compiler errors #251

Larpoux opened this issue Mar 20, 2020 · 3 comments

Comments

@Larpoux
Copy link

Larpoux commented Mar 20, 2020

I was using successfully ^1.0.0-pre.1 until this month beginning, but now I have an error message when compiling for iOS.
When I replace flutter_html: ^1.0.0-pre.1 by flutter_html: ^0.11.1, everything runs fine.
But I really, really need furigana/ruby support.
Is this a bug in 1.0.0-pre.1 ?
Is there any date planed to integrate 1.0.0-pre.1 in the master branch ?
Thank you very much for all your work. Furigana on flutter was really missing.

Compiler message:
../../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.14.4/lib/src/picture_stream.dart:88:7: Error: The type 'Diagnosticable' can't be used as supertype.
class PictureStream extends Diagnosticable {
      ^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.14.4/lib/src/picture_stream.dart:192:16: Error: The type 'Diagnosticable' can't be used as supertype.
abstract class PictureStreamCompleter extends Diagnosticable {
               ^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.14.4/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(properties);
          ^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.14.4/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(description);
          ^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
Command PhaseScriptExecution failed with a nonzero exit code
@Larpoux
Copy link
Author

Larpoux commented Mar 20, 2020

I fixed this issue with changing the dependency to flutter_svg in pubspec.yaml :

flutter_svg: ^0.17.3

@Larpoux Larpoux changed the title 1.0.0-pre.1 - Compiler errors [1.0.0-pre.1] - Compiler errors Mar 21, 2020
@marcjoha
Copy link

After a flutter upgrade I'm hit by this as well. The workaround mentioned above doesn't work, I'm getting:

Because flutter_html 1.0.0-pre.1 depends on flutter_svg ^0.14.1 and no versions of flutter_html match >1.0.0-pre.1 <2.0.0, flutter_html ^1.0.0-pre.1 requires flutter_svg ^0.14.1.
So, because my_app depends on both flutter_html ^1.0.0-pre.1 and flutter_svg ^0.17.4, version solving failed.

@red42
Copy link

red42 commented Apr 14, 2020

You can override dependencies in your own project's pubspec.yaml, then you don't need to worry about editing the package's pubspec. This fixes the issue:

dependency_overrides:
  flutter_svg: ^0.17.4

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

No branches or pull requests

4 participants