Skip to content

[SOLVED] Global Search and Replace doesn't work; node.js spawn ENOENT error #1907

Closed

Description

@mike-pt
  • Web Browser: Firefox/Edge (Chromium based)
  • Local OS: macOS 10.15
  • Remote OS: FreeBSD 12.1
  • Remote Architecture: amd64
  • code-server --version: 3.4.1 48f7c27

Fail with “Error: spawn ENOENT”
image

Activity

  1. code-asher commented on Jul 24, 2020

    @code-asher
    Member

    That's odd, vscode-ripgrep is supposed to download ripgrep as part of the postinstall. When you installed code-server were there any errors about downloading rg?

    Something that might work to fix it would be to try running yarn in the vscode-ripgrep directory and see if it downloads rg.

    Re-installing code-server might also work.

  2. mike-pt commented on Jul 25, 2020

    @mike-pt
    Author

    I had troubles with npm but yearn worked fine no errors, also search and replace work fine infile just not global.

    I'll try the suggestion

  3. mike-pt commented on Jul 25, 2020

    @mike-pt
    Author

    The bin folder was empty but running yarn (and yarn instal) didn't download it either:

    yarn install v1.22.4
    warning ../../../../../../package.json: No license field
    [1/4] Resolving packages...
    success Already up-to-date.
    $ node ./lib/postinstall.js
    bin/ folder already exists, exiting
    Done in 0.23s.
    

    I wonder if it cause there's no binary for FreeBSD

  4. mike-pt commented on Jul 25, 2020

    @mike-pt
    Author

    There's a port though :)

    https://www.freshports.org/textproc/ripgrep/

    I installed it and simlinked rg inside the bin dir /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/vscode-ripgrep/bin

  5. changed the title [-]Global Search and Replace doesn't work; node.js spawn ENOENT error[/-] [+][SOLVED] Global Search and Replace doesn't work; node.js spawn ENOENT error[/+] on Jul 25, 2020
  6. code-asher commented on Jul 27, 2020

    @code-asher
    Member

    That makes sense! It might make sense to try and fix this on our end even if it's an upstream issue since we list FreeBSD in our install script and docs. Or possibly we can get a PR merged upstream.

  7. mike-pt commented on Jul 27, 2020

    @mike-pt
    Author

    Yeah I looked into that actually we should be easy to do at this side as a post yarn install (npm is not working for me but I assume it would be the same) that said I was actually gonna submit a GHI on MS side and point to the port

  8. added
    docs
    on Aug 31, 2020
  9. added this to the v3.5.1 milestone on Aug 31, 2020
  10. removed this from the v3.6.0 milestone on Oct 9, 2020
  11. nhooyr commented on Dec 8, 2020

    @nhooyr
    Contributor

    Should be fixed now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions