dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
213 stars 75 forks source link

Errors when hovering over enum values in VSCode during debugging #1226

Open annagrin opened 3 years ago

annagrin commented 3 years ago

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

annagrin commented 3 years ago

The issue is caused by missing implicit imports: dart-lang/sdk#45477, needs app-level metadata to resolve properly. Working on a workaround for now (creating the missing metadata manually in the debugger).