{"action":"created","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/689","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/689/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/689/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/689/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/689","id":119961505,"number":689,"title":"Could not find 'rubocop'. The program may not be installed","user":{"login":"martin-jamszolik","id":1155998,"avatar_url":"https://avatars.githubusercontent.com/u/1155998?v=3","gravatar_id":"","url":"https://api.github.com/users/martin-jamszolik","html_url":"https://github.com/martin-jamszolik","followers_url":"https://api.github.com/users/martin-jamszolik/followers","following_url":"https://api.github.com/users/martin-jamszolik/following{/other_user}","gists_url":"https://api.github.com/users/martin-jamszolik/gists{/gist_id}","starred_url":"https://api.github.com/users/martin-jamszolik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin-jamszolik/subscriptions","organizations_url":"https://api.github.com/users/martin-jamszolik/orgs","repos_url":"https://api.github.com/users/martin-jamszolik/repos","events_url":"https://api.github.com/users/martin-jamszolik/events{/privacy}","received_events_url":"https://api.github.com/users/martin-jamszolik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-02T15:07:37Z","updated_at":"2015-12-10T01:22:21Z","closed_at":"2015-12-10T01:22:21Z","body":"Hi \r\nJust tried the atom-beautify plugin and found myself stuck while trying to format ruby file.\r\nIt is not obvious to me how to install this rubocop dependency as part of the plugin. Frankly I just don't think a user should be settled with this burden.  \r\n\r\nIn the settings it shows Ruby as selected with a bullet point saying Requires Ruby Beautify, which seems to be an actual ruby gem.  Really?  That's not gonna work for a non hard core or casual user!"},"comment":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/comments/163456665","html_url":"https://github.com/Glavin001/atom-beautify/issues/689#issuecomment-163456665","issue_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/689","id":163456665,"user":{"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},"created_at":"2015-12-10T01:22:21Z","updated_at":"2015-12-10T01:22:21Z","body":"> Frankly I just don't think a user should be settled with this burden [of installing rubocop dependency].\r\n> In the settings it shows Ruby as selected with a bullet point saying Requires Ruby Beautify, which seems to be an actual ruby gem. Really? That's not gonna work for a non hard core or casual user!\r\n\r\nI recommend that you read https://github.com/Glavin001/atom-beautify/issues/396#issuecomment-111545914 which was a discussion on a similar statement.\r\n\r\nAfter you have installed the required third-party Ruby beautifier, either [Rubocop](https://github.com/bbatsov/rubocop) or [Ruby-Beautify](https://github.com/erniebrodeur/ruby-beautify), if you are still having troubles, please feel free to create an issue following the contribution guidelines found at https://github.com/Glavin001/atom-beautify/blob/master/CONTRIBUTING.md#new-issues-bugs-questions-etc so someone can help you get everything setup.\r\n\r\nMany of the languages that Atom Beautify support use beautifiers written in JavaScript/Node.js and therefore require no additional installation and configuration on your part. Some of the supported beautifiers that exist for certain languages are not in JavaScript/Node.js and instead often written in the same language -- Ruby beautifier Rubocop is written in Ruby. It is then expected that a Ruby developer writing Ruby code should be able to install a Ruby beautifier, such as Rubocop or Ruby Beautify, which is also written in Ruby. It would then be up to the beautifier's project maintainer to ensure the installation process is straightforward, such as installing with Ruby gem. I am not a Ruby developer, so I cannot comment on the ease-of-use of Ruby gem for installing dependencies. There are tests passing for Ruby beautification using Rubocop and you can see how Travis CI installs rubocop here: https://github.com/Glavin001/atom-beautify/blob/master/.travis.yml#L36-L38\r\n\r\nIf someone would like to re-implement and maintain a beautifier, such as Rubocop, in JavaScript/Node.js and publish to [npm](https://www.npmjs.com/) then I would be more than happy to add support for it in Atom Beautify, and then deprecate the third-party dependencies that are not written in JavaScript/Node.js such as Rubocop. Thanks!"}}