GithubHelp home page GithubHelp logo

Cannot start neovide about run-or-raise HOT 6 CLOSED

manfredlotz avatar manfredlotz commented on June 19, 2024
Cannot start neovide

from run-or-raise.

Comments (6)

Mange avatar Mange commented on June 19, 2024
run-or-raise 'class = "neovide"' neovide  -- "--maximized -- --listen /tmp/nvimsocket"

It could be because you're terminating the CLI arguments twice with -- or wrapping all the arguments in a single string, making them all a single argument. Try

run-or-raise 'class = "neovide"' neovide  -- --maximized --listen /tmp/nvimsocket

See if that helps.

from run-or-raise.

manfredlotz avatar manfredlotz commented on June 19, 2024

No, this doesn't help either. Running you suggestion is like my way above. Nothing happens.

from run-or-raise.

Soft avatar Soft commented on June 19, 2024

Could you try the following command and see if that works

run-or-raise 'class = "neovide"' neovide --maximized -- --listen /tmp/nvimsocket

from run-or-raise.

manfredlotz avatar manfredlotz commented on June 19, 2024

Yes, this is working fine. Thanks a lot.

So, what is the moral of the story? Don't use quotes at all for the command arguments?

from run-or-raise.

Soft avatar Soft commented on June 19, 2024

run-or-raise receives two or more command line arguments where the first one is the expression used to match windows, the second one the command to execute if a suitable windows was not found, and any remaining arguments are passed to that command.

This means that in the case of your first attempt

run-or-raise 'class = "neovide"' neovide  -- "--maximized -- --listen /tmp/nvimsocket"

neovide would have received the following arguments:

  1. --
  2. --maximized -- --listen /tmp/nvimsocket

The important bit here is that it wil be neovide receiving the first -- argument, run-or-raise doesn't interpret that in any special way. Looking at neovide's help, it seems it will pass any arguments following -- to neovim. This means that here neovim will then receive the second argument --maximized -- --listen /tmp/nvimsocket. Since the argument was wrapped in quotes neovim will receive it as a single argument and I assume it does not know what to do with that and exits with an error.

from run-or-raise.

manfredlotz avatar manfredlotz commented on June 19, 2024

Thanks a lot for your explanations which make much sense.

from run-or-raise.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.