{"action":"created","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1209","repository_url":"https://api.github.com/repos/Glavin001/atom-beautify","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1209/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1209/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1209/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/1209","id":178021472,"number":1209,"title":"SQL beautify error","user":{"login":"heruan","id":851745,"avatar_url":"https://avatars.githubusercontent.com/u/851745?v=3","gravatar_id":"","url":"https://api.github.com/users/heruan","html_url":"https://github.com/heruan","followers_url":"https://api.github.com/users/heruan/followers","following_url":"https://api.github.com/users/heruan/following{/other_user}","gists_url":"https://api.github.com/users/heruan/gists{/gist_id}","starred_url":"https://api.github.com/users/heruan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heruan/subscriptions","organizations_url":"https://api.github.com/users/heruan/orgs","repos_url":"https://api.github.com/users/heruan/repos","events_url":"https://api.github.com/users/heruan/events{/privacy}","received_events_url":"https://api.github.com/users/heruan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Glavin001/atom-beautify/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Glavin001","id":1885333,"avatar_url":"https://avatars.githubusercontent.com/u/1885333?v=3","gravatar_id":"","url":"https://api.github.com/users/Glavin001","html_url":"https://github.com/Glavin001","followers_url":"https://api.github.com/users/Glavin001/followers","following_url":"https://api.github.com/users/Glavin001/following{/other_user}","gists_url":"https://api.github.com/users/Glavin001/gists{/gist_id}","starred_url":"https://api.github.com/users/Glavin001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glavin001/subscriptions","organizations_url":"https://api.github.com/users/Glavin001/orgs","repos_url":"https://api.github.com/users/Glavin001/repos","events_url":"https://api.github.com/users/Glavin001/events{/privacy}","received_events_url":"https://api.github.com/users/Glavin001/received_events","type":"User","site_admin":false},"assignees":[{"login":"Glavin001","id":1885333,"avatar_url":"https://avatars.githubusercontent.com/u/1885333?v=3","gravatar_id":"","url":"https://api.github.com/users/Glavin001","html_url":"https://github.com/Glavin001","followers_url":"https://api.github.com/users/Glavin001/followers","following_url":"https://api.github.com/users/Glavin001/following{/other_user}","gists_url":"https://api.github.com/users/Glavin001/gists{/gist_id}","starred_url":"https://api.github.com/users/Glavin001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glavin001/subscriptions","organizations_url":"https://api.github.com/users/Glavin001/orgs","repos_url":"https://api.github.com/users/Glavin001/repos","events_url":"https://api.github.com/users/Glavin001/events{/privacy}","received_events_url":"https://api.github.com/users/Glavin001/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/milestones/7","html_url":"https://github.com/Glavin001/atom-beautify/milestones/v0.30.0","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/milestones/7/labels","id":1158400,"number":7,"title":"v0.30.0","description":"","creator":{"login":"Glavin001","id":1885333,"avatar_url":"https://avatars.githubusercontent.com/u/1885333?v=3","gravatar_id":"","url":"https://api.github.com/users/Glavin001","html_url":"https://github.com/Glavin001","followers_url":"https://api.github.com/users/Glavin001/followers","following_url":"https://api.github.com/users/Glavin001/following{/other_user}","gists_url":"https://api.github.com/users/Glavin001/gists{/gist_id}","starred_url":"https://api.github.com/users/Glavin001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glavin001/subscriptions","organizations_url":"https://api.github.com/users/Glavin001/orgs","repos_url":"https://api.github.com/users/Glavin001/repos","events_url":"https://api.github.com/users/Glavin001/events{/privacy}","received_events_url":"https://api.github.com/users/Glavin001/received_events","type":"User","site_admin":false},"open_issues":74,"closed_issues":140,"state":"open","created_at":"2015-06-10T11:49:26Z","updated_at":"2016-09-26T18:31:57Z","due_on":"2016-09-30T00:00:00Z","closed_at":null},"comments":9,"created_at":"2016-09-20T10:19:52Z","updated_at":"2016-09-27T09:30:32Z","closed_at":null,"body":"Just installed `atom-beautify` 0.29.12 on Atom 1.10.2, restarted Atom and trying to beautify this SQL query: `select * from MyTable` but it fails and shows an empty red error box (see image).\r\n\r\n![screen shot 2016-09-20 at 12 14 08](https://cloud.githubusercontent.com/assets/851745/18666441/30482628-7f2c-11e6-9b84-2537d9e4c048.png)\r\n\r\nIf I use `sqlformat` from a terminal, it works:\r\n```shell\r\n$ cat Query.sql | sqlformat\r\nselect\r\n  *\r\nfrom\r\n  MyTable\r\n```"},"comment":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/comments/249814389","html_url":"https://github.com/Glavin001/atom-beautify/issues/1209#issuecomment-249814389","issue_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1209","id":249814389,"user":{"login":"heruan","id":851745,"avatar_url":"https://avatars.githubusercontent.com/u/851745?v=3","gravatar_id":"","url":"https://api.github.com/users/heruan","html_url":"https://github.com/heruan","followers_url":"https://api.github.com/users/heruan/followers","following_url":"https://api.github.com/users/heruan/following{/other_user}","gists_url":"https://api.github.com/users/heruan/gists{/gist_id}","starred_url":"https://api.github.com/users/heruan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heruan/subscriptions","organizations_url":"https://api.github.com/users/heruan/orgs","repos_url":"https://api.github.com/users/heruan/repos","events_url":"https://api.github.com/users/heruan/events{/privacy}","received_events_url":"https://api.github.com/users/heruan/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T09:30:31Z","updated_at":"2016-09-27T09:30:31Z","body":"Seems like my `sqlformat` does not accept any of these options, I suspect my `sqlformat` is not the same script Beautify needs. This is my output:\r\n```\r\n$ /usr/local/bin/sqlformat Query.sql --reindent --indent_width=4 --keywords=upper\r\nUsage:\r\n  sqlformat.phar [--no-format] [--no-highlight] [<sql>]\r\n  sqlformat.phar [--no-comment] [--no-highlight] [<sql>]\r\n  sqlformat.phar [-c|--compress] [<sql>]\r\n  sqlformat.phar [-h | --help]\r\n  sqlformat.phar [--version]\r\n\r\nOptions:\r\n  --no-highlight  Disable highlight.\r\n  --no-format     Disable auto formatting.\r\n  --no-comment    Remove comment.\r\n  -c --compress   Compress SQL request.\r\n  -h --help       Display this help.\r\n  -V --version    Show the version\r\n```\r\n\r\nWhich `sqlformat` do I need?"}}
{"actor":{"display_login":"heruan"}}