Duplicate characters in Swift repl within Xcode


#1

Hi,

When I build and run swift through Xcode, the terminal duplicates my
input. For example,

var x = 3

becomes:

vvar ar x x = =3 3

When I run the same swift binary through Terminal.app, that doesn't
happen. I also tried a basic test project that reads stdin and it
doesn't have that behavior.

Does anyone have any ideas on how to get the Xcode terminal to behave
properly with the swift repl?

Thanks,
Halen


(Robert Widmann) #2

Apparently this is a known issue <http://www.openradar.me/10660201> with libedit-based CLIs.

~Robert Widmann

ยทยทยท

On May 7, 2017, at 12:46 AM, Halen Wooten via swift-dev <swift-dev@swift.org> wrote:

Hi,

When I build and run swift through Xcode, the terminal duplicates my
input. For example,

var x = 3

becomes:

vvar ar x x = =3 3

When I run the same swift binary through Terminal.app, that doesn't
happen. I also tried a basic test project that reads stdin and it
doesn't have that behavior.

Does anyone have any ideas on how to get the Xcode terminal to behave
properly with the swift repl?

Thanks,
Halen
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev