qodo-cover icon indicating copy to clipboard operation
qodo-cover copied to clipboard

"Failed to parse AI prediction"

Open bdelgado1995 opened this issue 9 months ago โ€ข 6 comments

I'm on commit 1b1633ecee26a5e3ba2a5878510671e0e710e670 (May 25, 2024) and observing these errors below. Any ideas on how to resolve them?

INFO:cover_agent.UnitTestGenerator:Total token used count for LLM model ollama/llama3: 3057
ERROR:root:Failed to parse AI prediction: while scanning for the next token
found character '`' that cannot start any token
  in "<unicode string>", line 3, column 1:
    ```yaml
    ^
2024-05-25 06:44:15,553 - cover_agent.UnitTestGenerator - ERROR - Error during test generation: 'tests'
ERROR:cover_agent.UnitTestGenerator:Error during test generation: 'tests'
2024-05-25 06:44:15,553 - cover_agent.UnitTestGenerator - INFO - Running build/test command to generate coverage report: "pytest --cov=. --cov-report=xml --cov-report=term"
INFO:cover_agent.UnitTestGenerator:Running build/test command to generate coverage report: "pytest --cov=. --cov-report=xml --cov-report=term"
2024-05-25 06:44:16,278 - cover_agent.main - INFO - Reached maximum iteration limit without achieving desired coverage.

and

INFO:cover_agent.UnitTestGenerator:Total token used count for LLM model ollama/llama3: 3152
ERROR:root:Failed to parse AI prediction: while scanning a simple key
  in "<unicode string>", line 32, column 1:
    These tests aim to increase the  ... 
    ^
could not find expected ':'
  in "<unicode string>", line 32, column 136:
     ... t covered in the existing tests.

bdelgado1995 avatar May 25 '24 13:05 bdelgado1995