Skip to content
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

Tab Completion doesn't work in Intellij #227

Closed
mtj8033 opened this issue Jul 10, 2018 · 12 comments
Closed

Tab Completion doesn't work in Intellij #227

mtj8033 opened this issue Jul 10, 2018 · 12 comments

Comments

@mtj8033
Copy link

mtj8033 commented Jul 10, 2018

Tab Completion doesn't work in Intellij, is there anyway to make it work?

@niklasastrom
Copy link

@mtj8033 I recently figured out the same, did you get it to work?

@mtj8033
Copy link
Author

mtj8033 commented Aug 30, 2018

Nope never got it working

@dbrimley
Copy link

+1 to get this fixed

@justin-wesley
Copy link

Without looking into anything, isn't this something that would fall on JetBrains, and not Spring Shell? When launching a Spring Shell app in Intellij, the terminal is not available. You may notice the output:

org.jline : Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

This to me seems like an issue on Intellij's side since the output from the Debug or Run execution isn't in an actual terminal.

@justin-wesley
Copy link

@mtj8033 Just curious, does this work in Eclipse or Spring Tool Suite?

@justin-wesley
Copy link

@mtj8033 Just curious, does this work in Eclipse or Spring Tool Suite?

Just checked and Eclipse has the same issue.

@res1st
Copy link

res1st commented Jun 17, 2019

it only works if I start my application with java -jar, not in Eclipse.
I also didn't find a way to make it work. :-(

I wrote a small script that makes mvn clean install and executes the result with java -jar

@jvalkeal
Copy link
Contributor

We're doing housekeeping in issues and closing ones which are potentially stale due to recent changes in a project. We are now more up to date with Spring Boot starting with release 2.1.0 and work in 3.x making shell compatible with Spring Framework 6 and Spring Boot 3.

If you think issue should not have been closed, try to re-open or open a new issue with updated info.

@jschavey
Copy link

Can confirm this remains an issue with Spring Shell v2.1.1 and IntelliJ 2022.

@alan-wint
Copy link

Does not work in Spring Shell 3.0.1 and IntelliJ 2023.1.3
I get org.jline : Unable to create a system terminal, creating a dumb terminal

@zthreefires
Copy link

Does not work in Spring Shell 3.0.1 and IntelliJ 2023.1.3
I get org.jline : Unable to create a system terminal, creating a dumb terminal

Hi , have you solved the problem?

@dkamenov
Copy link

dkamenov commented Oct 13, 2023

I just ran into this issue while running in a Docker container via docker exec -it my-container bash and then running the spring-shell (2.1.12) application. After enabling DEBUG, I get

2023-10-13 17:37:55.387  WARN 2260 --- [           main] org.jline                                : input is tty: {}true
2023-10-13 17:37:55.388  WARN 2260 --- [           main] org.jline                                : output is tty: {}true
2023-10-13 17:37:55.388  WARN 2260 --- [           main] org.jline                                : error is tty: {}true
2023-10-13 17:37:55.393  WARN 2260 --- [           main] org.jline                                : Creating a dumb terminal

java.lang.IllegalStateException: Unable to create a terminal
        at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:375) [jline-3.23.0.jar!/:na]
        at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:314) [jline-3.23.0.jar!/:na]

<...details omitted....>
        Caused by: java.io.IOException: Error executing 'tty': not a tty
                at org.jline.utils.ExecHelper.exec(ExecHelper.java:41)
                at org.jline.terminal.impl.ExecPty.current(ExecPty.java:42)
                ... 124 common frames omitted

2023-10-13 17:37:55.464 DEBUG 2260 --- [           main] org.jline                                : Using terminal DumbTerminal

Bash autocompletion works just fine in this shell.

[myuser@72601bb05878 ~]$ echo $TERM
xterm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants