Skip to content

After upgrade spring-shell from 2.0.1 to 2.1.x then to 3.3.x Tab Completion not working anymore #1149

@joanneshen

Description

@joanneshen

Not sure if anyone reported this before.

Before we upgraded spring-shell to 2.1.x (backward-incompatible one), we used to apply the following for tab completion:
public static class CustomCompleterAdapter extends CompleterAdapter {
@OverRide
public void complete(LineReader reader, ParsedLine line, List candidates) {
List oldCandidates = new ArrayList<>();
super.complete(reader, line, oldCandidates);
......// construct candidates based on oldCandidates
}

@bean
public CompleterAdapter myCompleter() {
CompleterAdapter result = new CustomCompleterAdapter();
result.setShell(shell);
return result;
}

However, after upgrade this is partially broken, which means the completion for command seemed fine, but not for the arguement. Any alternative way to use this kind of generic way to achieve tab completion?
In the meantime also try to use the way of annotating ValueProvider for command options, but that is also not fully working (refer to issue #923).

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageTeam needs to triage and take a first look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions