-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
TypeError on cypress open tty.getWindowSize #1815
Comments
We recommend downgrading to 2.1.0 in the meantime, while we work on this issue. npm install --save-dev [email protected] |
I've had a look at the mocha code at that location. It is referencing a (very) old method of node, that has been removed. Also, the referenced mocha is old (2.4.5), so I wonder if that is the problem...? |
@brian-mann we really need to bump Mocha, the problem is coming from its base reporter var tty = require('tty')
// ...
if (isatty) {
exports.window.width = process.stdout.getWindowSize
? process.stdout.getWindowSize(1)[0]
: tty.getWindowSize()[1];
} the |
Hmm, current Mocha code still has the same logic https://github.com/mochajs/mocha/blob/master/lib/reporters/base.js#L128 - how the hell is it working - it always goes to |
I do not believe every Windows user is having this issue. @brian-mann mentioned this maybe having something to do with |
There is a bug there: glenjamin/mocha-multi#4 |
An other thing that is strange: If I start the cypress.exe by hand (from appdata/local/...) everything works fine... maybe the problem is with how the process is spawn... but then isatty is false, so it won't run that block of code anyway... |
Nope, we actually force |
Okay I understand the root cause. When spawning a process in electron in Windows What's happening is that we are actually tricking / forcing the electron/node process to believe that windows is in fact a Mocha is using an undocumented method on To fix this we'll need to polyfill the actual method in function () {
return [this.columns, this.rows]
} HOWEVER! |
Why this bus is closed. Is already fixed? |
Fixed in |
Is this a Feature or Bug?
Bug
Current behavior:
On
cypress open
, some users are getting TypeError on new update to 3.0.0Desired behavior:
No TypeError :)
Steps to reproduce:
Versions
Cypress: 3.0.0
OSes observered: Windows 10 Pro, Windows 8.1, Windows 7
The text was updated successfully, but these errors were encountered: