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-11281] Swift REPL: Cannot access command history #4330

Open
swift-ci opened this issue Aug 9, 2019 · 2 comments
Open

[SR-11281] Swift REPL: Cannot access command history #4330

swift-ci opened this issue Aug 9, 2019 · 2 comments
Assignees
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented Aug 9, 2019

Previous ID SR-11281
Radar None
Original Reporter palle (JIRA User)
Type Bug
Environment

Apple Swift version 5.1 (swiftlang-1100.0.266.1 clang-1100.0.32.1)

Additional Detail from JIRA
Votes 4
Component/s LLDB for Swift
Labels Bug
Assignee @JDevlieghere
Priority Medium

md5: 4c6fb2b8a68d33bbf6440b90abeea702

Issue Description:

Since Swift 5.1, it is no longer possible to go through the command history in the REPL by pressing the up/down arrow keys. It is only possible to recall the most recent command.

Steps to reproduce:

  1. Open a terminal

  2. Type in swift and press return to start the REPL

  3. Type in the following:

    func foo() {}
    func bar() {} 
  4. Press the up arrow key twice

Expected results:

The current input should be

func foo() {} 

Actual results:

The current line input is

func bar() {} 

Further notes:

Pressing the down arrow after pressing the up arrow results in a command from a previous sessions being shown.

@jepers
Copy link

jepers commented Feb 13, 2020

Pressing tab for code completion is not working anymore either.

@benrimmington
Copy link

REPL history (up/down arrows) and code completion (tab key) appear to be fixed in the Swift 5.2 REPL (after installing Xcode 11.4).

LLDB history (i.e. :help command history) doesn't work in REPL mode. For example, :command history prints nothing, and :-2 in history.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

3 participants