Find a file
Konstantin Shcheglov f7ef66f5b0 Issue 33412. Fix for race condition in knownFiles during search.
In theory discoverAvailableFiles() should wait for all possibly known
files to be discovered. But I think it is still possible to get the
set of known files changed, e.g. when are asking asynchronoiusly for
getIndex() and the user open a file that is not yet part of any driver.

Only the second hunk of the change (inside subtypes()) is required for fixing
the issue, the crucial change is toList() invocation. The switch from
_driver.knownFiles to _driver.fsState.knownFiles is done to avoid one extra
lookup for FileState.

The first hunk (inside declarations()) is done just for consistency.


Fixes https://github.com/dart-lang/sdk/issues/33412

R=paulberry@google.com

Change-Id: I652ef7a156eba4bf0298c7e863dcef2b7c9f2b0e
Reviewed-on: https://dart-review.googlesource.com/60142
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-13 21:49:14 +00:00
.github Add an issue template to the SDK 2018-04-05 13:05:09 +00:00
build [build] Enable PIE on non-IA32 Linux. 2018-06-11 23:27:45 +00:00
client Remove old annotated_steps buildbot scripts and dispatcher 2017-05-23 16:17:02 +02:00
docs Fix bad merge in spec. 2018-06-13 13:32:00 +00:00
pkg Issue 33412. Fix for race condition in knownFiles during search. 2018-06-13 21:49:14 +00:00
runtime [vm] Reduce maximum new generation size and growth rate. 2018-06-13 20:50:34 +00:00
samples [infra] Keep comments intact when updating status files. 2018-04-10 19:03:21 +00:00
samples-dev Remove the retype method. 2018-06-12 14:36:09 +00:00
sdk Added support for members of type Promise. 2018-06-13 18:20:53 +00:00
tests Fix test and expected failure. 2018-06-13 21:19:27 +00:00
third_party [vm] Roll tcmalloc forward 2018-05-15 21:07:57 +00:00
tools [infra] Remove obsolete signcla verifier from CQ 2018-06-13 20:14:42 +00:00
utils Record dependencies via CompilerContext 2018-06-13 20:49:54 +00:00
.clang-format VM: Re-format to use at most one newline between functions 2017-07-13 08:08:37 -07:00
.gitattributes [infra] Add config for custom hunk text when using git diff on status files 2018-05-31 13:56:45 +00:00
.gitconfig [infra] Add documentation to .gitconfig 2018-06-11 18:24:16 +00:00
.gitignore Git ignore vscode project files. 2017-03-23 15:26:06 -07:00
.gn Starting work on full GN build 2016-09-23 07:47:36 -07:00
.mailmap
.packages Add build_integration package and move multi_root_file_system there. 2018-05-22 20:09:24 +00:00
AUTHORS
BUILD.gn [observatory] Top-level observatory_archive rule copies to root_out_dir 2018-06-04 21:35:39 +00:00
CHANGELOG.md [release] Prepare changelog for 2.0.0-dev.62.0 2018-06-13 14:39:56 +00:00
codereview.settings Update codereview.settings to Gerrit (dart-review.googlesource.com) 2017-09-04 12:52:09 +00:00
dartdoc_options.yaml Add a 'Core' category for doc generation. 2018-06-07 14:47:41 +00:00
DEPS Update pub to the latest 2018-06-12 19:53:49 +00:00
LICENSE Remove the Dromaeo and TodoMVC samples. 2016-01-11 13:09:26 -08:00
PATENTS
PRESUBMIT.py Fix presubmit on Windows. Dart executable is not called .bat 2018-05-02 08:40:59 +00:00
README.dart-sdk
README.md [gardening] Whitespace change to trigger bots. 2017-04-28 10:08:58 -07:00
WATCHLISTS Update WATCHLISTS to get notifications about changes in kernel and pkg/vm 2018-06-11 18:29:29 +00:00

Dart

Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.

Using Dart

Visit the dartlang.org to learn more about the language, tools, getting started, and more.

Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.

Building Dart

If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.

There are more documents on our wiki.

Contributing to Dart

The easiest way to contribute to Dart is to file issues.

You can also contribute patches, as described in Contributing.

License & patents

See LICENSE and PATENTS.