mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +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)
|
parser = get_parser(lang)
|
||||||
|
|
||||||
# Load the tags queries
|
# Load the tags queries
|
||||||
scm_fname = pkg_resources.resource_filename(
|
try:
|
||||||
__name__, os.path.join("queries", f"tree-sitter-{lang}-tags.scm")
|
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)
|
query_scm = Path(scm_fname)
|
||||||
if not query_scm.exists():
|
if not query_scm.exists():
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue