Code-server: Searching does not work with EACCES error

Created on 18 May 2020  路  4Comments  路  Source: cdr/code-server

Reproduced with docker installation in version 3.3.0.
When trying to search (Ctrl+Shift+F) an error appears:

spawn /usr/lib/code-server/lib/vscode/node_modules/vscode-ripgrep/bin/rg EACCES

Looking inside the container I see that the binary under the path mentioned does not have execute permissions:

root@708059e3622c:~# ls -la /usr/lib/code-server/lib/vscode/node_modules/vscode-ripgrep/bin/rg
-rw-r--r-- 1 root root 5037104 May 17 23:01 /usr/lib/code-server/lib/vscode/node_modules/vscode-ripgrep/bin/rg

Granting the necessary execute permissions fixes the issue:
chmod +x /usr/lib/code-server/lib/vscode/node_modules/vscode-ripgrep/bin/rg

Most helpful comment

Can confirm, having the same issue using the NPM installed version of code-server. This also breaks certain extensions like Todo Tree...

For the NPM install the directory is slightly different: /usr/lib/node_modules/code-server/lib/vscode/node_modules/vscode-ripgrep/bin/rg

All 4 comments

Can confirm, having the same issue using the NPM installed version of code-server. This also breaks certain extensions like Todo Tree...

For the NPM install the directory is slightly different: /usr/lib/node_modules/code-server/lib/vscode/node_modules/vscode-ripgrep/bin/rg

Fixing now, sorry about this!

Duplicate of #1665

Hi, sorry for the duplicate.
I can confirm that using 3.3.1 the issue is fixed.
Thanks for the very fast response!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrischabot picture chrischabot  路  3Comments

avelino picture avelino  路  3Comments

broady picture broady  路  3Comments

pchecinski picture pchecinski  路  3Comments

infogulch picture infogulch  路  3Comments