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

wtf script not working #1385

Closed
MikeBirdTech opened this issue Aug 6, 2024 · 0 comments
Closed

wtf script not working #1385

MikeBirdTech opened this issue Aug 6, 2024 · 0 comments

Comments

@MikeBirdTech
Copy link
Collaborator

Describe the bug

I made an error on a command, typed wtf and received two errors

  1. LLM responded with Please provide the terminal history or describe the specific issue you're facing so I can assist you effectively.%
  2. A python error, followed by an infinite spinner
Traceback (most recent call last):
  File "/Users/mike/Library/Python/3.11/bin/wtf", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/mike/Library/Python/3.11/lib/python/site-packages/scripts/wtf.py", line 81, in main
    history = history[-9000:].strip()
              ~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Reproduce

I use Alacritty with zsh

Expected behavior

wtf reads the terminal history and fixes my mistakes

Screenshots

image

Open Interpreter version

Open Interpreter 0.3.4 Local III

Python version

Python 3.11.7

Operating System name and version

MacOS

Additional context

No response

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