dart-lang / dart-lang/webdev

Errors when hovering over enum values in VSCode during debugging

Open
#1,226 1 comment 0 reactions 0 assignees View on GitHub
metadata P3
Dominant language
Dart
Stars
224
Forks
94
Avg merge
4d 3h
Merged PRs (30d)
2

Description

See the issue and repro in https://github.com/Dart-Code/Dart-Code/issues/3082

According to the trace, it looks like dwds fails to find a library reference for `dart:_runtime` during `getObject() `call for `id ("classes|dart:_runtime|_Type")`

To solve this properly we need to communicate the list of implicitly imported libraries from dart_sdk to the debugger:

Part of: https://github.com/dart-lang/webdev/issues/1290

Contributor guide

Open the contributing guide

Research direction

Start with the linked Dart-Code issue and reproduction, then inspect the dwds trace for the getObject() call using id "classes|dart:_runtime|_Type". Trace how dart_sdk's implicitly imported libraries are represented and communicated to the debugger; done means enum values no longer produce hover errors in the linked VSCode debugging reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
devtools, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.