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

bug: cody-agent CLI returns errors (clean install on Google Cloud VPS / Debian 12) #4266

Open
optimalisatie opened this issue May 23, 2024 · 0 comments
Labels
bug Something isn't working clients/vscode cody

Comments

@optimalisatie
Copy link

optimalisatie commented May 23, 2024

Version

latest

Describe the bug

I intended to test the cody-agent 'experimental-cli' for potential server administration usage and it returned several errors. Considering the value of such a cli tool, I decided to file a bug report.

CLI docs / install instructions: https://github.com/sourcegraph/cody/tree/main/cli

First problem: When performing a chat query, there is a long wait (about 20-30 seconds) and then the following error:

No handler for notification with method remoteRepo/didChange.

A few seconds later, the answer is provided.

Command used (official demo command): cody-agent experimental-cli chat -m 'what color is the sky?'

After three questions, another more profound error occured, directly after No handler for notification with method remoteRepo/didChange:

----agent stderr----
window.withProgress: uncaught error EvalError: symf index creation failed: Error: symf exited with code 1
    at toSymfError (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:641:12)
    at SymfRunner._unsafeUpsertIndex (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:454:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

--------------------
----agent stderr----
Uncaught exception: EvalError: symf index creation failed: Error: symf exited with code 1
    at toSymfError (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:641:12)
    at SymfRunner._unsafeUpsertIndex (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:454:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

--------------------
----agent stderr----
Uncaught exception: EvalError: symf index creation failed: Error: symf exited with code 1
    at toSymfError (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:641:12)
    at SymfRunner._unsafeUpsertIndex (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:454:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

--------------------
----agent stderr----
Uncaught exception: EvalError: symf index creation failed: Error: symf exited with code 1
    at toSymfError (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:641:12)
    at SymfRunner._unsafeUpsertIndex (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:454:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

--------------------
----agent stderr----
Uncaught exception: EvalError: symf index creation failed: Error: symf exited with code 1
    at toSymfError (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:641:12)
    at SymfRunner._unsafeUpsertIndex (/home/user/.nvm/versions/node/v20.5.1/lib/node_modules/@sourcegraph/vscode/src/local-context/symf.ts:454:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

--------------------

Expected behavior

The CLI answers super fast, as made possible with Anthropic Haiku, having experienced this through the tool https://github.com/optimalisatie/ai-shell-anthropic

Additional context

No response

@optimalisatie optimalisatie added bug Something isn't working clients/vscode labels May 23, 2024
@github-actions github-actions bot added the cody label May 23, 2024
@optimalisatie optimalisatie changed the title bug: CLI returns errors (clean install on Google Cloud vps) bug: cody-agent CLI returns errors (clean install on Google Cloud VPS / Debian 12) May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clients/vscode cody
Projects
None yet
Development

No branches or pull requests

1 participant