question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unfinished statement `Future<List<>>` breaks the IDE

See original GitHub issue

Steps to Reproduce

  • Open android studio
  • Open an existing project
  • Create a new dart file
  • add the following statement Future<List<>> (yes it’s unfinished on the purpose, that’s how it breaks android studio)
  • go to another dart file, try autocompletion (example type fin and hit ctrl+space in order to autocomplete the word final)

The whole IDE completion is now broken - not only that, but also slower and laggy - code analysis is also broken.

  • sometimes it does not break straight away so try to restart the ide as it is (leave in place the unfinished statement in the new file).
  • when android studio restarts, then autocompletion does not work

Now to fix this you need to remove the unfinished statement and to restart the ide again.

Note that I have tried with a few other statement combinations, that also broke the ide. ie:

List<Future<>>
List<List<>>
List<List<List<>>>

Whereas the following do not break:

List<>

Version info

[√] Flutter (Channel stable, 1.20.4, on Microsoft Windows [version 10.0.18362.1082], locale fr-FR)
    • Flutter version 1.20.4 at C:\Users\bob\Documents\flutter
    • Framework revision fba99f6cf9 (5 days ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2


[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\bob\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
scheglovcommented, Sep 25, 2020

It seems to the into the infinite loop in IgnoreInfo.forDart.

image

1reaction
pqcommented, Sep 25, 2020

Thanks for the report @gsouf!

I’m seeing this locally too.

@scheglov: I’m not seeing anything in a quick scan through the logs… Curious if you have any thoughts?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ScalaTest 3.0.2 - javadoc.io
This Future[Assertion] will often represent a test that has not yet completed. As a result, when using a more traditional execution context backed...
Read more >
The Isabelle/Isar Implementation
Synchronization in Isabelle/ML is based on primitives of Poly/ML, which have been adapted to the specific assumptions of the concurrent Isabelle ...
Read more >
First Senior Deputy Comptroller and Chief Counsel. - GovInfo
Therefore, we are now revising the statement in the November 7, 2011, ... to further reduce the burdens in the future. List of...
Read more >
Envision: Reinventing the Integrated Development Environment
integrated development environments (IDEs) such as Eclipse [Ecl] or code editors such as Vim [Vim] to make an application by manipulating structures like ......
Read more >
ED119009.pdf - ERIC
ness, excessive absences or break periods, or reading nonwork-related ... relief of any unfinished work on his tour of duty, including any orders...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found