Skip to content

Unable to vectorise project - argument list too long #64

Closed

Description

@Ajaymamtora

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?

Activity

  1. Davidyz commented on Apr 5, 2025

    @Davidyz
    Owner

    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 in src/.

    You can also try putting the following content in a .vectorcode/vectorcode.include file (start from the project root):

    src/**/*.ts
    

    and run vectorcode vectorise without arguments.
    This should have the same effect.

  2. Repository owner locked and limited conversation to collaborators on Apr 6, 2025
  3. converted this issue into a discussion #66 on Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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