Skip to content

Conversation

deleugpn
Copy link
Contributor

@deleugpn deleugpn commented May 7, 2025

improvement for diagnosing issues like #12369


After installing composer from source and patching up the ZipDownloader as instructed, I managed to track down the issue to https://github.com/cebe/markdown which is a dependency of Yii2, more specifically caused by this file which would be best if it could be ignored since its a test file.

Since the library in question has last been released in 2018, I'm not holding my hopes up that it will be fixed, so we will be looking at alternatives.

In any case, this proposed error message would have made it 1000x easier to figure out what went wrong and why.


Edit: reported issues on PHPStan and PHP 8.3 seems unrelated?

@Seldaek Seldaek merged commit d66e067 into composer:main May 12, 2025
9 of 20 checks passed
Seldaek added a commit to Seldaek/composer that referenced this pull request May 12, 2025
@Seldaek
Copy link
Member

Seldaek commented May 12, 2025

Thanks, change is definitely good, and thanks for figuring out which package.. This let me identify a problematic file like https://github.com/cebe/markdown/blob/master/tests/markdown-data/dos2.md (makes sense that this compresses well 😆 ) and now I got a confirmed fix for this issue too in #12409

@Seldaek Seldaek added this to the 2.8 milestone May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants