question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

linux version of rg binary included in recent mac os release package

See original GitHub issue
  • code-server v1.696-vsc1.33.0
  • mac os x 10.14.2

Description

cmd-p quick search does not work on the recent mac package with a fresh user data directory because the package has the linux version of the rg binary. So, you get “No results found.” for all searches.

Also can cause transient issue where server bails on startup with

INFO  Starting shared process [1/5]...
INFO  Starting shared process [2/5]... {"error":"P is not defined"}
/Users/travis/build/codercom/code-server/packages/server/out/cli.js:518
***************************************************************************** */var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;ca

Error: "Shared process" is already retrying
    at o.run (/Users/travis/build/codercom/code-server/packages/server/out/cli.js:518:2096531)
    at Object.run (/Users/travis/build/codercom/code-server/packages/server/out/cli.js:518:2096099)
    at ChildProcess.on.e (/Users/travis/build/codercom/code-server/packages/server/out/cli.js:518:2093316)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

Steps to Reproduce

  1. start code with new user data directory, because the correct rg binary may be in place from installs of previous releases that included the correct binary, e.g.: code-server1.696-vsc1.33.0-darwin-x64/code-server --user-data-dir this_dir_doesnt_exist --extensions-dir ~/.vscode/extensions
  2. the server may fail to start with the error code above. or, if it does start, search will not work. or just look at the file directly:
$ this_dir_doesnt_exist/dependencies/rg
-bash: foo/dependencies/rg: cannot execute binary file: Exec format error
$ file foo/dependencies/rg
this_dir_doesnt_exist/dependencies/rg: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=6071d8258757947bc45d235054734b278a3c226d, stripped

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sr229commented, Oct 29, 2019

@code-asher I have a mac test environment that I borrowed so I’ll check if that works now.

Update: It should work as far as testing is concerned (macOS Catalina environment)

0reactions
nhooyrcommented, Jan 29, 2020

If this is still a problem, please feel free to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

R for macOS - R Project
This directory contains binaries for a base distribution and packages to run on macOS. Releases for old Mac OS X systems (through Mac...
Read more >
Binary Packages Available from Third Parties - OpenAFS Wiki
While OpenAFS.org packages up binary releases of OpenAFS, third parties may also release their own binary packages of OpenAFS.
Read more >
Download - ImageMagick
Download. Linux Binary Release • Mac OS X Binary Release • iOS Binary Release • Windows Binary Release. You can install ImageMagick from...
Read more >
ripgrep recursively searches directories for a regex ... - GitHub
(To disable all automatic filtering by default, use rg -uuu .) ripgrep has first class support on Windows, macOS and Linux, with binary...
Read more >
GFortranBinaries - GCC Wiki
This page gathers links to all unofficial gfortran binary packages people regularly build, based on the current development gfortran source code ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found