-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyCharm crashes due to an Out of Memory Error when plugin is enabled #270
Comments
@mathieu-lemay |
@koxudaxi Well I started PyCharm with the plugin version Now the weird thing, I re-updated to I have another computer with the same issue, I'll try tomorrow if I can make the issue stop with the |
@mathieu-lemay |
Hi, here is the log:
|
@koxudaxi I agree that checking only once at project startup should be sufficient. Even if someone opens a project while they have an older version of ruff without format support, then update the global ruff executable while the project is open, the worst that would happen is that the plugin wouldn't know about it until next project open. I could see a slight issue if a user downgrades ruff, but that is quite an edge case. In the meantime, I think I figured out why I couldn't reproduce the issue anymore yesterday. Explicitly setting @PasVegan Maybe this could work for you too. Create a <?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RuffConfigService">
<option name="globalRuffExecutablePath" value="/usr/bin/ruff" />
</component>
</project> |
I also had this issue recently (on v. 0.0.21) When I enabled the plugin - I was working in I would force close it and reopen the previous project and it would work fine. Then I disabled the plugin and opened I think it has something to do with opening a new project that has never used the plugin before with the plugin enabled or something along those lines. However I checked the box to use my global installation of ruff as well. But after disable / open I haven't seen any issues in any other projects. My guess would be something with the original setting/initializing of the plugin somewhere? |
Thank you all for your comments. |
The following policies are used to create this PR.
|
Thank you for waiting for the fixed version. Fixed version: https://github.com/koxudaxi/ruff-pycharm-plugin/releases/tag/v0.0.22 |
@koxudaxi I'm giving it a try, so far so good. BTW, I just realized you also developed the Poetry plugin and the Pydantic plugin. Damn, keep up the good work! |
@mathieu-lemay |
@mathieu-lemay |
Describe the bug
Whenever I open a project in PyCharm with the plugin enabled, it will freeze after about 30 seconds, then it will crash some time later.
To Reproduce
Steps to reproduce the behavior:
Note: I can't reproduce this on all of my projects, only some of them. For the projects that do cause this behavior though, it does it reliably.
Edit: I can reproduce with structlog. I needed to play a bit with the IDE to trigger the issue though, for example going in the interpreter settings.
Expected behavior
No freeze
Screenshots
N/A
Environments (please complete the following information):
Additional context
See crash log
java_error_in_pycharm_53357.log.gz
The text was updated successfully, but these errors were encountered: