Skip to content
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

Python print() doesn't work well. #3772

Closed
Independent-X opened this issue Feb 20, 2024 · 2 comments
Closed

Python print() doesn't work well. #3772

Independent-X opened this issue Feb 20, 2024 · 2 comments
Labels

Comments

@Independent-X
Copy link

Independent-X commented Feb 20, 2024

Problem:
Maybe because Microsoft updates cmd.exe and makes it buggy. Using:
py "%f"
to execute can cause the python print() function missing data.

For example, you can see from this screenshot:

image

The output has been cut off and it only contains the 17th row to 30th row.

Resolution:

Using
PowerShell.exe py "%f"
to execute will not causing these problem.

Please set the default execute command to PowerShell.exe py "%f", instead of py "%f".

@elextr elextr added the windows label Feb 20, 2024
@eht16
Copy link
Member

eht16 commented Mar 3, 2024

On my old Windows 7, a "cmd.exe" is opened and the full output is available and there is a scrollbar to see the first lines of the output.

Changing the default execution command to "PowerShell" seems wrong and would require that PowerShell is installed.
Maybe you can check if the cmd.exe of newer Windows versions can be configured to show a scrollbar

@eht16 eht16 closed this as completed Mar 3, 2024
@Independent-X
Copy link
Author

No, there is a scrollbar and... if I scrolls it, cmd.exe will show more buggy informations.
image

The bug seems only happens when I execute the program with geany. If I type the execute command in cmd.exe, the output is not buggy.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants