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
Update to ncurses causes sbt to throw an exception on startup #3240
Comments
|
You could try putting the following in but I'm not sure if it would fix because the metabuild still needs to load. |
|
Thanks for the fast reply. Unfortunately, it still throws the exception. I will stay on ncurses version Edit: I forgot to mention the version: I'm using |
|
Thank you @amuttsch for posting this and your reply on StackOverflow. I will watch for developments. Appreciated. :-) |
|
Yeah, I think we'll need a new release of jline. I took the liberty of submitting jline/jline3#127 |
|
Another potential workaround would be putting in the |
|
I also run into this problem with the scala REPL. |
|
Until the jline fixes get push out, you can temporarily "fix" the problem by downgrading ncurses after a Pacman `update: |
|
I found using |
|
jline-2.14.4 is out with the fix |
|
As well as jline-3.3.1 |
A recent ncurses upgrade breaks older jlines. sbt/sbt#3240 (comment)
|
Are there any plans to release updated version with the fix any time soon?
(I can make the PR if needed) |
|
@Rogach A PR would be very helpful. Thank you. |
|
@dwijnand Should I make 2 PRs - one for |
|
That would be even more lovely! Thank you. |
|
Is it possible to force old SBT projects (when SBT version is out of control) use new |
A recent ncurses upgrade breaks older jlines. sbt/sbt#3240
Update jline dependency to 2.14.4 (#3240)
|
It would be great to release a bug-fix version of SBT! |
|
I think well be releasing a 0.13.16-M2 or 0.13.16 shortly, which thanks to @Rogach would have fixed this issue. |
|
@liquidarmour I cannot reproduce your problem. Are you seeing any errors from JLine or anything else? Do you have any global plugins enabled? |
|
@avdv I just checked. Intellij had put plugins in both 0.13 and 1.0 directories. I removed them and tried again. Still no luck. Whatever I type does not appear. There are no errors in the build and no jline errors visible. |
|
Sorry, should be more precise. The |
|
Confirmed that I get the same issue with @liquidarmour 's template. After running |
|
@liquidarmour, @djmcgill do you have any environment variables set? I assume that this does not happen for other SBT tasks like |
|
@avdv I have done some more testing and it appears the problem only occurs when the console exits without user interaction. I do not have TERM set on any of my machines. 3 so far that have seen this problem. The problem exists in all the terminals I have used on multiple OS. It happens in Linux in the standard Mint terminal and in Terminator. On MacOS it happens in the standard terminal and in iterm. If I type So there is definitely a problem when the sbt process exits automatically, and not when the user forces an exit. |
|
Which sbt script are you using? The original or the one from sbt-extras ? Could you run the sbt script with bash in verbose mode: and post the output? |
Note the first run release the terminal properly. The second does not. |
|
Oh, your sbt script is not a symlink to the sbt launcher script, so not much to see here. Could you do the same for the real script? I suspect that there will be a stty call which messes up the terminal after SBT has run... |
|
@liquidarmour @djmcgill SBT 1.0.2 is out, which seems to fix the bug you are seeing: #3507 |
|
I'll update and report back @avdv |
|
OK. Looks like we have made progress. Updating the sbt version in the project fixes the problem. The installed version of 1.0.1 works properly as long as the project has version 1.0.2 :-) @avdv Thanks for your help. |
|
Nicely done @avdv. |
- modify tic/infocmp display of numeric values to use hexadecimal when
they are "close" to a power of two, making the result more readable.
This patch fixes problems with i.a. earlier versions of jline and sbt<0.13.16.
* jline issue: jline/jline2#281
* sbt issue: sbt/sbt#3240
Newer versions of ncurses cause SBT to fail, upgrading to 13.16+ resolves this issue. sbt/sbt#3240
Needed for newer 18.04 Ubuntu boxes! https://stackoverflow.com/questions/44317384/sbt-error-failed-to-construct-terminal-falling-back-to-unsupported sbt/sbt#3240
Fix sbt console crash on ubuntu 18.04 and 20.04, refer to sbt/sbt#3240 (comment)
Due to sbt/sbt#3240 previous patch version of SBT was throwing and exception and not coloring the results properly.
After upgrading
ncurses, startingsbtshows the following error:This is because of a recent update to
ncurses: http://invisible-island.net/ncurses/NEWS.html#index-t20170506steps
I'm using Arch Linux and have ncurses updated from
6.0+20170429-1to6.0+20170527-1. Just runsbtafter installing the newest version and the error will appear.problem
sbtusesjlinefor some terminal stuff.jlineitself uses theinfocmputility provided byncursesto determine terminal capabilities. It didn't expect a hex value and only parsed decimal values. This behaviour was already fixed: jline/jline2@c1b1676sbtshould update itsjlinedependency to include the fix.expectation
sbtshould start without issues.notes
Using sbt version
0.13.15.Is it possible to force
sbtto use a locally compiled version ofjline?Stackoverflow issue: https://stackoverflow.com/q/44317384/2014080
jline issue: jline/jline2#281
The text was updated successfully, but these errors were encountered: