mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
Handle languages without tags.scm files #514
This commit is contained in:
parent
837f3ab048
commit
8f98f3b430
1 changed files with 6 additions and 3 deletions
|
@ -140,9 +140,12 @@ class RepoMap:
|
|||
parser = get_parser(lang)
|
||||
|
||||
# Load the tags queries
|
||||
scm_fname = pkg_resources.resource_filename(
|
||||
__name__, os.path.join("queries", f"tree-sitter-{lang}-tags.scm")
|
||||
)
|
||||
try:
|
||||
scm_fname = pkg_resources.resource_filename(
|
||||
__name__, os.path.join("queries", f"tree-sitter-{lang}-tags.scm")
|
||||
)
|
||||
except KeyError:
|
||||
return
|
||||
query_scm = Path(scm_fname)
|
||||
if not query_scm.exists():
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue