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
NumberFormatException when parsing terminal capabilities
#281
Comments
|
Out of curiosity, what's your OS ? |
|
OS X "El Capitan", 10.11.6. In fact everything was just fine until recently and I don't know what exactly changed. |
|
Aha, it's MacPorts' |
|
This change to |
|
Fwiw, I've just released JLine 2.14.4 to fix this issue. |
|
FYI ran into same issue with arch linux (and fish shell): An workaround for this issue before bugfix is setting |
|
Same for me on Arch Linux with screen in 256 colors: I switched the TERM to screen instead of screen-256color |
|
Yes, the output has been changed from colors#256 to colors#0x100 ...
The jline code needs to be adapted. If someone could provide a patch...
Guillaume Nodet
Le mer. 16 août 2017 à 09:06, Cecile Tonglet <notifications@github.com> a
écrit :
Same for me on Arch Linux with screen in 256 colors:
# Reconstructed via infocmp from file: /usr/share/terminfo/s/screen-256color
screen-256color|GNU Screen with 256 colors,
am, km, mir, msgr, xenl,
colors#0x100, cols#80, it#8, lines#24, pairs#0x7fff,
I switched the TERM to screen instead of screen-256color
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#281 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAFINjm5d0sus77HgS9SCM57c-2pqoW5ks5sYqLtgaJpZM4NqILD>
.
--
-----------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration
Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/
|
|
Hmmm.... I would gladly change it if the code change is quite obvious but I have never done anything in Java... |
|
I'm in vacation. This problem has actually already been fixed and released in jline 2.14.4. |
|
The terminfo spec says integer values can have any format allowed for C literals, perhaps it would be a good idea to allow octal (and maybe binary) encoding as well? https://lists.gnu.org/archive/html/bug-ncurses/2017-06/msg00001.html |
- 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
Upgrade sqlline to 1.4.0 to fix julianhyde/sqlline#75 and the underlying issue jline/jline2#281. Change-Id: If2e53aa457f4ba1c9f2834ba11e46240a9ef4eb1
Upgrade sqlline to 1.4.0 to fix julianhyde/sqlline#75 and the underlying issue jline/jline2#281.
Upgrade sqlline to 1.4.0 to fix julianhyde/sqlline#75 and the underlying issue jline/jline2#281.
…-shell from Mac terminal ## What changes were proposed in this pull request? When starting spark-shell from Mac terminal (MacOS High Sirra Version 10.13.6), Getting exception [ERROR] Failed to construct terminal; falling back to unsupported java.lang.NumberFormatException: For input string: "0x100" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at jline.internal.InfoCmp.parseInfoCmp(InfoCmp.java:59) at jline.UnixTerminal.parseInfoCmp(UnixTerminal.java:242) at jline.UnixTerminal.<init>(UnixTerminal.java:65) at jline.UnixTerminal.<init>(UnixTerminal.java:50) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at jline.TerminalFactory.getFlavor(TerminalFactory.java:211) This issue is due a jline defect : jline/jline2#281, which is fixed in Jline 2.14.4, bumping up JLine version in spark to version >= Jline 2.14.4 will fix the issue ## How was this patch tested? No new UT/automation test added, after upgrade to latest Jline version 2.14.6, manually tested spark shell features Closes #22130 from vinodkc/br_UpgradeJLineVersion. Authored-by: Vinod KC <vinod.kc.in@gmail.com> Signed-off-by: hyukjinkwon <gurwls223@apache.org>
Upgrade sqlline to 1.4.0 to fix julianhyde/sqlline#75 and the underlying issue jline/jline2#281.
Hello,
I am running the following command and get the output:
infocmpshows:The text was updated successfully, but these errors were encountered: