Open jamesfredley opened 1 month ago
@jamesfredley Where are you getting this error?
@matrei I was before https://github.com/grails/grails-core/pull/13801#pullrequestreview-2386404521. I also ran into it back when consolidating the versions into gradle.properties and went with jansi 1.18 then as well, due to this error.
jansi:2.0.0-2.4.1 all trigger it with jline:jline:2.14.6
I think https://github.com/grails/grails-core/pull/13805#issuecomment-2432326411 would help avoid OS specific situations when apply updates from dependabot.
Jline 3.27.1 is the current version.
implementation "org.jline:jline:3.27.1"
https://github.com/jline/jline3
t's definitely not a drop-in replacement. During development, I haven't considered compatibility as a goal at all, so I changed a lot of APIs. The package have been renamed, a lot of new interfaces have been introduced for various features (Parser, Highlighter...). The completers have changed also to support description, coloring, complete/incomplete, with one main difference is that the completers can return all possibilities, as the console reader will find matching candidates within that list. Obtaining a terminal can be done using:
Terminal terminal = TerminalBuilder.builder()
// further customization
.builder();
And the reader using:
LineReader reader = LineReader.builder()
.terminal(terminal)
// further customization
.build();
Reading lines is done in the same way using the various readLine() methods. https://groups.google.com/g/jline-users/c/ebQxEFUVkKs
More upgrade discussion: https://groups.google.com/g/jline-users/c/PEWgDPSOUt4/m/2qU63kgWDAAJ
https://github.com/grails/grails-core/pull/13474 trigged this issue and it was resolved for now, by https://github.com/grails/grails-core/pull/13801#pullrequestreview-2386404521
https://mvnrepository.com/artifact/jline/jline/2.14.6 is not compatible with https://mvnrepository.com/artifact/org.fusesource.jansi/jansi/2.4.1
Moving to https://mvnrepository.com/artifact/org.jline/jline/3.0.0 - https://mvnrepository.com/artifact/org.jline/jline/3.27.1 will require a rewrite of:
Issue description