flutter / flutter/devtools

Bad autocomplete behavior

Open
#5,269 0 comments 0 reactions 0 assignees View on GitHub
console component P2 screen: debugger
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

There are a few issues in this .gif.

1. As I start to type 'my' I would expect autocomplete to suggest the local variables above as autocompletions.
2. Once I type `myMap` and hit `.`, autocomplete results come up for `myMap`. Once I backspace, these autocomplete suggestions should go away.
3. As I start typing something new, the stale autocomplete results from `myMap` are still showing up when they shouldn't be.
![bad-auto-complete](https://user-images.githubusercontent.com/43759233/219765767-ca2efad6-36b1-4198-8fda-14811e48b6ed.gif)

@elliette @polina-c

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the three autocomplete cases described in the issue and compare them with the attached GIF. Trace the autocomplete implementation responsible for local-variable suggestions and result invalidation; done means local variables are suggested and stale results disappear after backspacing or starting new input.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
devtools
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.