-
Notifications
You must be signed in to change notification settings - Fork 182
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
IntelliJ Console doesn't seem to be supported on Windows. Pressing enter does not submit the value #185
Comments
The same problem in Eclipse - note I believe it's only a problem in Windows. |
Seem to have narrowed part of the problem to line 156 in WindowsTerminal.java - It just continues in an infinite loop even though I enter some input |
You could try forcing the use of the UnsupportedTerminal instead, or setting jline.WindowsTerminal.directConsole=false as a system property. We may be able to improve the terminal factory detection code. If you want to give it a try, feel free to investigate. |
I used this to force unsupported:
And input works but completion does not. Is that expected behavior of Unsupported terminal? |
The same for Mac OS. See my opened issue. Autocompletion does not work in IDEA terminal when you debugging the code. |
@gnodet I've investigated and I understand why the same issue occurs on windows, the Detection would be nice, but it is not going to solve this issue, that you can't debug in IDEA. I'm going to try and contact people who write IDEA and also look at the source for it here: https://github.com/JetBrains/intellij-community to try to work out what kind of terminal and how we can hook into it with a different |
Any progress on this? |
THere's no way to have completion in the Intellij Console, mainly because Intellij will not transmet any character before hitting the key. Workarounds include:
|
If you are using picocli with jline2. You can delegate the heuristic to picocli which seems better than the jline2 heuristic. The code can looks like : // JLine 2 does not detect some terminal as not ANSI compatible, like Eclipse Console
// see : https://github.com/jline/jline2/issues/185
// So use picocli heuristic instead :
if (!Help.Ansi.AUTO.enabled() && //
Configuration.getString(TerminalFactory.JLINE_TERMINAL, TerminalFactory.AUTO).toLowerCase()
.equals(TerminalFactory.AUTO)) {
TerminalFactory.configure(Type.NONE);
} |
If I run a ConsoleReader in IntelliJ, the input doesn't seem to end on new-line.
The text was updated successfully, but these errors were encountered: