-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
PHP Fatal error: Uncaught Error: Class 'SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder' not found #186
Comments
FWIW I read #68 and tried downgrading composer to 1.7.1 and 1.6.5 but still had the same issue. |
Thank you for your report, @briantully! I’m going to take a look at this tomorrow - I hope this will work for you. |
Of course @localheinz ! Thanks a bunch. Let me know what I can do to help :) |
Apologies for the late reply, I unfortunately did not manage to take a look before heading off for a couple days at the Baltic Sea.
|
Ha, just ran into this - running
yields
|
Can you do me a favor and run
in the directory in which you ran
resulting in the error you reported? |
Hi there @localheinz -- no worries. A couple of days on the Baltic Sea sounds lovely! Hope you had a great time :) Interestingly enough, when I reinstalled composer-normalize today, I am not longer experiencing the issue. I'm not sure if it's because I don't remember the project I was trying to run it on, or if it's because I did some cleanup and removed some global composer packages last weekend (which may or may not have included phpunit). In any event, I'm no longer seeing the Thanks again! |
I got the same thing. I did a which executed without issue. Then, I did a
|
This is still an issue. I simply attempted to do an update, and this was the result: $ composer update Fatal error: Uncaught Error: Class 'SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder' not found in /Users/brianeller/.composer/vendor/localheinz/composer-normalize/src/Command/NormalizeCommand.php:73 Understandably, this is unacceptable. Yes, I have, again done a "composer global update", which completes without issue, but this error persists. |
This appears to be a problem when having phpunit 4.8 in project dependencies. This can be fixed either by removing global I think this problem must be solved some other way, by having code moved to phar installation, and only provide composer plugin, so the dependencies are thin and isolated from project dependencies. The other soliution is namespacing all dependencies using php scoper: |
If this project provided phar file, could invoke the command using composer-git-hooks |
Sebastian Bergmann allowed me to fork #207 should fix this problem! |
Has been fixed and released as https://github.com/localheinz/composer-normalize/releases/tag/1.3.1! |
Steps required to reproduce the problem
composer global require localheinz/composer-normalize
composer normalize --dry-run
Expected Result
Actual Result
PHP Fatal error: Uncaught Error: Class 'SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder' not found
I've tried clearing composer's cache and reinstalling composer-normalize to no avail. Running latest stable composer (1.8.5)
The text was updated successfully, but these errors were encountered: