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.

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

See original GitHub issue

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
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
DanTupcommented, Aug 3, 2022

A better fix shipped in v3.46.1.

2reactions
DanTupcommented, Aug 3, 2022

Re-opening this as I’m going to ship a better fix that doesn’t handle ** so badly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customizing static analysis - Dart
Here's a sample analysis options file: include: package:lints/recommended.yaml analyzer: exclude: [build/**] language: strict-casts: true strict-raw-types: ...
Read more >
How to exclude a file from analyzing by Android Studio for a ...
A workaround is to use a file extension like 'txt' instead of 'dart', but that is not great. I tried marking the file...
Read more >
Introducing package:flutter_lints - Flutter documentation
The package:flutter_lints defines the latest set of recommended lints that encourage good coding practices for Flutter apps, packages, and plugins. Projects ...
Read more >
Analyzer plugin only scaned and reported the opened files in IDE ...
I just learned to add a custom analyze plugin to my test project, ... If I remove the analysis options file I get...
Read more >
Code Analysis & Linting in Flutter and Dart - Medium
Secondly, we can exclude files and folders from the checking system. Moreover, we can ignore specific rules.
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