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
Classmap issue after update to 2.1.7 #10102
Comments
we are experiencing a similar issue in https://github.com/shopware/shopware
are we doing something wrong in our |
okay, we found out that the issue occurs if the file contains two classes: once we split it up in two files, it works correctly again. |
Thanks @mitelg for the repro case with file. That one was due to the file having invalid unicode sequences. If I open it and save it again it starts working for me, which I guess explains why splitting it in two helped you. Running a diff pre/post save shows:
So it looks like the � which as per https://www.babelstone.co.uk/Unicode/whatisit.html are apprently @Webonaute could you check if the snapshot build also fixes your issue? If not please share the source so I can try and repro/debug. You can try with |
oh, what a strange problem 🙈 😄 thank you so much for the fast fix! I tested the snapshot version, and can confirm it worked again for us 😊 👍 🎉 |
I can also confirm that the problem is fixed with the latest snapshot. It is quite easy to encounter this problem when developing with Windows. |
https://github.com/composer/composer/releases/tag/2.1.8 is out with the fix. |
Thank. I confirm issue is fixed with 2.1.8 for me. |
I just upgraded to composer 2.1.7 from 2.1.6 and composer classmap cache stopped working or there is some breaking change in new version.
any subsequent command have error like :
Noticed exception 'Error' with message 'Class '\Contract\V1\Config\GPBMetadata\Config' not found' in /var/www/project/vendor/someVendor/Contract/V1/Config/Config.php
only change is upgrading composer to 2.1.7.
here is the command we use in our automations scripts:
su -p -c "composer dump-autoload --optimize --classmap-authoritative --apcu" www-data
The text was updated successfully, but these errors were encountered: