Describe the bug
ERROR: vectorcode.main : Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/main.py", line 90, in async_main
return_val = await vectorise(final_configs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 325, in vectorise
await task
File "/home/default/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/tasks.py", line 615, in _wait_for_one
return f.result() # May raise f.exception().
^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-26' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-27' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-28' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-29' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-30' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-31' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-32' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-33' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-34' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=RuntimeError('Download error: Langua
ge \'c++\' not available for download. Available groups: ["all"]')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 125, in chunked_add
chunks: list[Chunk | str] = list(
^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/chunking.py", line 407, in chunk
parser = get_parser(cast(SupportedLanguage, name.lower()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/tree_sitter_language_pack/api.py", line 111, in get_parser
return _rust.get_parser(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error: Language 'c++' not available for download. Available groups: ["all"]
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-35' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=ConnectError('All connection attempt
s failed')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
yield
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 394, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
raise exc from None
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
raise exc
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request
stream = await self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 124, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp
return await self._backend.connect_tcp(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp
with map_exceptions(exc_map):
File "/home/default/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 101, in chunked_add
existing_chunks = await collection.get(
^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/models/AsyncCollection.py", line 127, in get
get_results = await self._client._get(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 134, in async_wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/async_fastapi.py", line 418, in _get
resp_json = await self._make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/async_fastapi.py", line 131, in _make_request
response = await self._get_client().request(method, url, **cast(Any, kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1540, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1629, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
File "/home/default/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-36' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=ConnectError('All connection attempt
s failed')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
yield
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 394, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
raise exc from None
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
raise exc
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request
stream = await self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 124, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp
return await self._backend.connect_tcp(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp
with map_exceptions(exc_map):
File "/home/default/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 101, in chunked_add
existing_chunks = await collection.get(
^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/models/AsyncCollection.py", line 127, in get
get_results = await self._client._get(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 134, in async_wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/async_fastapi.py", line 418, in _get
resp_json = await self._make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/async_fastapi.py", line 131, in _make_request
response = await self._get_client().request(method, url, **cast(Any, kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1540, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1629, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
File "/home/default/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
ERROR: asyncio : Task exception was never retrieved
future: <Task finished name='Task-37' coro=<chunked_add() done, defined at /home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py:86> exception=ConnectError('All connection attempt
s failed')>
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
yield
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 394, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
raise exc from None
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
raise exc
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request
stream = await self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_async/connection.py", line 124, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp
return await self._backend.connect_tcp(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp
with map_exceptions(exc_map):
File "/home/default/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
i left out at least 1000 lines of the same message here
Traceback (most recent call last):
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/vectorcode/subcommands/vectorise.py", line 101, in chunked_add
existing_chunks = await collection.get(
^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/models/AsyncCollection.py", line 127, in get
get_results = await self._client._get(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 134, in async_wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/async_fastapi.py", line 418, in _get
resp_json = await self._make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/chromadb/api/async_fastapi.py", line 131, in _make_request
response = await self._get_client().request(method, url, **cast(Any, kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1540, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1629, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
File "/home/default/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/default/.local/share/uv/tools/vectorcode/lib/python3.11/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
To Reproduce
Steps to reproduce the behavior:
- ...
- ...
Expected behavior
A clear and concise description of what you expected to happen.
VectorCode Configuration
Please attach your <project_root>/.vectorcode/config.json or
~/.config/vectorcode/config.json here.
For issues with the Neovim plugin, please also attach your setup options:
return {
-- ── VectorCode ────────────────────────────────────────────────────────
{
"Davidyz/VectorCode",
version="*",
build="uv tool upgrade vectorcode",
dependencies= { "nvim-lua/plenary.nvim" },
opts= {
cli_cmds= {
vectorcode=vim.fn.expand("~/.local/bin/vectorcode"),
},
async_opts= {
debounce=500,
events= { "BufWritePost", "InsertEnter" },
exclude_this=true,
n_query=10,
notify=false,
run_on_register=false,
},
async_backend="lsp",
exclude_this=true,
n_query=10,
notify=false,
timeout_ms=5000,
on_setup= {
update=false,
lsp=true,
},
sync_log_env_var=false,
},
config=function(_, opts)
-- Silence spurious LSP detach warningslocalorig=vim.lsp.buf_detach_clientvim.lsp.buf_detach_client=function(bufnr, client_id)
pcall(orig, bufnr, client_id)
endrequire("vectorcode").setup(opts)
-- Kill any stale vectorcode/chromadb processes from previous sessionsvim.system({ "pkill", "-f", "vectorcode" }, {}, function() end)
vim.system({ "pkill", "-f", "chromadb.cli" }, {}, function() end)
localcacher=require("vectorcode.cacher").lsplocalvc_cmd=opts.cli_cmdsandopts.cli_cmds.vectorcodeor"vectorcode"-- ── Global process lock: only ONE vectorcode CLI runs at a time ───localvc_running=falselocalvc_queue=nillocalfunctionrun_vc(cmd, cwd, on_done)
ifvc_runningthenvc_queue= { cmd=cmd, cwd=cwd, on_done=on_done }
returnendvim.system({ "pgrep", "-f", "vectorcode vectorise\\|vectorcode update" }, {}, function(pgrep)
ifpgrep.code==0thenvim.defer_fn(function()
run_vc(cmd, cwd, on_done)
end, 2000)
returnendvc_running=truevim.system(cmd, { cwd=cwd }, function(result)
vc_running=falseifon_donethenon_done(result)
endifvc_queuethenlocalnext=vc_queuevc_queue=nilvim.schedule(function()
run_vc(next.cmd, next.cwd, next.on_done)
end)
endend)
end)
end-- ── Spinner ───────────────────────────────────────────────────────localspinner_frames= { "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" }
localspinner_idx=0localspinner_timer=nillocalfunctionstart_spinner(label)
spinner_idx=0ifspinner_timerthenspinner_timer:stop()
spinner_timer:close()
endspinner_timer=vim.uv.new_timer()
spinner_timer:start(
0,
120,
vim.schedule_wrap(function()
spinner_idx= (spinner_idx%#spinner_frames) +1vim.g.vectorcode_progress=spinner_frames[spinner_idx] .."" ..labelpcall(function()
require("lualine").refresh()
end)
end)
)
endlocalfunctionstop_spinner()
ifspinner_timerthenspinner_timer:stop()
spinner_timer:close()
spinner_timer=nilendvim.g.vectorcode_progress=nilpcall(function()
require("lualine").refresh()
end)
end-- ── Stats parser ─────────────────────────────────────────────────localfunctionparse_stats(stdout)
ifnotstdoutorstdout=="" thenreturnnilendlocalok, data=pcall(vim.json.decode, stdout)
ifnotokortype(data) ~="table" thenreturnnilendlocalparts= {}
if (data.addor0) >0thentable.insert(parts, data.add.." added")
endif (data.updateor0) >0thentable.insert(parts, data.update.." updated")
endif (data.removedor0) >0thentable.insert(parts, data.removed.." removed")
endif (data.skipor0) >0thentable.insert(parts, data.skip.." skipped")
endif (data.failor0) >0thentable.insert(parts, data.fail.." failed")
endif#parts==0thenreturn"no changes"endreturntable.concat(parts, ", ")
end-- ── Write project config ─────────────────────────────────────────localfunctionwrite_project_config(root)
localconfig_path=root.."/.vectorcode/config.json"ifvim.fn.filereadable(config_path) ==0thenlocalf=io.open(config_path, "w")
iffthenf:write(
'{"chunk_size":-1,"filetype_map":{"cpp":["\\\\.cpp$","\\\\.cppm$","\\\\.cc$","\\\\.cxx$","\\\\.hpp$","\\\\.h$"]}}'
)
f:close()
endendend-- ── Vectorise whole project ───────────────────────────────────────localfunctiondo_vectorise(root)
localname=vim.fn.fnamemodify(root, ":t")
vim.schedule(function()
start_spinner("vectorcode indexing " ..name)
end)
run_vc({ vc_cmd, "vectorise", "--pipe", "--project_root", root, "--recursive", "." }, root, function(result)
vim.schedule(function()
stop_spinner()
ifresult.code==0thenlocalstats=parse_stats(result.stdout)
vim.notify("VectorCode: indexed " ..name.." — " .. (statsor"done"), vim.log.levels.INFO)
elsevim.notify("VectorCode vectorise failed: " .. (result.stderror""), vim.log.levels.WARN)
endend)
end)
end-- ── Update already-indexed project ───────────────────────────────localfunctiondo_update(root)
localname=vim.fn.fnamemodify(root, ":t")
vim.schedule(function()
start_spinner("vectorcode updating " ..name)
end)
run_vc({ vc_cmd, "vectorise", "--pipe", "--project_root", root, "--recursive", "." }, root, function(result)
vim.schedule(function()
stop_spinner()
ifresult.code==0thenlocalstats=parse_stats(result.stdout)
ifstatsandstats~="no changes" thenvim.notify("VectorCode: updated " ..name.." — " ..stats, vim.log.levels.INFO)
endelsevim.notify("VectorCode update failed: " .. (result.stderror""), vim.log.levels.WARN)
endend)
end)
end-- ── Kill stale CLI processes ──────────────────────────────────────localfunctionkill_stale_vc_processes()
vim.system({ "pkill", "-f", "vectorcode.*(vectorise|update|query|init|check)" }, {}, nil)
end-- ── Init + check + vectorise or update ───────────────────────────localfunctionauto_setup_project(root)
localname=vim.fn.fnamemodify(root, ":t")
kill_stale_vc_processes()
vc_running=falsevc_queue=nillocalfunctionstep_vectorise_or_update(already_indexed)
write_project_config(root)
ifalready_indexedthendo_update(root)
elsevim.schedule(function()
vim.notify("VectorCode: indexing " ..name, vim.log.levels.INFO)
end)
do_vectorise(root)
endendlocalfunctionstep_check()
run_vc({ vc_cmd, "check", "--project_root", root }, root, function(result)
vim.schedule(function()
step_vectorise_or_update(result.code==0)
end)
end)
endifvim.fn.isdirectory(root.."/.vectorcode") ==0thenvim.notify("VectorCode: initialising " ..name, vim.log.levels.INFO)
run_vc({ vc_cmd, "init", "--project_root", root }, root, function(init_result)
ifinit_result.code~=0thenvim.schedule(function()
vim.notify("VectorCode init failed: " .. (init_result.stderror""), vim.log.levels.WARN)
end)
returnendvim.schedule(step_check)
end)
elsestep_check()
endend-- ── Per-file save debounce ────────────────────────────────────────locallast_write_times= {}
-- ── Autocmds ─────────────────────────────────────────────────────localhandled_roots= {}
vim.api.nvim_create_autocmd("BufReadPost", {
desc="Auto-setup VectorCode for project and register buffer",
callback=function(args)
localbufname=vim.api.nvim_buf_get_name(args.buf)
ifbufname=="" orvim.bo[args.buf].buftype~="" thenreturnendlocalroot=vim.fs.root(args.buf, { ".git", ".vectorcode" }) orvim.fn.fnamemodify(bufname, ":h")
ifnothandled_roots[root] thenhandled_roots[root] =truevim.defer_fn(function()
auto_setup_project(root)
end, 2000)
endcacher.async_check("config", function()
cacher.register_buffer(args.buf, {
n_query=10,
debounce=500,
notify=false,
run_on_register=false,
})
end, nil)
end,
})
vim.api.nvim_create_autocmd("BufWritePost", {
desc="Re-vectorise saved file in VectorCode",
callback=function(args)
localbufname=vim.api.nvim_buf_get_name(args.buf)
ifbufname=="" orvim.bo[args.buf].buftype~="" thenreturnendlocalroot=vim.fs.root(args.buf, { ".git", ".vectorcode" })
ifnotrootorvim.fn.isdirectory(root.."/.vectorcode") ==0thenreturnendlocalnow=vim.uv.now()
iflast_write_times[bufname] and (now-last_write_times[bufname]) <10000thenreturnendlast_write_times[bufname] =nowlocalfname=vim.fn.fnamemodify(bufname, ":t")
run_vc({ vc_cmd, "vectorise", "--pipe", "--project_root", root, bufname }, root, function(result)
vim.schedule(function()
ifresult.code==0thenlocalstats=parse_stats(result.stdout)
ifstatsandstats~="no changes" thenvim.notify("VectorCode: " ..fname.." — " ..stats, vim.log.levels.INFO)
endendend)
end)
end,
})
-- ── Which-key group ───────────────────────────────────────────────localwk_ok, wk=pcall(require, "which-key")
ifwk_okthenwk.add({
{ "<leader>av", group="VectorCode", icon="" },
{ "<leader>avk", desc="Kill stale processes" },
})
endend,
keys= {
{
"<leader>avk",
function()
vim.fn.system("pkill -f 'vectorcode.*(vectorise|update|query|init|check)'")
vim.g.vectorcode_progress=nilpcall(function()
require("lualine").refresh()
end)
vim.notify("VectorCode: killed stale processes", vim.log.levels.INFO)
end,
desc="Kill stale VectorCode processes",
},
{
"<leader>avs",
"<cmd>VectorCode ls<cr>",
desc="List indexed projects",
},
{
"<leader>avq",
function()
localquery=vim.fn.input("VectorCode query: ")
ifquery=="" thenreturnendlocalroot=vim.fs.root(0, { ".git", ".vectorcode" })
ifnotrootthenvim.notify("VectorCode: no project root found", vim.log.levels.WARN)
returnendlocalcmd=vim.fn.expand("~/.local/bin/vectorcode")
vim.system({ cmd, "query", "--project_root", root, query }, { cwd=root }, function(result)
vim.schedule(function()
ifresult.code==0andresult.stdout~="" thenvim.notify(result.stdout, vim.log.levels.INFO)
elsevim.notify("VectorCode query failed: " .. (result.stderror""), vim.log.levels.WARN)
endend)
end)
end,
desc="Query codebase",
},
{
"<leader>avu",
function()
localroot=vim.fs.root(0, { ".git", ".vectorcode" })
ifnotrootthenvim.notify("VectorCode: no project root found", vim.log.levels.WARN)
returnendlocalname=vim.fn.fnamemodify(root, ":t")
localcmd=vim.fn.expand("~/.local/bin/vectorcode")
-- NOTE: reuses module-level start_spinner/stop_spinner defined in config()-- but keymaps run outside that closure, so we inline a lightweight version.localt_frames= { "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" }
localt_idx=0localt=vim.uv.new_timer()
t:start(
0,
120,
vim.schedule_wrap(function()
t_idx= (t_idx%#t_frames) +1vim.g.vectorcode_progress=t_frames[t_idx] .." updating " ..namepcall(function()
require("lualine").refresh()
end)
end)
)
vim.system(
{ cmd, "vectorise", "--pipe", "--project_root", root, "--recursive", "." },
{ cwd=root },
function(result)
vim.schedule(function()
t:stop()
t:close()
vim.g.vectorcode_progress=nilpcall(function()
require("lualine").refresh()
end)
ifresult.code==0thenlocalok, data=pcall(vim.json.decode, result.stdoutor"")
localadd=okanddataand (data.addor0) or0localupd=okanddataand (data.updateor0) or0localparts= {}
ifadd>0thentable.insert(parts, add.." added")
endifupd>0thentable.insert(parts, upd.." updated")
endlocalstats=#parts>0andtable.concat(parts, ", ") or"done"vim.notify("VectorCode: updated " ..name.." — " ..stats, vim.log.levels.INFO)
elsevim.notify("VectorCode update failed: " .. (result.stderror""), vim.log.levels.WARN)
endend)
end
)
end,
desc="Update project index",
},
{
"<leader>avi",
function()
localroot=vim.fs.root(0, { ".git", ".vectorcode" })
ifnotrootthenvim.notify("VectorCode: no project root found", vim.log.levels.WARN)
returnendlocalname=vim.fn.fnamemodify(root, ":t")
localcmd=vim.fn.expand("~/.local/bin/vectorcode")
localt_frames= { "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" }
localt_idx=0localt=vim.uv.new_timer()
t:start(
0,
120,
vim.schedule_wrap(function()
t_idx= (t_idx%#t_frames) +1vim.g.vectorcode_progress=t_frames[t_idx] .." indexing " ..namepcall(function()
require("lualine").refresh()
end)
end)
)
vim.system(
{ cmd, "vectorise", "--pipe", "--project_root", root, "--recursive", "." },
{ cwd=root },
function(result)
vim.schedule(function()
t:stop()
t:close()
vim.g.vectorcode_progress=nilpcall(function()
require("lualine").refresh()
end)
ifresult.code==0thenlocalok, data=pcall(vim.json.decode, result.stdoutor"")
localstats=okanddataandtostring(data.addor0) .." added" or"done"vim.notify("VectorCode: indexed " ..name.." — " ..stats, vim.log.levels.INFO)
elsevim.notify("VectorCode vectorise failed: " .. (result.stderror""), vim.log.levels.WARN)
endend)
end
)
end,
desc="Re-index whole project",
},
{
"<leader>avr",
function()
localbufnr=vim.api.nvim_get_current_buf()
localcacher=require("vectorcode.cacher").lspcacher.deregister_buffer(bufnr)
cacher.async_check("config", function()
cacher.register_buffer(bufnr, {
n_query=10,
debounce=500,
notify=true,
run_on_register=true,
})
end, nil)
vim.notify("VectorCode: buffer cache restarted", vim.log.levels.INFO)
end,
desc="Restart buffer cache",
},
{
"<leader>avd",
function()
localroot=vim.fs.root(0, { ".git", ".vectorcode" })
ifnotrootthenvim.notify("VectorCode: no project root found", vim.log.levels.WARN)
returnendlocalname=vim.fn.fnamemodify(root, ":t")
localconfirm=vim.fn.confirm("Drop VectorCode index for " ..name.."?", "&Yes\n&No", 2)
ifconfirm~=1thenreturnendlocalcmd=vim.fn.expand("~/.local/bin/vectorcode")
vim.system({ cmd, "drop", "--project_root", root }, { cwd=root }, function(result)
vim.schedule(function()
ifresult.code==0thenvim.notify("VectorCode: dropped index for " ..name, vim.log.levels.INFO)
elsevim.notify("VectorCode drop failed: " .. (result.stderror""), vim.log.levels.WARN)
endend)
end)
end,
desc="Drop project index",
},
{
"<leader>avh",
"<cmd>checkhealth vectorcode<cr>",
desc="Health check",
},
},
},
}If it only occurs when you use VectorCode with a particular plugin, please
attach the relevant config here:
Platform information:
- If the issue is about the CLI, attach a list of packages in the Python virtual environment:
- for
pipx, run pipx runpip vectorcode freeze; - for
uv, run uv tool run --from=vectorcode python -m ensurepip && uv tool run --from=vectorcode python -m pip freeze.
uv run --with tree-sitter-cpp --with tree-sitter vectorcode vectorise --chunk_size 2500 --overlap 0.0 -r .
Or: vectorcode vectorise -r .
- If the issue is about the neovim plugin, attach the neovim version you're using:
System Information:
For Mac users, please also mention whether you're using intel or apple silicon devices.
- OS: Linux, MacOS, Windows...
Additional context
Add any other context about the problem here. Please attach
CLI logs
or
nvim plugin logs
if applicable.
Describe the bug
i left out at least 1000 lines of the same message here
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
VectorCode Configuration
Please attach your
<project_root>/.vectorcode/config.jsonor~/.config/vectorcode/config.jsonhere.For issues with the Neovim plugin, please also attach your
setupoptions:If it only occurs when you use VectorCode with a particular plugin, please
attach the relevant config here:
{ "chunk_size": -1 }Platform information:
pipx, runpipx runpip vectorcode freeze;uv, runuv tool run --from=vectorcode python -m ensurepip && uv tool run --from=vectorcode python -m pip freeze.System Information:
Additional context
Add any other context about the problem here. Please attach
CLI logs
or
nvim plugin logs
if applicable.