Skip to content

Commit

Permalink
Bump JLine to 3.15.0, fixes #1098
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn authored and remkop committed Jun 3, 2020
1 parent 6dbaf3a commit d0cbcd5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ allprojects {
compileTestJava.options.encoding = "UTF-8"

repositories {
mavenLocal()
jcenter()
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ivyVersion = 2.4.0
jacocoVersion = 0.8.2
jansiVersion = 1.15
jlineVersion = 2.14.6
jline3Version = 3.14.2-SNAPSHOT
jline3Version = 3.15.0
junitDepVersion = 4.11
junitVersion = 4.12
springBootVersion = 2.2.2.RELEASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
import java.util.function.Supplier;
import java.util.stream.Collectors;

import org.jline.builtins.CommandRegistry;
import org.jline.builtins.Completers.SystemCompleter;
import org.jline.builtins.Options.HelpException;
import org.jline.builtins.Widgets.ArgDesc;
import org.jline.builtins.Widgets.CmdDesc;
import org.jline.console.ArgDesc;
import org.jline.console.CmdDesc;
import org.jline.console.CommandRegistry;
import org.jline.reader.Candidate;
import org.jline.reader.Completer;
import org.jline.reader.LineReader;
import org.jline.reader.ParsedLine;
import org.jline.reader.impl.completer.SystemCompleter;
import org.jline.utils.AttributedString;
import picocli.CommandLine;
import picocli.CommandLine.Help;
Expand Down Expand Up @@ -208,4 +208,9 @@ public Set<String> commandNames() {
public Map<String, String> commandAliases() {
return aliasCommand;
}

@Override
public CmdDesc commandDescription(String command) {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ public static void main(String[] args) {
.build();
builtins.setLineReader(reader);
commands.setReader(reader);
TailTipWidgets ttw = new TailTipWidgets(reader, systemRegistry::commandDescription, 5, TipType.COMPLETER);
ttw.setDescriptionCache(false);
new TailTipWidgets(reader, systemRegistry::commandDescription, 5, TipType.COMPLETER);
KeyMap<Binding> keyMap = reader.getKeyMaps().get("main");
keyMap.bind(new Reference("tailtip-toggle"), KeyMap.alt("s"));

Expand All @@ -195,7 +194,6 @@ public static void main(String[] args) {
} catch (EndOfFileException e) {
return;
} catch (Exception e) {
e.printStackTrace();
systemRegistry.trace(e);
}
}
Expand Down

0 comments on commit d0cbcd5

Please sign in to comment.