atom-beautify not working as expected although ruby-beautify gem is

Created on 1 Jul 2016  路  5Comments  路  Source: Glavin001/atom-beautify

Description

The results of beautification are not what I expect. I've tried uninstalling and reinstalling. Also ruby-beautify from the command line works as expected (as shown below), also this is a link the the stack overflow and atom discussion posts if you're interested. I'm super excited to make the switch to atom but I really need to be able to beatify my code as I go. Thanks for your help :)

Expected Results

The beautified code should have looked like:
note this is after running the file through the ruby-beautify gem from the command line, so I'm pretty sure it's not a bug with ruby-beautify:

class SomeClass
    def initialize
        @some_var = 42
        @another_var = 'Space space space'
    end

    def some_method
        p 'cats and dogs and stuff'
    end
end

Steps to Reproduce

  1. Add code to Atom editor
  2. Run command Atom Beautify: Beautify Editor
  3. This beautified code does not look right!

    Debug

Here is a link to the debug.md Gist: https://gist.github.com/mbigras/032f595212a9fa3a049a4ba1bf527e90

Checklist

  • [X] I have tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
  • [X] I have reloaded (or restarted) Atom to ensure it is not a caching issue
  • [X] Searched for existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
    so I know this is not a duplicate issue
  • [X] Generated debugging information and added link for debug.md Gist to this issue
mac question

Most helpful comment

atom beautify not working ofter updated i don't no what is happened

All 5 comments

From your debug.md it shows the selected beautifier as Rubocop not Ruby Beautify: https://gist.github.com/mbigras/032f595212a9fa3a049a4ba1bf527e90#original-file-to-be-beautified

I recommend switching this in the Atom-Beautify package settings using settings-view.

Let me know if you still are having issues and please provide another debug.md. Thanks!

Thanks @Glavin001, that took care of it! And also thanks for such an awesome debug report/atom package :)

that took care of it!

Awesome to hear!

thanks for such an awesome debug report/atom package :)

You're very welcome. Glad it can help you and the rest of the developer community 馃槃 .

atom beautify not working ofter updated i don't no what is happened

ruby-beautify, rubocop - don't work @Glavin001

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasonivers picture jasonivers  路  4Comments

catscarlet picture catscarlet  路  3Comments

philiplb picture philiplb  路  5Comments

bartocc picture bartocc  路  5Comments

physcocode picture physcocode  路  3Comments