From dd0d7d56459d21e9f3410391e7dfc2a93dbcb755 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 5 Apr 2021 14:47:58 -0700 Subject: [PATCH] docs(termux): add workaround for search --- docs/install.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/install.md b/docs/install.md index b56b1644..6536a69e 100644 --- a/docs/install.md +++ b/docs/install.md @@ -10,6 +10,7 @@ - [Fedora, CentOS, RHEL, SUSE](#fedora-centos-rhel-suse) - [Arch Linux](#arch-linux) - [Termux](#termux) + - [Known Search Issue](#known-search-issue) - [yarn, npm](#yarn-npm) - [macOS](#macos) - [Standalone Releases](#standalone-releases) @@ -134,6 +135,23 @@ Termux is an Android terminal application and Linux environment, which can also To upgrade run: `yarn global upgrade code-server --latest` +### Known Search Issue + +There is a known issue with search not working on Android because it's missing `bin/rg`. To fix: + +1. Install `ripgrep` with `pkg` + ```sh + pkg install ripgrep + ``` +2. Make a soft link using `ln -s` + +```sh +# run this command inside the code-server directory +ln -s $PREFIX/bin/rg ./lib/vscode/node_modules/vscode-ripgrep/bin/rg +``` + +For more context, see [comment](https://github.com/cdr/code-server/issues/1730#issuecomment-721515979). + ## yarn, npm We recommend installing with `yarn` or `npm` when: