Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #159

Closed
kantord opened this issue Sep 4, 2023 · 1 comment
Closed

IndexError: list index out of range #159

kantord opened this issue Sep 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@kantord
Copy link
Owner

kantord commented Sep 4, 2023

Traceback (most recent call last):
File "/usr/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.11/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/kantord/repos/SeaGOAT/seagoat/queue/base_queue.py", line 77, in _worker_function
self._handle_task(context, task)
File "/home/kantord/repos/SeaGOAT/seagoat/queue/base_queue.py", line 58, in _handle_task
result = handler(context, *task.args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kantord/repos/SeaGOAT/seagoat/queue/task_queue.py", line 80, in handle_query
context["seagoat_engine"].fetch_sync(
File "/home/kantord/repos/SeaGOAT/seagoat/engine.py", line 156, in fetch_sync
loop.run_until_complete(self.fetch(*args, **kwargs))
File "/home/kantord/repos/SeaGOAT/.venv/lib/python3.11/site-packages/nest_asyncio.py", line 99, in run_until_complete
return f.result()
^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/futures.py", line 203, in result
raise self._exception.with_traceback(self._exception_tb)
File "/usr/lib/python3.11/asyncio/tasks.py", line 267, in __step
result = coro.send(None)
^^^^^^^^^^^^^^^
File "/home/kantord/repos/SeaGOAT/seagoat/engine.py", line 140, in fetch
self._results.extend(source["fetch"](self.query_string, limit_clue))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kantord/repos/SeaGOAT/seagoat/sources/chroma.py", line 50, in fetch
files[path].add_line(line, distance)
File "/home/kantord/repos/SeaGOAT/seagoat/result.py", line 99, in add_line
self.line_texts[line - 1],
~~~~~~~~~~~~~~~^^^^^^^^^^
IndexError: list index out of range

Looks like this could be due to outdated data being in the database

@kantord kantord added the bug Something isn't working label Sep 22, 2023
@kantord kantord closed this as completed Sep 27, 2023
@kantord
Copy link
Owner Author

kantord commented Sep 27, 2023

duplicate of #226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant