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
repl: internal repl's autocomplete is disruptive without inspector #40635
Linux foo 5.4.0-58-generic 64~18.04.1-Ubuntu SMP Wed Dec 9 17:11:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
repl
What steps will reproduce the bug?
Compile node with --without-inspector, then start up the internal repl:
$ node
Welcome to Node.js v16.13.0.
Type ".help" for more information.
> const r = 10;
undefined
Now type r and press enter in the repl to have the repl display the value of r. You will find it instead forces the autocompletion of r to re and thus gives (the expected):
Uncaught ReferenceError: re is not defined
Pressing space after r and then enter in the repl causes the autocomplete to no longer complete and correctly shows the value of r.
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior?
For the repl to not be disruptive when node is compiled with --without-inspector.
Activity
repl: fix disruptive autocomplete without inspector
repl: fix disruptive autocomplete without inspector
repl: fix disruptive autocomplete without inspector
repl: fix disruptive autocomplete without inspector