Skip to content

Flutter projects are excluded if analysis_options exclusions begin with /** #4083

@mdeandrea-mrmilu

Description

@mdeandrea-mrmilu

Describe the bug

When update to version 3.46.0 and has a FVM config in my machine, the Dart Code extension only found a Dart SDK from FVM and don't found a Flutter SDK

To Reproduce
Steps to reproduce the behavior:
0. Has installed a FVM

  1. Update to 3.46.0
  2. Open a Flutter project using Flutter version from FVM
  3. Error: Dart code don't found the Flutter SDK, only de Dart SDK

Expected behavior

Found Flutter SDK when has a Flutter project and a FVM config

Screenshots

Screenshot 2022-08-03 at 08 40 36

When open one file in this Flutter project, show me this instead Flutter 3.0.5:
Screenshot 2022-08-03 at 08 41 59

Please complete the following information:

  • Operating System and version: MacOS Monterey 12.4
  • VS Code version: 1.69.2
  • Dart extension version: 3.46.0
  • Dart/Flutter SDK version: 2.17.6 / 3.0.5
  • Target device (if the issue relates to Flutter debugging):

VS Code config (only related to Dart Code extension):

{
    "[dart]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.selectionHighlight": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets"
    },
    "dart.flutterSdkPath": ".fvm/flutter_sdk",
    "dart.flutterSdkPaths": [
        "/Users/Matias/fvm/versions"
    ],
    "search.exclude": {
        "**/.fvm": true
    },
    "files.watcherExclude": {
        "**/.fvm": true
    },
    "dart.showInspectorNotificationsForWidgetErrors": false,
    "dart.debugExternalPackageLibraries": false,
    "dart.debugSdkLibraries": false,
    "dartImport.fixOnSave": true,
    "dartImport.showInfoMessages": false,
    "dart.previewFlutterUiGuides": true,
    "dart.showIgnoreQuickFixes": false,
    "dart.flutterOutline": false,
    "dart.renameFilesWithClasses": "prompt",
    "dart.warnWhenEditingFilesOutsideWorkspace": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions