diff --git a/aider/repomap.py b/aider/repomap.py index 748cc3f12..d10292a7f 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -141,6 +141,7 @@ class RepoMap: cmd = self.ctags_cmd + [filename] output = subprocess.check_output(cmd).decode("utf-8") output = output.splitlines() + print('output', output) tags = [] if not output: @@ -175,7 +176,8 @@ class RepoMap: with open(hello_py, "w") as f: f.write("def hello():\n print('Hello, world!')\n") self.get_tags(hello_py) - except Exception: + except Exception as err: + print(err) return False return True diff --git a/tests/test_repomap.py b/tests/test_repomap.py index 1f12bbbb7..90f2e7531 100644 --- a/tests/test_repomap.py +++ b/tests/test_repomap.py @@ -65,7 +65,7 @@ def my_function(arg1, arg2): def test_check_for_ctags_success(self): with patch("subprocess.run") as mock_run: - mock_run.return_value = CompletedProcess(args=["ctags", "--version"], returncode=0, stdout='''{ + mock_run.return_value = CompletedProcess(args=["ctags", "--version"], returncode=0, stdout=b'''{ "_type": "tag", "name": "status", "path": "aider/main.py",