chipsenkbeil / distant

🚧 (Alpha stage software) Library and tooling that supports remote filesystem and process operations. 🚧
https://distant.dev
552 stars 11 forks source link

Exited Unexpectedly: exit code 1 #233

Open williamneves opened 7 months ago

williamneves commented 7 months ago

I'm trying to make distant work, but I couldt:

How to reproduce: distant installed on mac:

distant -V
distant 0.20.0
{
    "chipsenkbeil/distant.nvim",
    branch = "v0.3",
    lazy = false,
    config = function()
      require("distant"):setup()
    end,
  },

nvim commands

:DistantInstall
installed tp distant

:DistantCheckHealth
distant: require("distant.health").check()

distant.nvim ~
- OK distant installed
- OK distant version 0.20.0 meets minimum requirement of 0.20.0

Error:

:DistantConnect xxx (any host)
Exited unexpectedly: exit code 1

My system MacOS 13.2.1 iTerm2 Nvim (nvchad)

martlaf commented 7 months ago

I have the same (Exited unexpectedly: exit code 1) from nvim plugin (Ubuntu 23.10, nvim 0.10.0-dev, distant 0.20.0, distant.nvim 0.3) when doing :DistantLaunch ssh://user@server, which translates into a Connection timed out (os error 110) when just trying to do it through commandline (distant launch ssh://user@server)

I have ensured binaries are on path on remote server (ssh user@server distant server listen --daemon works fine for instance), and tried setting the --distant argument to point to it

As for me starting the server manually first I can use it with connect instead of launch, I guess I won't be pursuing this much further

dsuttonpreece commented 3 weeks ago

It looks like the docs have been updated. If using ssh mode you should use DistantConnect

Installing on your server

If you want to just use distant to connect to an ssh server, you can skip this and the remaining steps and use :DistantConnect ssh://example.com.