Titusz Pan
f28c912d5a
refactor: Reorder exception handling in file reading method
2025-01-13 18:29:04 +01:00
paul-gauthier
a0e56c5282
Merge pull request #2856 from titusz/configurable-line-endings
...
feat: Add line endings configuration option for file writing - fixes #1102
2025-01-13 09:26:57 -08:00
Paul Gauthier
de7da1e806
copy
2025-01-13 09:12:56 -08:00
Paul Gauthier
add2f6f669
copy
2025-01-13 09:00:21 -08:00
Paul Gauthier
b06e765e68
copy
2025-01-13 08:58:26 -08:00
Titusz Pan
c3952cb985
feat: Add line endings configuration option for file writing
2025-01-13 17:51:02 +01:00
xqyz
d5469a64d2
Handle new path creation
...
To handle cases where a path, a file, or both need to be created, you can enhance the `fname.touch()` code as follows:
```python
try:
# Create parent directories if they don't exist
fname.parent.mkdir(parents=True, exist_ok=True)
# Create the file
fname.touch()
all_matched_files.add(str(fname))
self.io.tool_output(f"Created file: {fname}")
except OSError as e:
self.io.tool_error(f"Error creating file {fname}: {e}")
```
This code ensures that any necessary parent directories are created before attempting to create the file itself.
2025-01-12 07:29:45 +00:00
Paul Gauthier
ac26fc6d5f
set version to 0.71.2.dev
2025-01-11 16:07:56 -08:00
Paul Gauthier
122088712d
version bump to 0.71.1
2025-01-11 16:06:25 -08:00
Paul Gauthier
9fb09ce14d
copy
2025-01-11 16:04:53 -08:00
Paul Gauthier (aider)
392fb21946
fix: ensure integer indices for list slicing in repomap.py
2025-01-11 15:49:58 -08:00
Paul Gauthier (aider)
4ece6d2a9b
fix: handle Text objects properly in io.py for Windows Unicode encoding
2025-01-11 15:40:24 -08:00
Paul Gauthier
5ada250a66
refactor: Add period to read-only file message in base_coder.py
2025-01-11 07:39:29 -08:00
Paul Gauthier (aider)
308c7ab670
feat: Add read-only file announcements to chat
2025-01-11 07:27:50 -08:00
Paul Gauthier
89d35e020a
refactor: Add comment for read-only file message in base_coder.py
2025-01-11 07:27:49 -08:00
Paul Gauthier
9ff15e1506
copy
2025-01-11 06:53:44 -08:00
Paul Gauthier
73c89e8c00
copy
2025-01-10 15:53:17 -08:00
Paul Gauthier
f9c5cb73a2
copy
2025-01-10 15:08:15 -08:00
Paul Gauthier
c939521f5f
copy
2025-01-10 15:04:54 -08:00
Paul Gauthier
2640e05307
set version to 0.71.1.dev
2025-01-10 15:01:41 -08:00
Paul Gauthier
c1a371e3d3
version bump to 0.71.0
2025-01-10 15:00:02 -08:00
Paul Gauthier
5a4871155a
copy
2025-01-10 14:54:42 -08:00
Paul Gauthier (aider)
d8e6dbf788
docs: clarify dual purpose of /ask, /code, and /architect commands
2025-01-10 14:51:25 -08:00
Paul Gauthier
7ea69ae4b4
refactor: Simplify map_tokens assignment logic in main.py
2025-01-10 14:49:16 -08:00
Paul Gauthier
d238ead451
copy
2025-01-10 14:44:00 -08:00
Paul Gauthier (aider)
41018d05a8
fix: remove unused max_tokens variable in get_repo_map_tokens
2025-01-10 14:38:22 -08:00
Paul Gauthier
d48008e13d
refactor: Update repo map token handling and improve warning message
2025-01-10 14:38:12 -08:00
Paul Gauthier
a9cf438100
refactor: Update terminal detection message to include pretty output
2025-01-10 14:26:06 -08:00
Paul Gauthier (aider)
6c7a0d21d2
style: Remove trailing whitespace in io.py
2025-01-10 14:25:04 -08:00
Paul Gauthier (aider)
d887db4c18
fix: disable pretty output for dumb terminals
2025-01-10 14:24:59 -08:00
Paul Gauthier
c1ba7db8a1
refactor: Update placeholder text in cmd_run for better clarity
2025-01-10 14:23:42 -08:00
Paul Gauthier
dc5b5896a9
copy
2025-01-10 14:20:50 -08:00
Paul Gauthier
38678fafc1
refactor: Simplify fence pattern matching in base_coder.py
2025-01-10 14:20:02 -08:00
Paul Gauthier
7611211d1c
copy
2025-01-10 14:19:51 -08:00
Paul Gauthier
0d9c2cd902
copy
2025-01-10 14:09:22 -08:00
Paul Gauthier (aider)
1a84c109fc
feat: allow /ask, /code, /architect without args to switch modes
2025-01-10 14:07:24 -08:00
Paul Gauthier (aider)
cbedf3f8cc
fix: Correct typo in variable name from model_metatdata_files
to model_metadata_files
2025-01-10 14:04:54 -08:00
Paul Gauthier
50436e3106
docs: Update model usage statistics and dumb terminal message
2025-01-10 14:04:41 -08:00
Paul Gauthier (aider)
62498ec867
style: Reorder imports and fix whitespace in aider/io.py
2025-01-10 14:03:57 -08:00
Paul Gauthier (aider)
91b94bb16c
feat: add dumb terminal detection and fallback handling
2025-01-10 14:03:53 -08:00
Paul Gauthier
babae0fa6e
refactor: conditionally set stream based on main_model.streaming
2025-01-10 13:31:55 -08:00
Paul Gauthier
f047882ac1
refactor: Add InvalidGitRepositoryError to ANY_GIT_ERROR list
2025-01-09 15:01:36 -08:00
Paul Gauthier
b818d6a921
copy
2025-01-09 12:07:00 -08:00
Paul Gauthier
ba631c8451
copy
2025-01-09 12:03:17 -08:00
Paul Gauthier
8437fbc314
cleanup
2025-01-09 12:02:48 -08:00
Paul Gauthier
1b64514c2c
copy
2025-01-09 11:44:40 -08:00
Paul Gauthier
6efea7d365
Merge branch 'main' of github.com:Aider-AI/aider
2025-01-09 11:44:19 -08:00
Peter Schilling
4b53b8b6a1
2025-01-07 14:00:49 -08:00
Peter Schilling (aider)
dbea4a1787
aider: feat: Update watch.md description for IDE usage
2025-01-07 13:57:39 -08:00
Peter Schilling
5b6da85e68
docs: Update watch.md documentation description and comments
2025-01-07 13:57:38 -08:00