Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Uncaught Error: Class 'Ergebnis\GitHub\ChangeLog\Console\GenerateCommand' not found in #387

Closed
dsentker opened this issue Jan 24, 2020 · 2 comments · Fixed by #479
Closed
Assignees
Labels

Comments

@dsentker
Copy link

I just want to give this tool a try. I followed the installation steps, changed to local project (synced with Git) and got
PHP Fatal error: Uncaught Error: Class zErgebnis\GitHub\ChangeLog\Console\GenerateCommand' not found in C:\Users\[...]\AppData\Roaming\Composer\vendor\ergebnis\github-changelog\github-changelog.php:43

Steps required to reproduce the problem

λ git status
Results in
On branch sf44-dev
Your branch is up to date with 'origin/sf44-dev'`

composer global require ergebnis/github-changelog
Results in

Changed current directory to C:/Users/[...]/AppData/Roaming/Composer
Using version ^0.7.1 for ergebnis/github-changelog
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 28 installs, 0 updates, 0 removals
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/service-contracts (v2.0.1): Loading from cache
  - Installing symfony/stopwatch (v4.4.3): Loading from cache
  - Installing symfony/polyfill-php73 (v1.13.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.13.1): Loading from cache
  - Installing symfony/console (v4.4.3): Loading from cache
  - Installing symfony/var-exporter (v5.0.3): Downloading (100%)
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing symfony/cache-contracts (v2.0.1): Loading from cache
  - Installing psr/log (1.1.2): Loading from cache
  - Installing symfony/cache (v4.4.3): Loading from cache
  - Installing ralouphie/getallheaders (3.0.3): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing guzzlehttp/psr7 (1.6.1): Loading from cache
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing guzzlehttp/guzzle (6.5.2): Loading from cache
  - Installing php-http/promise (v1.0.0): Loading from cache
  - Installing php-http/httplug (v1.1.0): Downloading (100%)
  - Installing php-http/guzzle6-adapter (v1.1.1): Downloading (100%)
  - Installing php-http/message-factory (v1.0.2): Loading from cache
  - Installing clue/stream-filter (v1.4.1): Loading from cache
  - Installing php-http/message (1.8.0): Loading from cache
  - Installing symfony/options-resolver (v5.0.3): Downloading (100%)
  - Installing php-http/client-common (1.10.0): Downloading (100%)
  - Installing php-http/cache-plugin (1.7.0): Downloading (100%)
  - Installing php-http/discovery (1.7.4): Loading from cache
  - Installing knplabs/github-api (2.12.1): Downloading (100%)
  - Installing ergebnis/github-changelog (0.7.1): Downloading (100%)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
php-http/client-common suggests installing php-http/logger-plugin (PSR-3 Logger plugin)
php-http/client-common suggests installing php-http/stopwatch-plugin (Symfony Stopwatch plugin)
php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
Writing lock file
Generating autoload files

λ github-changelog generate v1.19.4 v1.24.0

Expected Result

  • Get a changelog

Actual Result

PHP Fatal error:  Uncaught Error: Class 'Ergebnis\GitHub\ChangeLog\Console\GenerateCommand' not found in C:\Users\traci\AppData\Roaming\Composer\vendor\ergebnis\github-changelog\github-changelog.php:43
Stack trace:
#0 C:\Users\traci\AppData\Roaming\Composer\vendor\ergebnis\github-changelog\github-changelog(4): include()
#1 {main}
  thrown in C:\Users\traci\AppData\Roaming\Composer\vendor\ergebnis\github-changelog\github-changelog.php on line 43

Fatal error: Uncaught Error: Class 'Ergebnis\GitHub\ChangeLog\Console\GenerateCommand' not found in C:\Users\traci\AppData\Roaming\Composer\vendor\ergebnis\github-changelog\github-changelog.php:43
Stack trace:
#0 C:\Users\traci\AppData\Roaming\Composer\vendor\ergebnis\github-changelog\github-changelog(4): include()
#1 {main}
  thrown in C:\Users\traci\AppData\Roaming\Composer\vendor\ergebnis\github-changelog\github-changelog.php on line 43

Some Background Information:

  • The remote git repository is private
  • I am running Win10
  • The suggested composer packages were not installed
@localheinz localheinz self-assigned this Mar 11, 2020
@localheinz localheinz added the bug label Mar 11, 2020
@localheinz
Copy link
Member

@dsentker

Apologies for the delay - I really need to get back to sorting out a bunch of issues here!

@ergebnis-bot
Copy link
Member

Since this issue has not had any activity within the last sixty days, I have marked it as stale.

I will close it if no further activity occurs within the next five days.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants