Skip to content

--dtd-uri (and server-provided storage) doesn't work with "dt serve" when embedded when SSE connection is disabled #9023

@DanTup

Description

@DanTup

While testing in VS Code, I ran DevTools from source using the dart.customDevTools setting. In the log I can see it spawned the server with a --dtd-uri:

[10:37:14 AM] [DevTools] [Info] Spawning D:\Dev\Google\devtools\tool\bin\dt.bat with args ["serve","--machine","--allow-embedding","--dtd-uri","ws://127.0.0.1:65196/IoZPaHuLiGI="]
[10:37:14 AM] [DevTools] [Info] ..  in D:\Dev\Google\devtools
[10:37:14 AM] [DevTools] [Info] ..  with {"toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code","FLUTTER_ROOT":"D:\\Dev\\Google\\Flutter\\Flutter main"},"envOverrides":{"LOCAL_DART_SDK":"D:\\Dev\\Google\\dart-sdk\\sdk","FLUTTER_ROOT":"D:\\Dev\\Google\\devtools\\tool\\flutter-sdk"}}
[10:37:14 AM] [DevTools] [Info]     PID: 13844

However, when I load something like the deeplinks page it doesn't know what my project roots are, and I see this in the console:

No DTD uri provided from the server during initialization.

It looks like in serve.dart this would be passed through to devtools_server/serve_local.dart in the DDS package in the SDK, so it's possible the actual issue is in the SDK, but here seemed like the right place to raise this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions