Giter VIP home page Giter VIP logo

Comments (11)

tarruda avatar tarruda commented on July 17, 2024

If started as python -m neovim.ui.cli -gn -c , I got an error TypeError: Couldn't find foreign struct converter for 'cairo.Context'

It seems like your'e missing cairo gobject bindings. Whats your OS/version?

from pynvim.

coolwanglu avatar coolwanglu commented on July 17, 2024

Oh it could be, let me try.
I'm using Ubuntu 14.10

from pynvim.

tarruda avatar tarruda commented on July 17, 2024

Try apt-get install python-gi-cairo

from pynvim.

coolwanglu avatar coolwanglu commented on July 17, 2024

Thanks, I've just installed and package and tried again, now a window flashes before it immediately disappeared, and the program exited without any error.

from pynvim.

coolwanglu avatar coolwanglu commented on July 17, 2024

Oh, but python ... -gn is able to run now.

from pynvim.

tarruda avatar tarruda commented on July 17, 2024

Thanks, I've just installed and package and tried again, now a window flashes before it immediately disappeared, and the program exited without any error.

What command you tried? BTW you don't need the -n flag, its just a helper I added for attaching the screen during functional tests.

from pynvim.

coolwanglu avatar coolwanglu commented on July 17, 2024

python -m neovim.ui.cli -gn -c <listen_path>.
Btw, I didn't install the package, I just ran it in the root dir.

from pynvim.

tarruda avatar tarruda commented on July 17, 2024

python -m neovim.ui.cli -gn -c <listen_path>.
Btw, I didn't install the package, I just ran it in the root dir

Even without installing the package there shouldn't be a problem, I just did it on my machine and it successfully connects to <listen_path>. Can you add some print statements to discover whats wrong?

from pynvim.

coolwanglu avatar coolwanglu commented on July 17, 2024

OK I'll try. It could be some missing packages also, as I didn't install the meta ubuntu package.

from pynvim.

tarruda avatar tarruda commented on July 17, 2024

python -m neovim.ui.cli -gn -c .
Btw, I didn't install the package, I just ran it in the root dir

Hmm now that I think about it, this shouldn't work on master because the abstract ui termcap isn't used by default(I've been using the neovim/neovim#1820 branch for some time now). If you start a normal nvim instance it will use the old terminal UI/termcap.

Try this though:

  • In one shell, enter python -m neovim.ui.cli -g -l /tmp/nvim (start a new instance with abstract ui listening on /tmp/nvim)
  • From another shell, enter python -m neovim.ui.cli -g -c /tmp/nvim (connect to the previous instance)

from pynvim.

coolwanglu avatar coolwanglu commented on July 17, 2024

It's working now! Thanks!

from pynvim.

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.