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

After update to Flutter v1.7.2-pre.12 the app does not work #100

Closed
IvanDreamer opened this issue Jun 5, 2019 · 7 comments
Closed

After update to Flutter v1.7.2-pre.12 the app does not work #100

IvanDreamer opened this issue Jun 5, 2019 · 7 comments
Assignees
Labels
bug Something isn't working high-priority

Comments

@IvanDreamer
Copy link

Hi all,

Today morning I updated Flutter and now cannot start or build my app and following errors come from "flutter_html"

Compiler message:
.../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-0.10.1/lib/html_parser.dart:317:27: Error: The getter 'text' isn't defined for the class 'InlineSpan'.
 - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('.../flutter/packages/flutter/lib/src/painting/inline_span.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'text'.
        if ((w.child.text.text == null || w.child.text.text.isEmpty) &&
                          ^^^^
.../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-0.10.1/lib/html_parser.dart:317:56: Error: The getter 'text' isn't defined for the class 'InlineSpan'.
 - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('.../flutter/packages/flutter/lib/src/painting/inline_span.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'text'.
        if ((w.child.text.text == null || w.child.text.text.isEmpty) &&
                                                       ^^^^
.../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-0.10.1/lib/html_parser.dart:318:27: Error: The getter 'children' isn't defined for the class 'InlineSpan'.
 - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('.../flutter/packages/flutter/lib/src/painting/inline_span.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
            (w.child.text.children == null || w.child.text.children.isEmpty))
                          ^^^^^^^^
.../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-0.10.1/lib/html_parser.dart:318:60: Error: The getter 'children' isn't defined for the class 'InlineSpan'.
 - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('.../flutter/packages/flutter/lib/src/painting/inline_span.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
            (w.child.text.children == null || w.child.text.children.isEmpty))
                                                           ^^^^^^^^
Compiler failed on /Volumes/development/scool/hed/lib/main.dart

FAILURE: Build failed with an exception.

* Where:
Script '.../flutter/packages/flutter_tools/gradle/flutter.gradle' line: 648

* What went wrong:
Execution failed for task ':app:compileflutterBuildDebugandroid-arm'.
> Process 'command '.../flutter/bin/flutter'' 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 17s
Finished with error: Gradle task assembleDebug failed with exit code 1
My flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.7.2-pre.12, on Mac OS X 10.14.4 18E226, locale en-FI)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.3)
[✓] Connected device (1 available)

• No issues found!

Does someone knows how to fix it?

@wsakka
Copy link

wsakka commented Jun 5, 2019

Getting the same issue. Not sure what can be causing it. Just upgraded flutter, I'm on 0.10.1 of this library.

@wsakka
Copy link

wsakka commented Jun 5, 2019

This is my flutter version:

[✓] Flutter (Channel master, v1.7.2-pre.12, on Mac OS X 10.14.4 18E226, locale en-CA)
• Flutter version 1.7.2-pre.12 at /Users/you/flutter
• Framework revision 5948b3d (9 hours ago), 2019-06-04 17:49:15 -0700
• Engine revision 86aa01442b
• Dart version 2.3.2 (build 2.3.2-dev.0.0 b080e7c97a)

@wsakka
Copy link

wsakka commented Jun 5, 2019

I tried downgraded to 0.9.9 and same thing:

[        ] [        ] ->  - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('file:///Users/you/flutter/packages/flutter/lib/src/painting/inline_span.dart').
[        ] [        ] -> Try correcting the name to the name of an existing getter, or defining a getter or field named 'text'.
[        ] [        ] ->         if ((w.child.text.text == null || w.child.text.text.isEmpty) &&
[        ] [        ] ->                           ^^^^
[        ] [   +2 ms] -> file:///Users/you/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-0.9.9/lib/html_parser.dart:289:56: Error: The getter 'text' isn't defined for the class
'InlineSpan'.
[        ] [        ] ->  - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('file:///Users/you/flutter/packages/flutter/lib/src/painting/inline_span.dart').
[        ] [        ] -> Try correcting the name to the name of an existing getter, or defining a getter or field named 'text'.
[        ] [        ] ->         if ((w.child.text.text == null || w.child.text.text.isEmpty) &&
[        ] [        ] ->                                                        ^^^^
[        ] [        ] -> file:///Users/you/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-0.9.9/lib/html_parser.dart:290:27: Error: The getter 'children' isn't defined for the
class 'InlineSpan'.
[        ] [        ] ->  - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('file:///Users/you/flutter/packages/flutter/lib/src/painting/inline_span.dart').
[        ] [        ] -> Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
[        ] [        ] ->             (w.child.text.children == null || w.child.text.children.isEmpty))
[        ] [        ] ->                           ^^^^^^^^
[        ] [        ] -> file:///Users/you/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-0.9.9/lib/html_parser.dart:290:60: Error: The getter 'children' isn't defined for the
class 'InlineSpan'.
[   +1 ms] [   +1 ms] 
[   +1 ms]            Compiler message:
[        ] [   +1 ms] file:///Users/you/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-0.9.9/lib/html_parser.dart:289:27: Error: The getter 'text' isn't defined for the class
'InlineSpan'.

@wsakka
Copy link

wsakka commented Jun 5, 2019

BTW it appears that this issue only occurs on Android. It seems to call .text twice: w.child.text.text

@Sub6Resources
Copy link
Owner

There was a breaking change dealing with TextSpans pushed to the Flutter master channel recently. I believe the change has been reverted, so possibly updating flutter again or switching to an older flutter version. I've been following that particular pull request and I'll report when I know more about whether or not it's causing this issue and if it is a breaking change that's here to stay I'll get an update for this package out ASAP.

@Sub6Resources Sub6Resources self-assigned this Jun 6, 2019
@Sub6Resources Sub6Resources added bug Something isn't working high-priority labels Jun 6, 2019
@Sub6Resources
Copy link
Owner

Sub6Resources commented Jun 6, 2019

I can confirm that this is due to a breaking Flutter change that is currently rolling out. If you are on the master or dev branches of Flutter, temporarily switching to Flutter version 0.7.0 or below should fix this issue for now. I will personally work on fixing this issue within the next week.

@Sub6Resources Sub6Resources pinned this issue Jun 7, 2019
@Sub6Resources
Copy link
Owner

Version 0.10.1+hotfix.1 resolves this issue.

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

No branches or pull requests

3 participants