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

when you use search function it shows a split second then goes Cannot read property 'on' of undefined #832

Closed
gurachan opened this issue Jul 5, 2019 · 11 comments
Labels
bug Something isn't working waiting-for-info Waiting for more information from submitter

Comments

@gurachan
Copy link

gurachan commented Jul 5, 2019

  • code-server version: just now fresh build
  • OS Version: 18.04

Description

Steps to Reproduce

step 1: search

@gurachan gurachan added the bug Something isn't working label Jul 5, 2019
@gurachan
Copy link
Author

gurachan commented Jul 5, 2019

i already install net-tools

@gurachan
Copy link
Author

gurachan commented Jul 6, 2019

Error: spawn /tmp/code-server/dependencies/rg EACCES    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)    at onErrorNT (internal/child_process.js:415:16)    at process._tickCallback (internal/process/next_tick.js:63:19)

@deansheather
Copy link
Member

Looks like it's failing to run ripgrep for the search. code-server contains rg inside of it's executable, and extracts it so it can run it.

Try running /tmp/code-server/dependencies/rg in a terminal, and if you get "permission denied", run sudo chmod +x /tmp/code-server/dependencies/rg before trying again.

@gurachan
Copy link
Author

gurachan commented Jul 8, 2019

still permission denied

@gurachan
Copy link
Author

any news?

@code-asher
Copy link
Member

Does this issue persist in v2? I haven't been able to replicate it.

@code-asher code-asher added the waiting-for-info Waiting for more information from submitter label Oct 23, 2019
@gurachan
Copy link
Author

well it happened to me on v1. if you use the binary ..on server that has web hosting panel on it.. such as cpanel or cyberpanel those guys mount tmp without execution thats why this happened.. the only solution is to build it under their jailed ssh account.. ..

in v2.... still happening .. building it from source will fix it.. because the vscode is right beside code server ..if i go in tmp .. i dont see that /tmp/code-server/..

maybe I suggest that just extract it beside where user put it.. not on the temp it self.. example if i do

mkdir lol
cd lol
wget binary url here
then execute
the binary will create the folder beside it self..

@sr229
Copy link
Contributor

sr229 commented Oct 24, 2019

I'm debugging latest LKGR, this is no longer present.

@sr229 sr229 closed this as completed Oct 24, 2019
@gurachan
Copy link
Author

LKGR compatible even if tmp had no exec perm? does it not extract on tmp anymore?

@code-asher
Copy link
Member

Ohh that's interesting. So you can write to /tmp you just can't execute from it?

@code-asher
Copy link
Member

I opened an issue: #1102.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

4 participants