{"action":"created","issue":{"url":"https://api.github.com/repos/consolidation/cgr/issues/31","repository_url":"https://api.github.com/repos/consolidation/cgr","labels_url":"https://api.github.com/repos/consolidation/cgr/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/consolidation/cgr/issues/31/comments","events_url":"https://api.github.com/repos/consolidation/cgr/issues/31/events","html_url":"https://github.com/consolidation/cgr/issues/31","id":355854331,"node_id":"MDU6SXNzdWUzNTU4NTQzMzE=","number":31,"title":"PHP Fatal error:  Uncaught Error: Class 'Consolidation\\Cgr\\SystemInformation' not found in ~/.config/composer/vendor/consolidation/cgr/bin/cgr.php:17","user":{"login":"86me","id":266030,"node_id":"MDQ6VXNlcjI2NjAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/266030?v=4","gravatar_id":"","url":"https://api.github.com/users/86me","html_url":"https://github.com/86me","followers_url":"https://api.github.com/users/86me/followers","following_url":"https://api.github.com/users/86me/following{/other_user}","gists_url":"https://api.github.com/users/86me/gists{/gist_id}","starred_url":"https://api.github.com/users/86me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/86me/subscriptions","organizations_url":"https://api.github.com/users/86me/orgs","repos_url":"https://api.github.com/users/86me/repos","events_url":"https://api.github.com/users/86me/events{/privacy}","received_events_url":"https://api.github.com/users/86me/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-31T06:23:57Z","updated_at":"2018-08-31T15:40:30Z","closed_at":null,"author_association":"NONE","body":"Followed the installation instructions, added \"~/.config/composer/vendor/bin\" to my $PATH, then tried running `cgr` and get this error\r\n\r\n```\r\nPHP Fatal error:  Uncaught Error: Class 'Consolidation\\Cgr\\SystemInformation' not found in /home/86me/.config/composer/vendor/consolidation/cgr/bin/cgr.php:17\r\nStack trace:\r\n#0 /home/86me/.config/composer/vendor/consolidation/cgr/bin/cgr(5): main(Array)\r\n#1 {main}\r\n  thrown in /home/86me/.config/composer/vendor/consolidation/cgr/bin/cgr.php on line 17\r\n```\r\nThis is line 17 of cgr.php\r\n\r\n`$home = \\Consolidation\\Cgr\\SystemInformation::getHomeDir();`\r\n\r\nWhat am I missing?\r\n\r\nOS: Arch\r\nComposer version 1.7.2 2018-08-16 16:57:12\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/consolidation/cgr/issues/comments/417703874","html_url":"https://github.com/consolidation/cgr/issues/31#issuecomment-417703874","issue_url":"https://api.github.com/repos/consolidation/cgr/issues/31","id":417703874,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzcwMzg3NA==","user":{"login":"greg-1-anderson","id":612191,"node_id":"MDQ6VXNlcjYxMjE5MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/612191?v=4","gravatar_id":"","url":"https://api.github.com/users/greg-1-anderson","html_url":"https://github.com/greg-1-anderson","followers_url":"https://api.github.com/users/greg-1-anderson/followers","following_url":"https://api.github.com/users/greg-1-anderson/following{/other_user}","gists_url":"https://api.github.com/users/greg-1-anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/greg-1-anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg-1-anderson/subscriptions","organizations_url":"https://api.github.com/users/greg-1-anderson/orgs","repos_url":"https://api.github.com/users/greg-1-anderson/repos","events_url":"https://api.github.com/users/greg-1-anderson/events{/privacy}","received_events_url":"https://api.github.com/users/greg-1-anderson/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T15:40:30Z","updated_at":"2018-08-31T15:40:30Z","author_association":"MEMBER","body":"Looks like your global autoloader does not include the cgr classes. You could try `composer global dumpautoload`, or maybe remove and re-add cgr.\r\n\r\nWould it be preferable if cgr were provided as a phar? The installation instructions would then be:\r\n\r\n1. Download the phar from github\r\n2. chmod +x it\r\n3. Rename it to cgr and move it to your PATH (or symlink)\r\n\r\nUpdates would thereafter be done via `cgr self:update` (although cgr rarely needs updating).\r\n\r\nThe current installation method is just one line (if folks have already put the Composer global vendor bin in their path), but it seems that it has occasionally been unreliable for folks, and I'm not sure why. Maybe the phar would be more straightforward."}}
{"actor":{"display_login":"greg-1-anderson"}}