Skip to content

Uncaught UnicodeDecodeError in cp1252.py line 23 #2888

Open
@rupamar

Description

@rupamar

Aider version: 0.71.1
Python version: 3.12.8
Platform: Windows-11-10.0.22631-SP0
Python implementation: CPython
Virtual environment: Yes
OS: Windows 11 (64bit)
Git version: git version 2.45.1.windows.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "__main__.py", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 910, in main
    file_watcher = FileWatcher(
                   ^^^^^^^^^^^^
  File "watch.py", line 80, in __init__
    self.gitignore_spec = load_gitignores(
                          ^^^^^^^^^^^^^^^^
  File "watch.py", line 58, in load_gitignores
    patterns.extend(f.readlines())
                    ^^^^^^^^^^^^^
  File "cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2008: character maps to <undefined>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions