sourcery-ai / sourcery

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

Sourcery does not support Windows 7 #183

Open vinayaktyagi opened 2 years ago

vinayaktyagi commented 2 years ago

Hi,

I haven't been able to get Sourcery working so far. I am continuously getting the following error.

Failed to launch Sourcery service java.util.concurrent.TimeoutException

Sourcery Version

Sourcery 0.9.8

IDE name and version

Pycharm 2021.3 Professional Edition

OS name and version

Windows 7 Ultimate

It's a computer with an intel i3 processor.

I have looked at the docs for possible hardware or OS requirements related issues, but couldn't find the relevant information. Please guide me.

Thanks

vinayaktyagi commented 2 years ago

Hi,

The issue is still there. But am seeing a different exception. So want to put that on record.

Failed to launch Sourcery service: java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: The pipe is being closed

Hellebore commented 2 years ago

I can't reproduce this with the same PyCharm version (though I am on Windows 10).

Could you go to the plugin directory in terminal - should be something like this: %APPDATA%l\JetBrains\PyCharmCE2021.3\plugins\sourcery\sourcery\sourcery_binaries\install\win and let me know what running: sourcery --version brings up?

vinayaktyagi commented 2 years ago

Turns out it was not in the path. So, I got the 'no such command found' message.

Once I added it to the path, I got the following: C:/Users/Admin/AppData/Roaming/JetBrains/PyCharm2021.3/plugins/sourcery/sourcery_binaries/install/win/sourcery.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

FrankAnze commented 2 years ago

Same error here, on Windows 7, Intellij 2021.1 and Sourcery 0.10: Failed to launch Sourcery service java.util.concurrent.TimeoutException

When I go to the terminal and try to run $sourcery --version or $sourcery --verify, I receive a System Error pop-up: "The program can't start because api-ms-win-core-path-l1-1-1.dll is missing from your computer. Try reinstalling the program to fix this problem"

Hellebore commented 2 years ago

OK - looks like our current build process may not work with Windows 7 sadly.

pgcharetteUdeS commented 2 years ago

With PyCharm 2021.3.2 running on Windows 10 with all the updates, the 0.10.2 version of the Sourcery plugin gives the error "Unable to connect to Sourcery executable". The plugin seems to run intermittently, I get suggestions that appear and then disappear.

NoPH8 commented 2 years ago

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