Unable to vectorise project - argument list too long #66
-
When I try to vectorise my typescript project with zsh, I get: vectorcode vectorise src/**/*.ts
zsh: argument list too long: vectorcode Then I tried with bash, and I get: bash-3.2$ vectorcode vectorise src/**/*.ts
Host at 127.0.0.1:8000 is unavailable. VectorCode will start its own Chromadb at a random port.
Vectorising files...: 100%|█████████████████████████████████████████████████████████████| 8/8 [00:00<00:00, 19.78it/s]
Added Updated Removed
------- --------- ---------
0 8 0 But there's definitely more than 8 typescript files in my project, is this expected? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, I think this is a restriction from the shell. Please try wrapping the wildcard in quotes: vectorcode vectorise "src/**/*.ts" -r The quote will pass the wildcard to VectorCode, which bypasses the shell restriction. The You can also try putting the following content in a
and run |
Beta Was this translation helpful? Give feedback.
Hi, I think this is a restriction from the shell. Please try wrapping the wildcard in quotes:
vectorcode vectorise "src/**/*.ts" -r
The quote will pass the wildcard to VectorCode, which bypasses the shell restriction. The
-r
flag means recursive, which will go through all sub-directories insrc/
.You can also try putting the following content in a
.vectorcode/vectorcode.include
file (start from the project root):and run
vectorcode vectorise
without arguments.This should have the same effect.