sourcery-ai / sourcery

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

Sourcery failing to start on ArchLinux 5.16.10-arch1-1 #196

Closed Hellebore closed 2 years ago

Hellebore commented 2 years ago

Issue description or question

I also have almost a similar issue: java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: Stream closed Please retry using the refresh button. Looks like that the service was broken after some updates on my PC but I don't know exactly: I was updating PyCharm, plugins and OS at the same time =( I was trying to downgrade PyCharm to version 2021.2.2, and Sourcery to version 0.10.1 but without success.

Sourcery Version Sourcery 0.10.2

IDE name and version Pycharm 2021.3.2 Professional Edition

OS name and version ArchLinux 5.16.10-arch1-1

Hellebore commented 2 years ago

@NoPH8 Have moved your issue here - could you see if there's a sourcery.log file you could send over to support@sourcery.ai? How to find it is here: https://docs.sourcery.ai/Resources/Troubleshooting/

NoPH8 commented 2 years ago

Thanks, done.

Hellebore commented 2 years ago

Thanks for sending the log, but unfortunately can't tell what's going on from it.

Am going to mark this as an enhancement for now since we don't actively support Arch.

javierriveracastro commented 2 years ago

It looks like Sourcery now uses a legacy version of libxcrypt.

You need to install libxcrypt-compat: pacman -S libxcrypt-compat

NoPH8 commented 2 years ago

You are completely right. Everything works now, thanks!

skjongithub commented 2 years ago

It looks like Sourcery now uses a legacy version of libxcrypt.

You need to install libxcrypt-compat: pacman -S libxcrypt-compat

Fantastic! How did you figure it out?

javierriveracastro commented 2 years ago

Running the sourcery executable from the command line and reading the errors.

Hellebore commented 2 years ago

Thanks so much @javierriveracastro !!

nicolasrosa commented 1 year ago

Hello, how can I solve the same problem, but for Ubuntu 18.04? I tried to solve the problem with sudo apt install libxcrypt1, since the libxcrypt-compat is not available in this distro.

javierriveracastro commented 1 year ago

Have you tried 'libcryp1', without x. In newer releases it contains that lib:

https://packages.ubuntu.com/kinetic/libcrypt1