Skip to content

Flutter analyze --suggestions does not suggest anything #109830

@Anas35

Description

@Anas35

Idk If it is expected or --suggestions command still work-in progress? while running flutter analyze --suggestions . returns empty box.

Steps to reproduce

  • flutter create .
  • flutter analyze --suggestions . -v

Expected

According to this test we should get

┌──────────────────────────────────────────────┐
│ General Info
│ [✓] App Name: flutter_gallery
│ [✓] Supported Platforms: android, ios, web, macos, linux, windows
│ [✓] Is Flutter Package: yes
│ [✓] Uses Material Design: yes
│ [✓] Is Plugin: no
└──────────────────────────────────────────────┘

Actual

 ┌──┐
 │     
 └──┘
flutter doctor -v [√] Flutter (Channel beta, 3.3.0-0.3.pre, on Microsoft Windows [Version 10.0.19043.1826], locale en-IN) • Flutter version 3.3.0-0.3.pre on channel beta at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 8c11498 (8 days ago), 2022-08-10 12:15:36 -0500 • Engine revision f16e757d5d • Dart version 2.18.0 (build 2.18.0-271.4.beta) • DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:\Users\moham\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.

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

[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2021.2)
• 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 11.0.12+7-b1504.28-7817840)

[√] IntelliJ IDEA Community Edition (version 2022.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.1.4
• 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.70.2)
• VS Code at C:\Users\moham\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.46.0

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

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

On More digging around, In https://github.com/flutter/flutter/blob/4e2b64806927e75a8a5f1223aa6bb6bad2551ea6/packages/flutter_tools/lib/executable.dart#L145#L146 either GeneralInfoProjectValidator or PubDependenciesProjectValidator is called.

Metadata

Metadata

Assignees

Labels

found in release: 3.1Found to occur in 3.1found in release: 3.3Found to occur in 3.3has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions