Giter Club home page Giter Club logo

Comments (5)

jbyuki avatar jbyuki commented on May 31, 2024

I assume you're running the built-in lua server (started with :InstantStartServer). I guess a good starting point would me to give the messages emitted by the server and clients as well if possible. By messages I mean the history displayed by :messages.

Any other strange behaviour would certainly help.

from instant.nvim.

kayleg avatar kayleg commented on May 31, 2024

I am using the built-in lua server, with SpaceVim (latest) and Neovim 0.5.0

With set verbose=1

On the server when I make an edit I see the following in both the server's and clients messages:

Reading ShaDa file "/Users/me/.local/share/nvim/shada/main.shada" info marks oldfiles
Writing ShaDa file "/Users/me/.local/share/nvim/shada/main.shada"

When editing on the client, no such output is generated on either.

Note sure if maybe I'm doing something wrong; these are my steps to connect:

Server

  1. InstantStartServer
  2. InstantStartSession 127.0.0.1 8080
  3. e temp.txt

Client

  1. InstantJoinSession 127.0.0.1 8080
  2. InstantFollow kayleg <- Username set in config
  3. Switch to buffer 2 (shows the temp.txt file)

from instant.nvim.

kayleg avatar kayleg commented on May 31, 2024

Update:

When using Single instead of Session it works every time following these steps:

Server

  1. open neovim
  2. open empty buffer
  3. InstantStartServer
  4. InstantStartSingle 127.0.0.1 8080

Client

  1. open neovim
  2. open empty buffer
  3. InstantJoinSingle 127.0.0.1 8080

With Single mode the client is correctly switched to the server's buffer and bi-directional editing works

from instant.nvim.

jbyuki avatar jbyuki commented on May 31, 2024

The changes from the client are not sent probably because it's in follow mode, initiated by InstartFollow. If you don't start it or invoke InstantStopFollow, you should be able to send keystrokes from the client.

Note that even though the client doesn't seem to receive any input, the text modifications are still sent. You can list the available buffers using :ls and switch to the same buffer as the server to see the changes, temp.txt in the case you described.

from instant.nvim.

jbyuki avatar jbyuki commented on May 31, 2024

Was it resolved @kayleg ?

from instant.nvim.

Related Issues (20)

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.