VTCode icon indicating copy to clipboard operation
VTCode copied to clipboard

[Bug]: vtcode dependencies install search-tools fails to install dependencies on Linux (Ubuntu)

Open glanzel opened this issue 1 month ago • 4 comments

Description: When running vtcode dependencies install search-tools on a clean Linux system (Ubuntu), the automatic routine fails to install both ripgrep and ast-grep.

  1. Issue with ripgrep: The automatic installer fails because it cannot elevate privileges to use apt. It throws an error instead of prompting for sudo password or telling the user to install it manually. text Error: Previous installation attempt failed (No supported installer found. Install APT, Cargo, or install ripgrep manually.). Not retrying for 24 hours.

  2. Issue with ast-grep: After manually installing ripgrep, the routine fails on ast-grep with the following error: text → Installing ast-grep into /home/username/.local/bin Error: No ast-grep release asset matched the current platform (x86_64-unknown-linux-musl, x86_64-unknown-linux-gnu)

Cause: The script looks for an asset name matching ast-grep-, but the official GitHub release assets are named app-x86_64-unknown-linux-gnu.zip (prefixed with app-). Proposed Solution / Feature Request: If the automatic installation fails due to permissions (ripgrep) or missing release assets (ast-grep), vtcode should catch the error and display a clear, actionable guide instructing the user to install them manually. Please consider adding a fallback message like: "Automatic installation failed. Please install ripgrep and ast-grep manually

Thanks for your work

glanzel avatar Nov 02 '26 10:11 glanzel

Thank you for reporting the issue, I will check it soon.

vinhnx avatar Nov 02 '26 13:11 vinhnx

Thanks for the detailed report. I fixed and will be landed in the next release:

  • ripgrep on Linux now prompts for your sudo password when a terminal is available, keeps the real apt error, and prints manual install steps on failure.
  • ast-grep mismatch errors now list the available release assets and print manual install steps.
  • install search-tools now tries both tools even if the first fails.

From next version, please pull the latest and rerun vtcode dependencies install search-tools. If anything still fails, paste the new output here. And I will take a look again. Since I don't have Linux/Ubuntu machine to actually test it.

vinhnx avatar Nov 02 '26 14:11 vinhnx

thank you. i report back when i install it on my other notebook.

glanzel avatar Nov 02 '26 16:11 glanzel

6. thank you. i report back when i install it on my other notebook.

Thank you, the release is now live https://github.com/vinhnx/VTCode/releases/tag/0.181.1

vinhnx avatar Nov 03 '26 00:11 vinhnx