Skip to content

RuntimeError: Timeout waiting for LSP response after xxx seconds #61

@SongweiChai

Description

@SongweiChai

Hi teams,

We are trying to adapt Qgenie(Qualcomm internal Tool) to work with Patchwise.
And facing the below issue:

22:18:29 W patchwise.aicodereview ai_code_review.py#1006: qcom_eud.c NOT found in compile_commands.json
22:18:29 I patchwise.aicodereview ai_code_review.py#1012: === END COMPILE_COMMANDS.JSON DEBUGGING ===
22:18:30 I patchwise.aicodereview ai_code_review.py#1076: Also scanning entire file for additional identifiers...
Traceback (most recent call last):
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/.venv/bin/patchwise", line 8, in <module>
    sys.exit(main())
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/patchwise/main.py", line 104, in main
    review_commit(reviews, commit, args.repo_path)
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/patchwise/patch_review/__init__.py", line 110, in review_commit
    result = cur_review.run()
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/patchwise/patch_review/ai_review/ai_code_review.py", line 1496, in run
    self.get_context()
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/patchwise/patch_review/ai_review/ai_code_review.py", line 1488, in get_context
    self.process_diff_and_print_definitions(diff_lines)
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/patchwise/patch_review/ai_review/ai_code_review.py", line 1463, in process_diff_and_print_definitions
    collected_defs = self._collect_definitions(file_adds)
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/patchwise/patch_review/ai_review/ai_code_review.py", line 1429, in _collect_definitions
    self._process_file_identifiers(
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/patchwise/patch_review/ai_review/ai_code_review.py", line 1092, in _process_file_identifiers
    symbol_resp = self._read_lsp_response(proc, expected_id=self.DOC_SYMBOL_MSG_ID)
  File "/local/mnt/workspace/songchai/PatchWise/PatchWise/patchwise/patch_review/ai_review/ai_code_review.py", line 310, in _read_lsp_response
    raise RuntimeError(
RuntimeError: Timeout waiting for LSP response after 3000 seconds
23:08:31 I patchwise.dockermanager docker.py#361: Stopping container patchwise-aicodereview-70aa4b6761350bfca2b29b793c7d498fe6f70fd6...
23:08:41 I patchwise.dockermanager docker.py#368: Container patchwise-aicodereview-70aa4b6761350bfca2b29b793c7d498fe6f70fd6 stopped and removed.

Could you please help to take a look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions