dart-sdk/pkg/dtd_impl
Dan Chevalier 03f797a85a Solidify dtd lifecycle
- 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>
2024-02-13 16:17:18 +00:00
..
bin Solidify, test and document DTD errors 2024-01-18 16:07:31 +00:00
lib Solidify dtd lifecycle 2024-02-13 16:17:18 +00:00
test Solidify dtd lifecycle 2024-02-13 16:17:18 +00:00
.gitignore
analysis_options.yaml Connecting DTD and DTD_impl together. 2023-12-19 15:36:22 +00:00
CHANGELOG.md
dtd_protocol.md Solidify dtd lifecycle 2024-02-13 16:17:18 +00:00
LICENSE
OWNERS
pubspec.yaml Solidify, test and document DTD errors 2024-01-18 16:07:31 +00:00
README.md Solidify dtd lifecycle 2024-02-13 16:17:18 +00:00

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:

  1. Build the Dart SDK
  • make sure to build with create_platform_sdk
  • e.g. ./tools/build.py create_platform_sdk
  1. 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