Skip to content

Commit d612269

Browse files
committed
added debug statements
1 parent b62cf86 commit d612269

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

codetide/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from typing import Optional, List, Tuple, Union, Dict
1616
from datetime import datetime, timezone
1717
from pathlib import Path
18+
import traceback
1819
import asyncio
1920
import pygit2
2021
import time
@@ -292,7 +293,7 @@ async def _process_single_file(
292293
logger.debug(f"Processing file: {filepath}")
293294
return await parser.parse_file(filepath, self.rootpath)
294295
except Exception as e:
295-
logger.warning(f"Failed to process {filepath}: {str(e)}")
296+
logger.warning(f"Failed to process {filepath}: {str(e)}\n\n{traceback.format_exc()}")
296297
return None
297298

298299
def _add_results_to_codebase(
@@ -419,6 +420,7 @@ def _get_changed_files(self) -> Tuple[List[Path], bool]:
419420
# Check for deleted files
420421
for stored_file_path in self.files:
421422
if stored_file_path not in files:
423+
logger.info(f"detected deletion: {stored_file_path}")
422424
file_deletion_detected = True
423425
break
424426

codetide/parsers/typescript_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ def _process_variable_declaration(cls, node: Node, code: bytes, codeFile: CodeFi
457457

458458
@classmethod
459459
def _process_variable_declarator(cls, node: Node, code: bytes, codeFile: CodeFileModel):
460+
# TODO debug this with GitRecap
460461
name = None
461462
type_hint = None
462463
value = None

0 commit comments

Comments
 (0)