Giter Site home page Giter Site logo

Comments (4)

NilujePerchut avatar NilujePerchut commented on May 24, 2024 1

Thank you very much for your answer (and this useful plugin !).

Here follows a screencast of the my actions.
I am connecting to osdegirouette host using an entry in my .ssh/config.

screencast.webm

As you can see, as soon as I press enter after entering "2" to select nvim v0.9.1, RemoteStart get stuck.

After a few debugging I can tell that the command is stuck in the NeovimSSHProvider:get_user_selection function and never reach the end of the function. I can see the callback be called. But nothing more. As I said in my first post it takes the coroutine.yield() statement and never reach the end of the get_user_selection function.

I hope this will help.

I wanted to attach the log file but I can't find it.

Thanks in advance for your help.

from remote-nvim.nvim.

NilujePerchut avatar NilujePerchut commented on May 24, 2024 1

It's working great now.
Thank you very much !

from remote-nvim.nvim.

amitds1997 avatar amitds1997 commented on May 24, 2024

Thanks for reporting the issue! NeovimSSHProvider:get_user_selection uses vim.ui.select which operates async so the callback should resume the coroutine once a selection is made and the coroutine remains paused until then.

Could you please provide a screen cast showing the issue you are facing? I could not gather the exact scenario that you are running into. While doing that, could you also gather the debug logs? You can follow this comment about how to generate those logs.

from remote-nvim.nvim.

amitds1997 avatar amitds1997 commented on May 24, 2024

Here follows a screencast of the my actions. I am connecting to osdegirouette host using an entry in my .ssh/config.
screencast.webm

As you can see, as soon as I press enter after entering "2" to select nvim v0.9.1, RemoteStart get stuck.

After a few debugging I can tell that the command is stuck in the NeovimSSHProvider:get_user_selection function and never reach the end of the function. I can see the callback be called. But nothing more. As I said in my first post it takes the coroutine.yield() statement and never reach the end of the get_user_selection function.

Thanks for the screencast. The issue was indeed in the get_user_selection method. The default implemenatation of vim.ui.select is synchronous (it calls :inputlist). The previous implementation assumed that the implementation would be asynchronous (something that is true with plugins like dressing.nvim which override the interface).

The issue should be fixed by fb2c301 and you can check out the master branch to test it out. Do let me know if you still see this issue.

from remote-nvim.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.