Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13885] REPL doesn't show certain characters, doesn't show inserted characters, and shows deleted characters on line 2 onwards #56283

Closed
swift-ci opened this issue Nov 21, 2020 · 7 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13885
Radar None
Original Reporter Andreas (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Ubuntu 20.10

Swift 5.3.1 (signature verified)

Additional Detail from JIRA
Votes 3
Component/s
Labels Bug
Assignee @augusto2112
Priority Medium

md5: 362c7e17337d3a8d0dd9a575948a9d5d

Issue Description:

On the second line of the REPL, after typing e.g. import Foundation on line 1, my {{}}} characters are not visible when typed (but they're still there), my backspace edits are not visible (characters are still visible, but not really there), and moving the caret with arrow keys and inserting characters in the middle of the line has no visible effect except moving the caret forwards.

  • All edits become visible after evaluating the line.

  • The symptoms are not present on line 1.

According to the autor of this bug the symptoms are the same, but it appears I'm triggering it no matter what I type on line 1.

Forum thread: https://forums.swift.org/t/repl-characters-dont-show-up-backspace-doesnt-remove-them-inserted-text-not-visible/42206/

@swift-ci
Copy link
Collaborator Author

Comment by Steven Van Impe (JIRA)

Is this the cause?
https://forums.swift.org/t/swift-repl-utf-8-keyboard-support/50199/2

@augusto2112
Copy link
Contributor

svanimpe (JIRA User) sorry! I fixed this in March (https://reviews.llvm.org/rG075de2d8a7567a6a39e8477407960aa2545b68c2), but I forgot to do the last step, which was to cherry-pick this to swift's branch. I'll do that ASAP.

@swift-ci
Copy link
Collaborator Author

Comment by Steven Van Impe (JIRA)

This issue still exists with Ubuntu 21.04 and Swift 5.4.2.

@augusto2112 Did your fix already make it in?

@swift-ci
Copy link
Collaborator Author

Comment by Andreas Öhrén (JIRA)

That's unfortunate.

Does Swift support 21.04 now? I've tried that without success. Can't find a mention of it

@swift-ci
Copy link
Collaborator Author

Comment by Steven Van Impe (JIRA)

I'm using https://swiftlang.xyz/public/ for Ubuntu now.

@augusto2112
Copy link
Contributor

Hi! Sorry for the late reply. The fix made it into the current rebranch from llvm.org (branch {{stable/20210726 }}if you want to test it out. The matching swift branch is rebranch).

This will eventually become swift/main and releases will be available for testing if you want to wait.

@augusto2112
Copy link
Contributor

Duplicate of https://bugs.swift.org/browse/SR-15369.

I'm marking these as dups so we can concentrate the discussion on a single issue. It has been fixed on main for a while, but unfortunately i missed the window to cherry-pick it into 5.5. If you're able to, please download the main snapshot on https://www.swift.org/download/, verify if it's working for you and letting me know on the SR-15369.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

2 participants