flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

Flutter 3.24 Breaks Extension Autocomplete

Open illumws opened this issue 1 year ago • 1 comments

In Flutter version 3.24, when using Ctrl + Space to show methods created via extension, the autocomplete displays all locations where the extension is used, rather than just the file where it is declared.

Steps to Reproduce

Create an extension method in a Dart file. Use Ctrl + Space to trigger autocomplete for the extension method. Observe that the autocomplete shows all locations where the extension is used, not just the declaration file.

image

Version info

[√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [versÆo 10.0.22631.3880], locale pt-BR)
    • Flutter version 3.24.0 on channel stable at C:\tools\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (10 days ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\Alessandro\AppData\Local\Android\sdk
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/windows-android-setup for more details.

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

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.10.35027.167
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.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
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)

[√] IntelliJ IDEA Ultimate Edition (version 2024.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4
    • Flutter plugin version 80.0.2
    • Dart plugin version 241.18808

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [versÆo 10.0.22631.3880]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 127.0.6533.100
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 127.0.2651.86

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

illumws avatar Aug 09 '24 16:08 illumws

+1

Getting this issue with GoRouter I'm sure it's due to extension autocomplete issue.

luckycreationsindia avatar Aug 20 '24 06:08 luckycreationsindia

+1

Have been having this issue for a little while. Incredibly frustrating making the autocomplete a hinderance instead of a help

ChristopherLinnett avatar Nov 23 '24 06:11 ChristopherLinnett

+1 All extension autocompletions will have this problem, 3.19.5 will not have this problem

nickie1990 avatar Nov 26 '24 08:11 nickie1990

Is this still an issue? I'm not able to reproduce by adding extensions in two files. If this is still causing problems perhaps someone can post a small project to reproduce.

helin24 avatar Sep 03 '25 22:09 helin24

@helin24 This problem was solved in one of the next available releases. No longer an issue

ChristopherLinnett avatar Sep 05 '25 22:09 ChristopherLinnett

@ChristopherLinnett thanks for updating us

helin24 avatar Sep 08 '25 15:09 helin24