-
Notifications
You must be signed in to change notification settings - Fork 892
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
ruff >=0.0.252
as pycharm File Watcher
#3382
Comments
Thank you for the clear issue. It's not immediately obvious to me what's going on, but first step is I need to find a few mins to try and repro on my end. |
I see the same behavior. |
This was somehow caused by #3104. |
I don't quite understand what's going on, but if you change arguments to |
Do you mind trying that? |
Yes, works correctly with |
I'm going to mark this as fixed due to a viable workaround. If we start seeing this in other integrations, I'll re-open and try to understand what's going on. |
I tried to set up ruff launch in File Watcher. This worked fine on ruff versions prior to
0.0.252
(found out by iterating through versions), but in versions>=0.0.252
when running File Watcher, my IDE highlights errors momentarily instead of permanently displaying them. On versions<=0.0.251
, everything works correctly, when a file is changed, the File Watcher is launched, the IDE highlights errors and the highlighting does not disappear until the error is fixedMaybe someone can tell me what could be the problem? I did not see any "breaking" changes in the changelogs of versions
0.0.252 - 0.0.254
, I noticed similar behavior when updating from0.0.247
to the current0.0.254
, the configs did not change, as did the File Watcher settings. Perhaps this is some kind of my local problem, but for some reason I observe different behavior on the old and new versions. Due to this, I thought it might have something to do with changes in versions>=0.0.252
.I check on the simplest example - the type of quotes used in strings (in pyproject.toml
inline-quotes
set assingle
):File Watcher settings:
File type
-python
Scope
-Project Files
Program
-$PyInterpreterDirectory$/ruff
Arguments
-$FilePath$
Working directory
-$ProjectFileDir$
ruff version -
0.0.254
ruff settings:
Short videos with showing problem. There are no errors when launching in the console (I tried to enable displaying the console when starting File Watcher), all tested versions (
0.0.247
,0.0.251-0.0.254
) give the same list of remarksOn versions
>=0.0.252
:2023-03-07.12-38-08.mp4
On versions
<=0.0.251
2023-03-07.14-15-39.mp4
The text was updated successfully, but these errors were encountered: