IntelliJ IDEA doesn't intercept JLine code com

2019-02-18 01:43发布

问题:

I tried to run simple Java application wich is used code completion. When I run it in separate console it works like a charm. But when I try to it via IntelliJ IDEA, then my IDE doesn't intercept code completion actions in debug mode.

I tried to add to my VM options

-Djline.terminal=jline.UnsupportedTerminal

But it doesn't help me.

Maybe there is someone who faced with this problem?

回答1:

 jline.TerminalFactory.registerFlavor(TerminalFactory.Flavor.WINDOWS, jline.UnsupportedTerminal.class);