-
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 hangs on "initializing config" when opening with --e2e
flag - fresh install on new project
#25974
Comments
@yktoo if Cypress works fine in other projects on the same OS and node version I would be interested in seeing the config for the project you've just added Cypress to (it may be empty I guess?), or if you could capture logs with |
I believe this only happens when trying to start Cypress for the first time (no config or tests present), while giving the cypress open --e2e When started without arguments, it opens normally. Still, I think it's a bug, which better be fixed. |
Ah that's a good observation, thank you. |
--e2e
flag - fresh install on new project
@marktnoonan I have not been able to reproduce this using Cy 12.7.0 on Mac 13.2.1. Did you say you managed to reproduce this? Was it Linux and/or shell-specific? |
@mike-plummer here's a loom We don't have a great experience for opening an unconfigured testing type with a CLI flag, it felt a bit disorienting even when it works (after configuring CT, you can use Opening with It's possible if a testing type is not configured, we should ignore the flag and start at the testing type picker to just have one on-ramp. |
I was unable to reproduce this on a fresh setup of Cypress as described above, but there is a problem where a new Cypress config is set up against an existing
|
In my case, I tried to import the According to @yktoo's observation, I removed the Hope this helped. |
We are using This seems to happen since the update from 9->12 Is there more debugging info needed? |
@amenk It sounds like in your situation it takes a little while to open but eventually does and Cypress is usable. This particular issue describes an infinite hang (Cypress never finishes opening). You're welcome to open a separate issue describing the behavior you're seeing - all the pieces of information that we need are called out in the new issue template. The most important and useful is a reproduction case so we can debug and identify the problem. Be aware that this sort of issue is often related to plugins or other logic triggering from your |
@mike-plummer thanks, sure: #26684 |
|
@Dmitry-Boyko did you try starting it without the |
@yktoo please see the second screenshot. |
@Dmitry-Boyko not sure what you mean by that. This issue is specifically about a problem when Cypress is first-time run with What's your command to start Cypress UI? |
@yktoo This is first-time run, correct |
@Dmitry-Boyko The "Initializing Cypress" stage should only take a few seconds (depending on the complexity of your project and your computer hardware) - if it's taking more than a few minutes that tells me that something is wrong and it's not going to finish. This issue is specifically for the behavior of the "Initializing cypress" stage hanging when launched with the |
Thank you @mike-plummer and @yktoo |
@Dmitry-Boyko Your error contains the message "Your configFile is invalid" which likely means you either have an old config file that no longer complies with the required format or you are somehow specifying a configFile path that does not exist (more likely considering the "Cannot find module" part of the message. Additional information should be evident from the stacktrace in the logs. What you are experiencing appears to be a local configuration issue, not a bug in Cypress. While the symptom is similar to that seen here you likely need to investigate the |
Thank you @mike-plummer ! |
Created this based on comment in #21920
It just hangs forever, no message in DevTools or console.
I'm on Ubuntu 22.10, Node 18.14.2. I use Cypress a lot in other projects without issue.
Originally posted by @yktoo in #21920 (comment)
The text was updated successfully, but these errors were encountered: