You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sidlatau opened this issue
Jun 15, 2022
· 4 comments
Assignees
Labels
area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.dds-dapDDS issues related to the Debug Adapter Protocol (DAP) implementationpkg-ddsFor issues related to the Dart Development Service
(Ben - we don't have an SDK label for DAP issues; not sure if its useful to have one or not)
bkonyi
added
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
pkg-dds
For issues related to the Dart Development Service
dds-dap
DDS issues related to the Debug Adapter Protocol (DAP) implementation
and removed
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
vm-debugger
labels
Jun 15, 2022
/**
* The debug adapter supports stepping granularities (argument 'granularity')
* for the stepping requests.
*/
supportsSteppingGranularity?: boolean;
I don't think it's very clear from the spec whether this flag not being sent means "the server will ignore it" or "the server doesn't support you sending it" but it may be worth tweaking your DAP client to check this flag before sending it (this is what VS Code seems to do) which may resolve your issue without needing to wait for a Flutter release that includes the fix.
area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.dds-dapDDS issues related to the Debug Adapter Protocol (DAP) implementationpkg-ddsFor issues related to the Dart Development Service
I already registered the issue in flutter/flutter#105856, but maybe here is a more appropriate place.
The problem is with
granularity
property which is provided by DAP client to DAP server. According to DAP specification, it should be a string:https://microsoft.github.io/debug-adapter-protocol/specification#:~:text=number%3B%0A%7D-,SteppingGranularity,-The%20granularity%20of
But flutter debug adapter expects map:
https://github.com/dart-lang/sdk/blob/main/pkg/dds/lib/src/dap/protocol_generated.dart#L3514
For debugging I am using:
https://github.com/akinsho/flutter-tools.nvim
https://github.com/mfussenegger/nvim-dap
Flutter crash report.
command
flutter debug-adapter
exception
_CastError: type 'String' is not a subtype of type 'Map<String, Object?>' in type cast
flutter doctor
The text was updated successfully, but these errors were encountered: