Flutter projects are excluded if analysis_options exclusions begin with /**
See original GitHub issueDescribe 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
- Update to 3.46.0
- Open a Flutter project using Flutter version from FVM
- 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
When open one file in this Flutter project, show me this instead Flutter 3.0.5:
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:
- Created a year ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A better fix shipped in v3.46.1.
Re-opening this as I’m going to ship a better fix that doesn’t handle
**
so badly.