atom-beautify icon indicating copy to clipboard operation
atom-beautify copied to clipboard

Cannot beautify Ruby because of Rubocop GLIBC not found?

Open ForkedInTime opened this issue 2 years ago • 1 comments

Description

The results of beautification are not what I expect.

Input Before Beautification

Beautification works on any other language except Ruby 2.7.4. or Ruby 3.0.3

Expected Output

Should be able to beautify Ruby ok.

Actual Output

The beautified code actually looked like this:

/home/yeti/.rbenv/versions/3.0.3/bin/ruby: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/yeti/.rbenv/versions/3.0.3/bin/ruby)
/home/yeti/.rbenv/versions/3.0.3/bin/ruby: /usr/lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /home/yeti/.rbenv/versions/3.0.3/lib/libruby.so.3.0)
/home/yeti/.rbenv/versions/3.0.3/bin/ruby: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/yeti/.rbenv/versions/3.0.3/lib/libruby.so.3.0)
/home/yeti/.rbenv/versions/3.0.3/bin/ruby: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/yeti/.rbenv/versions/3.0.3/lib/libruby.so.3.0)
/home/yeti/.rbenv/versions/3.0.3/bin/ruby: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/yeti/.rbenv/versions/3.0.3/lib/libruby.so.3.0)

Glibc-source installed ok:

➜ CodeSchool (master) sudo apt install glibc-source ✭ ✈ ✱[🐲 bloombino] Reading package lists... Done Building dependency tree... Done Reading state information... Done glibc-source is already the newest version (2.34-0ubuntu3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ➜ CodeSchool (master)

Steps to Reproduce

  1. Add code to Atom editor
  2. Run command Atom Beautify: Beautify Editor
  3. This beautified code does not look right!
  4. Tried different versions of Ruby: 2.7.4 && 3.0.3

Debug

Here is a link to the debug.md Gist: https://gist.github.com/Biledaemon/a067a06bfb75794da0f2451ca6330e36)

Checklist

I have:

  • [ x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
  • [ x] Reloaded (or restarted) Atom to ensure it is not a caching issue
  • [ x] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues so I know this is not a duplicate issue
  • [ x] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
  • [ x] Generated debugging information by executing Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issue

ForkedInTime avatar Jan 05 '22 20:01 ForkedInTime

If you still need this and are looking for something to fill the spot that Atom left, I am using Pulsar the successor to Atom... This package is working except for one deprecated error listed in #2605

If you don't need this anymore, can you please close this out so it's not just sitting there? Thanks

SilentGlasses avatar Feb 01 '23 02:02 SilentGlasses