Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.5k stars 453 forks source link

Cannot beautify Ruby because of Rubocop GLIBC not found? #2602

Open ForkedInTime opened 2 years ago

ForkedInTime commented 2 years ago

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:

SilentGlasses commented 1 year ago

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