{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2111","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2111/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2111/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2111/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/2111","id":347338621,"node_id":"MDU6SXNzdWUzNDczMzg2MjE=","number":2111,"title":"Verify that phpcs returns a valid json object","user":{"login":"wills-web","id":28908953,"node_id":"MDQ6VXNlcjI4OTA4OTUz","avatar_url":"https://avatars1.githubusercontent.com/u/28908953?v=4","gravatar_id":"","url":"https://api.github.com/users/wills-web","html_url":"https://github.com/wills-web","followers_url":"https://api.github.com/users/wills-web/followers","following_url":"https://api.github.com/users/wills-web/following{/other_user}","gists_url":"https://api.github.com/users/wills-web/gists{/gist_id}","starred_url":"https://api.github.com/users/wills-web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wills-web/subscriptions","organizations_url":"https://api.github.com/users/wills-web/orgs","repos_url":"https://api.github.com/users/wills-web/repos","events_url":"https://api.github.com/users/wills-web/events{/privacy}","received_events_url":"https://api.github.com/users/wills-web/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-03T10:09:30Z","updated_at":"2018-08-03T10:39:50Z","closed_at":null,"author_association":"NONE","body":"When performing any kind of edit, save, etc, an error window appears in the bottom right of VS Code, contains the following message.\r\n\r\n`phpcs: Unknown error ocurred. Please verify that C:\\Users\\<username>\\AppData\\Roaming\\Composer\\vendor\\bin\\phpcs.bat --report=json -q --encoding=UTF-8 --error-severity=5 --warning-severity=5 --stdin-path=C:\\Clones\\<projectname>\\app\\Lib\\PoGenerator.php - returns a valid json object.`\r\n\r\n`<projectname>` and `<username>` fields have been omitted.\r\n\r\nI have used a global installation and have run the following commands, as well as installed the VS Code plugin.\r\n`composer global require squizlabs/php_codesniffer`\r\n`phpcs --version`\r\n`phpcs --config-set default_standard PSR2`\r\n\r\nWhen running phpcs commands, I am shown a warning that `openssl` is already running."},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/410215608","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/2111#issuecomment-410215608","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2111","id":410215608,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDIxNTYwOA==","user":{"login":"gsherwood","id":185976,"node_id":"MDQ6VXNlcjE4NTk3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/185976?v=4","gravatar_id":"","url":"https://api.github.com/users/gsherwood","html_url":"https://github.com/gsherwood","followers_url":"https://api.github.com/users/gsherwood/followers","following_url":"https://api.github.com/users/gsherwood/following{/other_user}","gists_url":"https://api.github.com/users/gsherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/gsherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsherwood/subscriptions","organizations_url":"https://api.github.com/users/gsherwood/orgs","repos_url":"https://api.github.com/users/gsherwood/repos","events_url":"https://api.github.com/users/gsherwood/events{/privacy}","received_events_url":"https://api.github.com/users/gsherwood/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T10:39:50Z","updated_at":"2018-08-03T10:39:50Z","author_association":"MEMBER","body":"I'm not sure how the VS Code integration works as it's not part of this project, but have you tried running PHPCS directly and seeing if you get valid JSON output or not?\r\n\r\nAlso, PHPCS does not use openssl, so I don't know why that error would be reported."}}
{"actor":{"display_login":"gsherwood"}}