mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:51:18 +00:00
03f797a85a
- devtools server can now take the dtd uri as a parameter on startup - dtdUri is passed to the server handler so that devtools can request it. - FileService is implemented inside the Dart Tooling Daemon (dtd_impl) - Added FileService.setProjectRoots - Added unit tests and rpc exceptions - on startup dtd now prints { uri, secret } so that the caller has the secret that allows them to call FileService.setProjectRoots Fixes: https://github.com/dart-lang/sdk/issues/54790 Change-Id: I7a66aca2f8f06f6a611a46c727a9d5c2485fbe3e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/346922 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Dan Chevalier <danchevalier@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
test | ||
.gitignore | ||
analysis_options.yaml | ||
CHANGELOG.md | ||
dtd_protocol.md | ||
LICENSE | ||
OWNERS | ||
pubspec.yaml | ||
README.md |
Dart Tooling Daemon
The server implementation for the Dart Tooling Daemon. This is meant to be run by our internal tooling and facilitates communication between our internal tools.
For details on the protocol used to communicate with the Dart Tooling Daemon see The DTD Protocol
Running the Dart Tooling Daemon
Compiled version
To run the tooling daemon compiled with the Dart SDK:
- make sure to build with
create_platform_sdk
- e.g.
./tools/build.py create_platform_sdk
- run
dart tooling-daemon
:info The dart binary should be the one you just built in step 1.
Testing changes
To quickly test changes to the tooling daemon, start it by running:
dart run bin/dtd.dart