vscode-ruff icon indicating copy to clipboard operation
vscode-ruff copied to clipboard

ruff doesn't work when I rename'xxx.PY' to 'xxx.py'

Open Zander-1024 opened this issue 6 months ago • 10 comments

I have another file that says xxx.PY in the name. When I found the problem, I changed it to xxx.py. At this point I found that the format didn't work. When I change the file name or the extension, I find that it can be formatted normally again.

However, when the file is modified to xxx.py, it does not take effect. Finally, I find that the URI still points to xxx.PY. However, when I modify the file to xxx.PY again, the file still cannot be formatted.

Is there a cache for this? When I restarted the computer, the problem persisted.

2024-08-07 16:21:04.415 [info] Params: {
    "textDocument": {
        "uri": "file:///d%3A/*/xxx.PY"
    }
}

Ruff v2024.36.0

Zander-1024 avatar Aug 07 '24 08:08 Zander-1024