sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.5k stars 65 forks source link

Sourcery on Amazon Linux 2 #392

Closed JeremyFields closed 9 months ago

JeremyFields commented 9 months ago

Checklist

Description

Installed and working great on my local windows but i am attempting to use for a school project via AWS. I realize AL2 is not in the "supported OS" list. When I go to the "sourcery hub" it loads correctly and shows my plan. But when I click the sourcery extension on the left-hand menu to load the coding assistant it spins in a loading loop and never loads anything. Also, there are no suggestions on my code / not working. When using on Amazon Linux 2 distro, does not work. I tried installing the extension via VSCode and get this error: /install/linux/sourcery: connection to server is erroring. Shutting down server.

When attempting to run sourcery login via cli (after installed via pip):

/home/ec2-user/.local/lib/python3.8/site-packages/sourcery/sourcery: /lib64/libc.so.6: version GLIBC_2.28' not found (required by /home/ec2-user/.local/lib/python3.8/site-packages/sourcery/libpython3.10.so.1.0) /home/ec2-user/.local/lib/python3.8/site-packages/sourcery/sourcery: /lib64/libc.so.6: versionGLIBC_2.27' not found (required by /home/ec2-user/.local/lib/python3.8/site-packages/sourcery/libpython3.10.so.1.0)

Code snippet that reproduces issue

sourcery login

Debug Information

IDE Version: VSCode 1.82.2

Sourcery Version: Sourcery 1.10.0

Operating system and Version: Amazon Linux 2

ruancomelli commented 9 months ago

As you pointed out, Amazon Linux 2 is unsupported and might indeed have issues or not work at all. Unfortunately, there is nothing we can do at the moment to fix this issue.