MattFlower / vscode-aider-extension

74 stars 18 forks source link

OSError: [Errno 30] Read-only file system: '.aider.chat.history.md' #6

Closed marcelreschke closed 8 months ago

marcelreschke commented 8 months ago

When opening aider I get the following error message in the terminal:

Traceback (most recent call last):
  File "/opt/homebrew/anaconda3/envs/aider-chat/bin/aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/anaconda3/envs/aider-chat/lib/python3.12/site-packages/aider/main.py", line 434, in main
    io = InputOutput(
         ^^^^^^^^^^^^
  File "/opt/homebrew/anaconda3/envs/aider-chat/lib/python3.12/site-packages/aider/io.py", line 142, in __init__
    self.append_chat_history(f"\n# aider chat started at {current_time}\n\n")
  File "/opt/homebrew/anaconda3/envs/aider-chat/lib/python3.12/site-packages/aider/io.py", line 361, in append_chat_history
    with self.chat_history_file.open("a", encoding=self.encoding) as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/anaconda3/envs/aider-chat/lib/python3.12/pathlib.py", line 1014, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system: '.aider.chat.history.md'

Starting aider outside VSC is working as expected.

marcelreschke commented 8 months ago

Terminal started in the wrong directory. Sorry