Repository navigation
pasting tab-indented code into the repl wrongly triggers autocomplete #5954
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Description
Activity
- addedreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
on Mar 30, 2016 Looks like it's activating tab-complete.
I think it shouldn't be too difficult to fix.
- addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Mar 30, 2016 - changed the title
[-]'Cannot read property 'outputStream' of undefined' when pasting js into nodejs interactive promt[/-][+]pasting tab-indented code into the repl wrongly triggers autocomplete[/+]on Mar 30, 2016 @Fishrock123 I can take this issue, but I'm not totally understand, how to reproduce this issue. Is there some code to reproduce this issue ?
UPD: As I understand, when you paste Tab symbols, Node is thinking that you have pressed this button instead of pasting it.
@ghaiklor GitHub turns the tabs into spaces for code blocks, copy this: https://github.com/proxy/gist.github.com/Fishrock123/0c6aeb910948a3f2d844736918e6b187
@Fishrock123 got it, thanks.
- removedgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Mar 31, 2016 Removed the good first contribution label on account of @ghaiklor picking up the glove and taking a stab at it :)
eljefedelrodeodeljefe commented
on Apr 29, 2016 ContributorMore actionsIs someone moving forward with a patch?
@eljefedelrodeodeljefe yes, PR is on review - #5958
- added a commit that references this issue
on May 17, 2016 - added 5 commits that reference this issue
on Jul 11, 2016 - added a commit that references this issue
on Jul 27, 2026
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
If you run node and then paste some script that contains tabs for indentation then node will exit with an exception:
make sure that this piece contains tabs for indentation and paste it into node interactive shell. On tab char it will print lots of bs suggestions and then at the end:
Surprisingly, if you have only one line inside test function above, then it doesn't throw. Also, on each tab node will print huge pile of suggestions. It would be nice if it could detect that extra chars follow the tab immediately and avoid showing suggestions. I get identical behavior with nodev4 on win, and nodev5 on ubuntu.