SBT Error: “Failed to construct terminal; falling back to unsupported…”

后端 未结 10 872
别跟我提以往
别跟我提以往 2020-12-13 03:20

I have run into an ERROR with SBT today. It can best be shown with the sbt sbt-version command:

Run on 5/29/17:

eric@linux-x2vq:~$ sbt s         


        
10条回答
  •  不思量自难忘°
    2020-12-13 03:52

    One year passed... now it happened to me.


    So, ncurses did change, and the corresponding sbt part was ...I guess... probably only implemented based on random guessed tests and observations/bugs and not any spec nor RFC. (So far, sbt is the only program with this ncurses issue that I know of.)

    In case you can't simply upgrade sbt nor downgrade ncurses, you could change the TERM environment variable as mentioned in the other answers.

    trivial fix:

    If your sbt script is some bash script (most likely, unless you run DOS' .bat files)

    $ file /usr/bin/sbt
    /usr/bin/sbt: Bourne-Again shell script, ASCII text executable
    

    , then it might suffice to add this workaround:

    TERM="${TERM/xterm-256color/xterm-color}"
    

提交回复
热议问题