-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.DS_Store shows up in import suggestions on Mac #47562
Comments
I cannot reproduce this, but I'm unaware of any work done in the analyzer recently that would address this... |
@scheglov @bwilkerson are you aware of anything that would have fixed this in the last 18 months (It's a big question, haha, just checking). @navaronbracke does this still occur in a recent version of Dart? Like 2.19? |
I just checked with Dart 2.19.6 and I cannot reproduce it anymore either. |
Well, I don't know why it does not work for you, because I can reproduce it in a unit test. Future<void> test_uri_end() async {
newFile('$testPackageLibPath/.DS_Store', '');
await _checkDirectives(
uriContent: '^',
validator: () {
assertResponse(r'''
suggestions
dart:
kind: import
dart:async
kind: import
dart:async2
kind: import
dart:collection
kind: import
dart:convert
kind: import
dart:core
kind: import
dart:ffi
kind: import
dart:html
kind: import
dart:io
kind: import
dart:isolate
kind: import
dart:math
kind: import
package:
kind: import
package:bar/
kind: import
package:bar/bar01.dart
kind: import
package:foo/
kind: import
package:foo/foo01.dart
kind: import
package:foo/foo02.dart
kind: import
package:foo/foo11.dart
kind: import
package:test/
kind: import
package:test/.DS_Store
kind: import
package:test/test.dart
kind: import
''');
},
);
} |
Oh so it's very possible that VS Code does some filtering. I imagine we should still filter out... any files that don't end in |
Nope, even though it is theoretically possible to import any file, it does not have to be named |
Bug: #47562 Change-Id: I4f575bca1377b8f5065d4c4ff95f326b6a2a168b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296442 Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>
I have a Flutter project on my machine. Let's say is it called
myproject
.When typing an import manually the suggestions include
package:myproject/.DS_Store
..DS_Store
is metadata related stuff and should probably not show up in those suggestions?It is included in the gitignore of the project.
The text was updated successfully, but these errors were encountered: