Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Composer commands error after removing specific autoload file from composer.json #8601
We have a legacy project which autoloads specific files.
It seems that when running
We could probably work around this in team situations by first removing the line from
Removing the existing generated autoload files fixes the problem.
When I run this command:
I get the following output:
And I expected this to happen:
Install dependencies and/or generate new autoload files.
As i'm just a user of Composer, i am not aware of the internals of it. However, i am running into an error when running
Could you explain to me how this is expected behaviour? (Why does Composer need to load my existing autoload files to create autoload files for my new configuration?)
Can you start by running the command in verbose mode so we have more useful information?
And also check if running it without plugins and scripts still causes the issue to occur:
I'd also suspect this is caused by a plugin which triggers autoloading of stuff during bootstrapping, because normally you are right dumping the autoloader should not require loading the previous one, as that previous one is most likely outdated.
If you can simply try your repro case again but with
Edit: Never mind that last sentence, we don't load files autoload at all in in-memory autoloaders, so that can't be the problem.