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-13029] REPL doesn't show colon characters #55474

Closed
swift-ci opened this issue Jun 16, 2020 · 7 comments
Closed

[SR-13029] REPL doesn't show colon characters #55474

swift-ci opened this issue Jun 16, 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-13029
Radar None
Original Reporter svanimpe (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 3
Component/s
Labels Bug
Assignee @augusto2112
Priority Medium

md5: c40c0171d84905e9b227405af99a2319

Issue Description:

Try the following with Swift 5.2.4 on Ubuntu 20.04:

var x: Int
var y: Int

The second colon doesn't show for me. It's there, it's just not rendered.

This issue exists with other colons as well and it's really confusing, especially when using the REPL for teaching purposes.

@swift-ci
Copy link
Collaborator Author

Comment by Steven Van Impe (JIRA)

This may be part of a larger issue because the behavior of the REPL changes as soon as this happens. It's as if it changes from insert mode to overwrite mode...

@swift-ci
Copy link
Collaborator Author

swift-ci commented Nov 5, 2020

Comment by Steven Van Impe (JIRA)

This still occurs on 5.3.

Again, I consider this a very important bug because it confuses every single student who doesn't have an instructor nearby to tell them it's just a bug.

@swift-ci
Copy link
Collaborator Author

Comment by Elliott Williams (JIRA)

I haven't dug into this much, but I can't reproduce your example on the swift:5.3 docker image (which is ubuntu 18.04 iirc):

$ docker run --security-opt seccomp=unconfined -it swift swift
Welcome to Swift version 5.3 (swift-5.3-RELEASE).
Type :help for assistance.
  1> var x: Int 
  2. var y: Int

Missing characters in an readline environment sounds like a tty/shell problem. Are you confident this isn't a problem with your shell, a pseudoterminal emulator like tmux, or your terminal app?

@swift-ci
Copy link
Collaborator Author

Comment by Steven Van Impe (JIRA)

emw (JIRA User) I verified this again using the default Terminal app on Ubuntu 20.04 and Fedora 32 with Swift 5.3. I'm using clean vanilla installs here, I didn't change the terminal settings in any way.

The issue may be specific to these terminals/shells (I have no idea) but that doesn't make it any less significant. To an end user, the perception is that the REPL doesn't work, no matter what the underlying cause is.

The issue is also larger than the colon character not showing up. As soon as you execute a line that contains a colon, the behavior of the REPL changes. For example, the backspace key no longer deletes characters.

@swift-ci
Copy link
Collaborator Author

Comment by Steven Van Impe (JIRA)

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

Another user reported this issue as well. It appears that using backspace on all but the first command also triggers this issue.

@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
Copy link
Contributor

Duplicate of https://bugs.swift.org/browse/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