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
Infection gets stuck in the first execution after configuration file is created #576
Comments
Good catch 👍 |
I can reproduce it for infection itself. When I remove PHP Fatal error: Uncaught Error: Call to a member function getMethod() on null in src/Visitor/CodeCoverageMethodIgnoreVisitor.php:58 Seems like it tries to travers files from the |
@borNfreee looks like you found a different issue :) but I can't confirm it. Output
As you can see I selected fifth option in the first question and changed the default timeout to 25 But the $config object will have default values: it happens due to this line infection/src/Command/InfectionCommand.php Line 355 in b969a0e
as it will initialize the config class with default values and on infection/src/Command/InfectionCommand.php Line 205 in b969a0e
|
At the first execution of Infection, it creates infection.json.dist and then it runs testcases. In this time, the configuration is not loaded properly and the execution goes wrong.
Output with issue
In the following output, Infection is executed with phpdbg and breakpoint is set on
infection/src/Command/InfectionCommand.php
Line 207 in ab723af
At the first execution (I don't have infection.json.dist)
You can see InfectionConfig is empty here, and after this the execution gets stuck.
Second run (infection.json.dist is already created)
In this time, configuration is loaded properly and the execution is successfully finished.
The text was updated successfully, but these errors were encountered: