Skip to content

Error when attempting to connect to a remote machine #224

Description

@Steinhagen

Describe the bug

The error occurs when attempting to connect to a remote Debian machine. This issue doesn't happen on the first connection. Usually it happens after some time.

More information regarding the issue. After some time, when attempting to connect to the machine, it will freeze for a few seconds at Launching Neovim server on the remote machine, before connecting to the machine and then receiving the following error message:

Lua callback:
vim/_editor.lua:0: E5560: nvim_echo must not be called in a fast event context
stack traceback:
	[C]: in function 'nvim_echo'
	vim/_editor.lua: in function 'notify'
	.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:827: in function <.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:826>
	[C]: in function 'system'
	.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:810: in function ''
	vim/_editor.lua: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>
Remote server stopped

{"debian-vm":{"arch":"x86_64","neovim_version":"nightly","remote_neovim_home":"/home/username/.remote-nvim","config_copy":true,"connection_options":"","provider":"ssh","neovim_install_method":"binary","client_auto_start":true,"os":"Linux","workspace_id":"qbZgYF60eV","host":"debian-vm"}}

To reproduce

Use the repro.lua to
reproduce the issue. This provides me with a better chance to reproduce the issue.
This also provides a sanity check of if the issue is with the plugin or some other part of your configuration.

Incase you cannot and still feel something is off with the plugin, do report. I won't bite!

Steps to reproduce the behavior:

  1. :RemoteStart
  2. > Remote Neovim: Connect to existing workspace
  3. > SSH: debian-vm

Expected behavior

The connection should occur without any error / timeout.

System information

  • Your local OS: NixOS
  • Local Neovim version: Nightly
  • Remote host OS (if applicable): Debian
  • Remote Neovim version (if applicable): Nightly

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions