-
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
"Cypress plugin has crashed click here to reload extension" when launching from non-native terminal #1743
Comments
Because Since we spawn Cypress out of |
Any update on this? |
Hey @bhaidar, unfortunately no work has been done on this yet. |
This problem occurs when I run Cypress with admin. And it doesn't repro if I run Cypress without admin. |
@v-atian Thanks for the tip, I see the same behavior. At least we have a workaround with that information. |
Closing as resolved. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Current behavior:
Video of error:
http://recordit.co/mezA4GC015
Desired behavior:
Cypress should execute normally regardless of where it is launched.
Steps to reproduce:
Luckily I have seen a similar issue before when I was using Protractor / Selenium and we had the age old case of it's broke on my machine, but works on co-workers and couldn't figure out why.
The key is where you run the
npm run cypress:open
command.If I run
npm run cypress:open
from within VSCode using the PowerShell terminal or the cmd terminal it will fail.However I open an actual PowerShell or CMD prompt and run
npm run cypress:open
cypress seems to work fine.I remember investigating this a bit ago, and we never understood root cause, but there are differences between the environment variables that might have effect.
For example the terminal in VS Code has these extra stuff like which the native terminals do not.
I don't know if any of these are suspicious or why the addition of them would hurt, but I think this issue is an easy problem for new comers to get caught up on since many people use terminals integrated into their editor. Also, one of Cypress's main talking points was that it is easier to get started than traditional/selenium based solutions. I assume it's just oddities with Windows and ROI is low, but it might be an easy fix for someone who is familiar with this stuff.
Or if it is not easily fixed maybe at least the error can be detected so it tells people, you're running from environment X which is not supported, please use Y.
Versions
Windows 10: 10.0.17134 Build 17134
Chrome: 66.0.3359.181 (Official Build) (64-bit)
Cypress: 2.1.0
The text was updated successfully, but these errors were encountered: