Skip to content

REPL aggressively uses wrong autocomplete on ENTER #42040

Closed
@spazmodius

Description

@spazmodius

Version

v16.13.0

Platform

Microsoft Windows NT 10.0.19044.0 x64

Subsystem

repl

What steps will reproduce the bug?

When typing into the REPL, autocomplete often predicts identifiers or keywords even when the typed characters are valid. When I hit ENTER (no TAB to accept), then the REPL chooses to use its prediction rather than what I actually typed.

For example, typing

image

then hitting ENTER

image

It's infuriating.

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

I expect to be able to hit TAB to accept the prediction. If I continue to type something else then autocomplete should revise its prediction. If I hit enter, autocomplete should realize its services are no longer needed.

What do you see instead?

> var add = x => y => x+y

followed by ENTER results in

> var add = x => y => x+yield
...

Additional information

No response

Metadata

Metadata

Assignees

Labels

replIssues and PRs related to the REPL subsystem.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions