Make dwds more conformant to vm_service protocol #1370
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See: https://github.com/dart-lang/sdk/blob/master/runtime/vm/service/service.md#getstack
Throw
SentinelExceptionif the isolate id is unrecognizedvm service protocol requires all isolate-related API to return
Sentinelif the isolatehad exited, which translates to throwing
SentinelExceptionin the implementation.Make dwds conform to that spec.
Throw
RPCErrorifgetStackis called when not pausedvm service protocol requires getStack to always return a non-null value or a
sentinel, but dwds is limited by chrome devtools API that do not curently give a
way to get the stack while running. Throw RPC error to indicate that something
unexpected has happened.
Helps: #1369
expecton Futures to useexpectLaterinstead.This makes sure the current test is finished before the next one starts, and
reduces possibilities of flakes.
getStackcalled while running.Closes: #721