-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Gets confused when multiple projects are open #376
Comments
Note: I've also noticed that sometimes one project detects the ruff executable from another project's .venv folder... |
Not sure if this is related or not, but I'm frequently getting the following error from pycharm when I have multiple projects open:
|
encountering the same issue. some further details, which seems to be the root cause of the problem:
you can manually edit each file in each project and the plugin will start working again, but eventually the changes you make to fix it will be overridden again (don't know what action specifically triggers this though). |
Observing exactly what @bmrobin has said. As a work around, I'm trying to switch to a globally pipx install ruff / ruff-lsp for now. Then at least I won't have PyCharm telling me the ruff.xml file is changing but I guess then I run the risk of using a different version of ruff locally compared to in CI 🤷. |
When multiple projects are open, behaviors become confused.
I had two projects open:
I was migrating the 3.10 project over to ruff and had both projects open. During this, I kep having the ruff extension rewriting code to be 3.11 compatible. This was things like replacing references of
datetime.timezone.UTC
withdatetime.UTC
.Ruff configuration in use between the two projects was near-identiical, one of the few exceptions was the target python version was set to py311 and py310 respectively.
This was driving me crazy. I disabled the extension to confirm that it was the ruff extension. Then it occured to me to try closing the 3.11 project window. After closing the 3.11 project window the bad behavior stopped immediately.
Expected behavior
Project settings from one project shouldn't impact other projects.
Environments (please complete the following information):
The text was updated successfully, but these errors were encountered: