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

No fuck given when i run fuck with a typo on the last prompt #1492

Open
Unknownuserfrommars opened this issue Jan 14, 2025 · 0 comments
Open

Comments

@Unknownuserfrommars
Copy link

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.32 using Python 3.13.1 and PowerShell 5.1.26100.2161

Your system (Debian 7, ArchLinux, Windows, etc.):

Windows 11 24H2

How to reproduce the bug:

  1. Install thefuck using pip install thefuck
  2. notepad.exe $profile and add iex "$(thefuck --alias)" (as given by prompt)
  3. run . $profile, gives an warning. Not sure why:
C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\site-packages\win_unicode_console\__init__.py:31: RuntimeWarning: sys.stdin.encoding == 'utf-8', whereas sys.stdout.encoding == 'gbk', readline hook consumer may assume they are the same
  readline_hook.enable(use_pyreadline=use_pyreadline)
  1. Deliberately try a typo
PS C:\Users\Kevin> puthon
[Errors out]
PS C:\Users\Kevin> fuck
C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\site-packages\win_unicode_console\__init__.py:31: RuntimeWarning: sys.stdin.encoding == 'utf-8', whereas sys.stdout.encoding == 'gbk', readline hook consumer may assume they are the same
  readline_hook.enable(use_pyreadline=use_pyreadline)
No fucks given

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

FILL THIS IN

If the bug only appears with a specific application, the output of that application and its version:

FILL THIS IN

Anything else you think is relevant:

WHY DOES IT HAPPEN?

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

No branches or pull requests

1 participant