-
Notifications
You must be signed in to change notification settings - Fork 22
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
Pygount is printing blank lines #91
Comments
Hm, might be related to the recent switch to Sadly I'm unable to investigate this with a setup similar to yours as I don't access to any Windows 11 box. You could try to upgrade pip install --upgrade rich As a workaround, keep using version 1.3.0 until someone can look into this. |
I'm on Windows 10 and I also get just a bunch of blank lines instead of any output. Downgrading to 1.3.0 fixes it. I don't use Powershell, just plain cmd. It's broken in both Windows Terminal app and the classical cmd.exe window. |
Confirmed on Windows 10 Powershell, pygount 1.4.0 |
Also confirmed windows 10 pygount v1.4.0, no powershel |
Rich 12.6 includes a fix for #2513 which might be related to this. In summary, running python using |
Actually this is only a workaround that disables progress tracking for sloccount. Consequently, when redirecting the output to a file there is no progress bar either, which is not ideal usability wise.
…count #91 Fix missing output on Windows with --format=sloccount
During the holidays I decided to install Python on my Windows 10 box that otherwise is exclusively used for gaming and finally track this down. Turns out the bug shows as soon as the output for with Progress(transient=True) as progress:
try:
...
finally:
progress.stop() Even without any I also noticed that using So I decided to disable progress tracking for The other writers do not have this issue because they collect all information where processing files in the background, and only once all are processed, write their findings. By then, the progress is already at 100% and not updated anymore. |
…count #91 Fix missing output with sloccount
This fix is included with pygount 1.5.1, which is now available from PyPI. |
Windows 11
Powershell
Version 1.4.0
After I upgraded, Pygount is printing blank lines:
I downgrade to version 1.3.0 and it is working now:
The text was updated successfully, but these errors were encountered: