Closed Guust-Franssens closed 3 days ago
Ruff expects that you pass a file via stdin when you specify --stdin-filename
like this:
ruff check --stdin-filename test.py < ../test/c.py
@MichaReiser thanks already, make sense....
when I check the VSCode output for the ruff extension I see the following; afterwhich it freezes. I assume I should be this instead on the vscode-ruff extension?
2024-11-22 15:51:16.631 [info] Using environment executable: C:\Users\gfranssens\.local\bin\ruff.EXE
2024-11-22 15:51:16.632 [info] Found ruff 0.8.0 at C:\Users\gfranssens\.local\bin\ruff.EXE
2024-11-22 15:51:16.632 [info] Running Ruff with: C:\Users\gfranssens\.local\bin\ruff.EXE ['check', '--force-exclude', '--no-cache', '--no-fix', '--quiet', '--output-format', 'json', '-', '--stdin-filename', 'c:\\Users\\gfranssens\\vscode-projects\\belgian-journal\\src\\spiders\\legal_entities.py']
Can you explain with what you mean by freeze? I don't think ruff prints any other messages after Running Ruff with
. Do you see violations in your editor? Does the output get updated when you change and save a file?
My VSCode settings for Ruff were improplerly configured....
however running it without specifying --stdin-filename works without any problem
I have tried running on many versions however all with same problem (minor version 0.5, 0.6, 0.7). I was currently using the latest version.
the reason that this is a problem is because the VSCode extension runs in the background with --stdin-filename thus no corrections are done on save.
I believe the problem is related to something on my machine, however I cannot figure out what is the problem... Hopefully someone knows a fix...