flutter icon indicating copy to clipboard operation
flutter copied to clipboard

Analysis crashes when using an excessive amount of nested parentheses

Open Clavum opened this issue 3 years ago • 0 comments

Steps to reproduce: Type an excessive amount of unnecessary nested parenthesis:

int test = (((((((((((((((10)))))))))))))));

Result: After typing 12 sets of parenthesis (at least on my machine), analysis begins to become unstable and the IDE freezes on any edit. Adding additional parenthesis makes it become worse, until the IDE is entirely unresponsive.

Note: Whether unnecessary_parenthesis is active or not has no effect.

Doctor

[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.19045.2486], locale en-US) • Flutter version 3.3.10 on channel stable at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 135454af32 (8 weeks ago), 2022-12-15 07:36:55 -0800 • Engine revision 3316dd8728 • Dart version 2.18.6 • DevTools version 2.15.0 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at C:\Users\Joseph\AppData\Local\Android\sdk • Platform android-33, build-tools 33.0.1 • Java binary at: C:\Program Files\Common Files\Oracle\Java\javapath\java.exe • Java version Java(TM) SE Runtime Environment (build 13.0.1+9) • All Android licenses accepted.

[√] Chrome - develop for the web • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.4) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.2.32602.215 • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (version 2022.1) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart X Unable to find bundled Java version. • Try updating or re-installing Android Studio.

[√] IntelliJ IDEA Community Edition (version 2020.2) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2 • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart

[√] VS Code (version 1.57.0) • VS Code at C:\Users\Joseph\AppData\Local\Programs\Microsoft VS Code • Flutter extension can be installed from: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2486] • Chrome (web) • chrome • web-javascript • Google Chrome 109.0.5414.120 • Edge (web) • edge • web-javascript • Microsoft Edge 107.0.1418.42

[√] HTTP Host Availability • All required HTTP hosts are available

! Doctor found issues in 1 category.

Clavum avatar Feb 12 '23 01:02 Clavum