-
Notifications
You must be signed in to change notification settings - Fork 340
Description
Describe the bug
Opening a file in VSCode using File:open and selecting the file works fine if there is no analysis_options.yaml present.
If I create a dart file in a directory, with an analysis_options.yaml file next to it (contents don't seem to matter), and then use File:open to open that file from VSCode (without there already being a folder open) then I get the following error:
[Error - 4:27:32 PM] Request textDocument/documentSymbol failed.
Message: File is not being analyzed
Code: -32007
/Users/leafp/tmp/example.dart
[Error - 4:27:32 PM] Request textDocument/colorPresentation failed.
Message: File is not being analyzed
Code: -32007
/Users/leafp/tmp/example.dart
To Reproduce
See above.
Expected behavior
Either no error (ideally) or an error message that tells me how to resolve the issue.
Screenshots
Upon request.
Please complete the following information:
Please complete the following information:
-
Operating System and version: Darwin leafp-macbookpro2.roam.internal 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64
-
VS Code version:
Version: 1.66.2 (Universal)
Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
Date: 2022-04-11T07:49:20.994Z (4 days ago)
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Darwin arm64 21.4.0 -
Dart extension version: v3.38.2
-
Dart/Flutter SDK version: Dart SDK version: 2.18.0-edge.5910da4f021fd6c52359d43dc76f93bc11f492d3
-
Target device (if the issue relates to Flutter debugging): N/A