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

Uncaught PermissionError in history.py line 299 #2454

Open
aagulled opened this issue Nov 25, 2024 · 0 comments
Open

Uncaught PermissionError in history.py line 299 #2454

aagulled opened this issue Nov 25, 2024 · 0 comments

Comments

@aagulled
Copy link

Aider version: 0.64.1
Python version: 3.12.3
Platform: Linux-6.8.0-49-generic-x86_64-with-glibc2.39
Python implementation: CPython
Virtual environment: Yes
OS: Linux 6.8.0-49-generic (64bit)
Git version: git version 2.43.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 861, in main
    coder.run()
  File "base_coder.py", line 741, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 784, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1294, in send_message
    shared_output = self.run_shell_commands()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 2030, in run_shell_commands
    output = self.handle_shell_commands(command, group)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 2059, in handle_shell_commands
    self.io.add_to_input_history(f"/run {command.strip()}")
  File "io.py", line 489, in add_to_input_history
    FileHistory(self.input_history_file).append_string(inp)
  File "history.py", line 76, in append_string
    self.store_string(string)
  File "history.py", line 299, in store_string
    with open(self.filename, "ab") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '.aider.input.history'

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