repl history brokenΒ #24781
Copy link
Copy link
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Description
Activity
Ping @antsmartian
- addedreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
on Dec 2, 2018 instead of revert, can we put it behind a flag? that would make it easier to do incremental improvements
Reacted by antsmartian@BridgeAR I guess we have already an issue with multilines in the context of template string literals. (On mobile now, couldn't find that.) From the examples I see that's what it's getting affected. Did you see anything else broken apart from template string literals?
Thanks for detailed report.There's also an issue when the code contains a comment:
var obj = { prop: 123, // comment otherProp: 456 }
becomes
var obj = {prop: 123, // commentotherProp: 456}
Basically, anything that relies on line breaks is broken.
Is there no way for us to keep the line breaks? That's what
zshdoes.#24231 - it reports the same as here, so I am going to close this as a duplicate.
Reacted by antsmartian- addedduplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.
on Dec 2, 2018
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Version: latest master
The new multiline history does not fully work as it should. While trying to fix it I ran into further issues, so I decided to just open this issue about it for now.
Example 1:
Example 2:
I suggest to revert this feature for now and to reland with a very decent test coverage for lots of edge cases. What do others think?