-
Notifications
You must be signed in to change notification settings - Fork 9
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
Uncaught Error: This API only accepts integers #57
Comments
Can you please provide the steps you executed to reproduce this error? |
Ive come across this error, simply in the xterm API https://xtermjs.org/docs/api/terminal/interfaces/iterminaloptions/#properties enter some wrong value, some of the options draw this error when misconfigured. |
I have gotten this a couple of times so far. Some times rerunning [Enter steps to reproduce:]
Atom: 1.49.0 x64 Stack TraceUncaught Error: This API only accepts integers
Commands
Non-Core Packages
|
This looks like an issue in xterm. It is this call to https://github.com/bus-stop/x-terminal/blob/master/src/element.js#L672 It seems like it is a problem when |
We should fix xterm then. If you can make an issue there, that would be good. |
It hasn't happened to me so I can't debug it. If someone could actually enter the steps to reproduce it I could try to figure out why it is failing. |
The correct solution is probably not calling |
@the-j0k3r that comment doesn't help determine why it is failing when |
I though this was about the error message, clearly not =) |
Could you add a simple try-catch around the code, and just retry running x-terminal? Whenever I try again, it works without issues. |
For me, the source of this issue was that the parent container was |
[Enter steps to reproduce:]
Atom: 1.45.0 x64
Electron: 4.2.7
OS: Mac OS X 10.15.4
Thrown From: x-terminal package 8.1.6
Stack Trace
Uncaught Error: This API only accepts integers
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: