Comments (7)
and also
(aider) david@Davids-MacBook-Air pronacks_built % aider
Model: gpt-4
Git repo: .git
Repo-map: universal-ctags using 1024 tokens
Use /help to see in-chat commands.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> /add admin/incCommon.php snacks_dml.php snacks_view.php admin/incFunctions.php hooks/get_filtered_data.php hooks/snack
s-tv.js hooks/snacks.php templates/snacks_templateTV_new.html
Added admin/incCommon.php to the chat
Added snacks_dml.php to the chat
Added snacks_view.php to the chat
Added admin/incFunctions.php to the chat
Added hooks/get_filtered_data.php to the chat
Added hooks/snacks-tv.js to the chat
Added hooks/snacks.php to the chat
hooks/snacks-tv.js is already in the chat
hooks/snacks.php is already in the chat
Added templates/snacks_templateTV_new.html to the chat
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Traceback (most recent call last):
File "/Users/david/opt/anaconda3/envs/aider/bin/aider", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/main.py", line 293, in main
coder.run()
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/coders/base_coder.py", line 328, in run
new_user_message = self.run_loop()
^^^^^^^^^^^^^^^
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/coders/base_coder.py", line 369, in run_loop
inp = self.io.get_input(
^^^^^^^^^^^^^^^^^^
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/io.py", line 152, in get_input
completer_instance = AutoCompleter(root, rel_fnames, addable_rel_fnames, commands)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/io.py", line 43, in __init__
content = f.read()
^^^^^^^^
File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 31296: invalid start byte
from aider.
I get the same error, but only when using Bash. With cmd (windows) it works perfectly.
from aider.
Thanks for trying aider and for reporting this issue. This looks like a text encoding issue and might be related to running on Windows. I will work on a proper solution and get back to you.
from aider.
@paul-gauthier it's happening on mac too, both terminal and iterm2 zsh
> add sugar option just like we do with calories, protein, etc `admin/incCommon.
php` `snacks_dml.php` `snacks_view.php` `updateDB.php` `admin/incFunctions.php`
`hooks/get_filtered_data.php` `hooks/snacks-tv.js` `hooks/snacks.php` `templates
/snacks_templateTV_new.html`
hooks/get_filtered_data.php
updateDB.php
admin/incFunctions.php
hooks/snacks.php
hooks/snacks-tv.js
snacks_dml.php
snacks_view.php
Add these files to the chat? y
Traceback (most recent call last):
File "/Users/david/opt/anaconda3/envs/aider/bin/aider", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/main.py", line 293, in main
coder.run()
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/coders/base_coder.py", line 328, in run
new_user_message = self.run_loop()
^^^^^^^^^^^^^^^
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/coders/base_coder.py", line 396, in run_loop
return self.send_new_user_message(inp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/coders/base_coder.py", line 404, in send_new_user_message
self.choose_fence()
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/site-packages/aider/coders/base_coder.py", line 260, in choose_fence
all_content += Path(fname).read_text() + "\n"
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/david/opt/anaconda3/envs/aider/lib/python3.11/pathlib.py", line 1059, in read_text
return f.read()
^^^^^^^^
File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 31296: invalid start byte
(aider) david@Davids-MacBook-Air pronacks_built %
from aider.
I just merged a fix for this issue. You'll have to install the latest from github to pick it up. I'll release it to pypi soon.
Please let me know if you continue to see any unicode errors.
from aider.
The fix is now on pypi in v0.8.0 and will be installed if you do pip install --upgrade aider-chat
.
from aider.
I'm going to close this issue, but feel free to re-open or file a new issue if you want to follow up.
from aider.
Related Issues (20)
- Refactor legacy codebase HOT 3
- [Workflow] fzf file selection HOT 4
- FR: add docstrings, types and tests to udiff_coder.py HOT 2
- Preventing Diff in Commit Messages HOT 1
- Wrong project name for pipx in FAQ HOT 1
- Incorrect prompt to "Add these files to the chat?" HOT 2
- Command line paramater to specify test command HOT 6
- When git user and email are not set, don't dump a bunch of useless info to the screen HOT 5
- Error - Could not run aider on existing git repo HOT 7
- Support tabs in the prompt HOT 8
- Abstract LLM interfaces and Claude 3 Opus HOT 9
- Enhance error message for missing API Key HOT 3
- Aider very slow ( on large repos ) HOT 2
- Aider Researcher HOT 3
- Extending Aider - Senior Aider AI HOT 4
- Add files based on content HOT 2
- Add deepseek-coder api HOT 5
- Bug when starting aider HOT 9
- [BUG] aider can cause data loss HOT 8
- Missing tags.scm abort execution of repo map HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aider.