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
{{ message }}
Repository navigation
"Cannot read properties of undefined (reading 'label')" during code completion #4451
2023-03-03 17:49:00.451 [error] [Dart-Code.dart-code] provider FAILED
2023-03-03 17:49:00.451 [error] TypeError: Cannot read properties of undefined (reading 'label')
at shouldTriggerCompletionAgain (/Users/dimannich/.vscode/extensions/dart-code.dart-code-3.60.1/out/dist/extension.js:5474:39)
at LspAnalyzer.<anonymous> (/Users/dimannich/.vscode/extensions/dart-code.dart-code-3.60.1/out/dist/extension.js:5556:25)
at Generator.next (<anonymous>)
at fulfilled (/Users/dimannich/.vscode/extensions/dart-code.dart-code-3.60.1/out/dist/extension.js:5381:58)
at runNextTicks (node:internal/process/task_queues:61:5)
at process.processImmediate (node:internal/timers:437:9)
Something is causing code completions without labels.
Activity
DanTup commentedon Mar 22, 2023
I can reproduce this when invoking completion here:
If I rig the server to
throwwhen this happens, I get this:There's an unnamed extension in that file (
extension on BinaryExpression) which I suspect is the trigger.DanTup commentedon Mar 22, 2023
https://dart-review.googlesource.com/c/sdk/+/290527
[analysis_server] Don't suggest empty extension names in completion
DanTup commentedon Mar 22, 2023
Fixed by dart-lang/sdk@99e630c.