-
Notifications
You must be signed in to change notification settings - Fork 335
Closed
Labels
in debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsis bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Description
Describe the bug
When debugging, I get an error if I try to inspect the value of lists that contain a null value.
To Reproduce
Create main.dart with the following code:
void main() {
final List<String?> myList = [null];
print(myList.length);
}Set a breakpoint at the print statement and debug the code.
Hover over myList either in the code pane or the debug sidebar.
VS Code displays an error: type 'Null' is not a subtype of type 'Response' in type cast
Expected behavior
You see the value of the list [null]
Please complete the following information:
Workspace Environment
Dart Code extension: 3.75.20231009
Flutter extension: 3.74.0 (not activated)
App: Visual Studio Code
App Host: desktop
Version: win 1.83.0
Workspace type: Unknown (Dart SDK) (LSP)
Dart (3.1.3): C:\tools\dart-sdk
Flutter (undefined): undefined (No device)
Output from 'dart info'
C:\tools\dart-sdk\bin\dart.exe info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
- Dart 3.1.3 (stable) (Tue Sep 26 14:25:13 2023 +0000) on "windows_x64"
- on windows / "Windows 10 Home" 10.0 (Build 22621)
- locale is en-US
Process info
| Memory | CPU | Elapsed time | Command line |
|---|---|---|---|
| 361 MB | -- | dart.exe | |
| 103 MB | -- | dart.exe | |
| 386 MB | -- | dart.exe | |
| 47 MB | -- | dart.exe | |
| 293 MB | -- | dart.exe | |
| 378 MB | -- | dart.exe | |
| 148 MB | -- | dart.exe | |
| 85 MB | -- | dart.exe |
Metadata
Metadata
Assignees
Labels
in debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsis bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
