-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Possible bug in the debugger #51916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This seems to be specific to the new SDK DAP. Legacy DAP: Log: dap.legacy.txt New SDK DAP: Log: The log includes this error. My guess is that while fetching the fields, one of them is a Sentinel and we're not catching it, so the entire request is failing. We should catch this and only show the error against the field we couldn't evaluate.
|
The issue was the Got a fix for this (and another instance of the same thing for locals/globals) here: https://dart-review.googlesource.com/c/sdk/+/292540 @bkonyi I've bumped the version and updated the changelog. If it's possible you could push a release of DDS after this lands, it'd be great to get this fix into Flutter before the branch (I'll manually roll the package if the @bkonyi as an aside, could |
@DanTup we can probably do that, but we'll need to update the code generator to do this which may be a bit tricky. We've got other fields in other types that have union types that don't consist of only subclasses of Either way, this would be a breaking change and we'd need to do some work to clean up code that is using these dynamic fields without a cast. Can you file a separate issue for this and cc me? |
Ah, I didn't realise it was generated. I have some similar pain in analysis_server (I added an I've filed #51930, thanks! |
Using VS Code, in the file https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/test/src/services/correction/fix/make_final_test.dart, insert the following code just before line 266:
Probably by the time you see this issue the test will have been committed and you can skip the steps above, other than adding the annotation.
Add a breakpoint on the line containing
await assertHasFix
and run the just edited file under the debugger.When the debugger stops, expand
this
in the 'VARIABLES' pane. For me it displayed one field namednode
whose value wastype 'Sentinel' is not a subtype of type 'InstanceRef'
.@bkonyi @DanTup
The text was updated successfully, but these errors were encountered: