Giter VIP home page Giter VIP logo

Comments (20)

roxma avatar roxma commented on June 13, 2024

Could you follow the trouble shooting section in READNE.md and provide the log of cm_core?

from nvim-completion-manager.

pjeschba avatar pjeschba commented on June 13, 2024

I ran in my shell:

NVIM_PYTHON_LOG_FILE=nvim.log NVIM_NCM_LOG_LEVEL=DEBUG NVIM_NCM_MULTI_THREAD=0 nvim bla.py
But nothing was generated in my working directory. Did I forget a step?

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

If no log file is generated, you need to start NCM manually and see what's happening, You could still follow the steps in the trouble-shooting section.

from nvim-completion-manager.

pjeschba avatar pjeschba commented on June 13, 2024

Apologies for the probably simple questions - I'm relatively new to using vim. I was not able to start NCM manually. I ran

:echo neovim_rpc#serveraddr()
From within vim and the terminal and got this error

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

NVIM_PYTHON_LOG_FILE=nvim.log NVIM_NCM_LOG_LEVEL=DEBUG NVIM_NCM_MULTI_THREAD=0 nvim bla.py It seems you're using neovim instead of vim8, in this case you need :echo v:servername instead of :echo neovim_rpc#serveraddr()

If you are using vim8, then the error you provided should be the cause of this issue.

from nvim-completion-manager.

pjeschba avatar pjeschba commented on June 13, 2024

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

Looks like the vim-hug-neovim-rpc fails to execute both :python3 import neovim_rpc_server and :python import neovim_rpc_server. You could check that manually.

Also make sure the pythonx directory of vim-hug-neovim-rpc is in the installation directory.

from nvim-completion-manager.

pjeschba avatar pjeschba commented on June 13, 2024

It says there is "No module named neovim_rpc_server" when I ran the latter command. I double checked to ensure my vim version has python as well.

The pythonx directory is in .vim/bundle/vim-hug-neovim-rpc/; I installed the plugins with Vundle.

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

If vim failed to execute both :python3 import neovim_rpc_server and :python import neovim_rpc_server.

Use :echo globpath(&rtp,'pythonx/neovim_rpc_server.py',1) to check the installation of vim-hug-neovim-rpc. If the result is empty, then vim-hug-neovim-rpc is somehow not properly installed. Something wrong with rtp maybe.

from nvim-completion-manager.

pjeschba avatar pjeschba commented on June 13, 2024

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

This is really wierd. Vim did successfully load the autoload function, but the python fails to search the pythonx directory.

:help pythonx may give you some useful information.

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

Maybe there's some other error going on.

Remove NCM, leave vim-hug-neovim-rpc installed alone.

Then execute :python import neovim_rpc_server and check the error message.

from nvim-completion-manager.

pjeschba avatar pjeschba commented on June 13, 2024

I get the same "No module named neovim_rpc_server" error with just vim-hug-neovim-rpc installed.

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

Also make sure vim can successfully execute :python import neovim, this is a new dependency added in recent updates.

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

I think this is it, vim also reports "No module named neovim_rpc_server" when dependency is not satisfied.

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

I'll add some verbose information when this error uccor, thanks for your information.

from nvim-completion-manager.

pjeschba avatar pjeschba commented on June 13, 2024

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

Vim seems not to choose the python installed via homebrew,

this might be useful: http://vi.stackexchange.com/questions/6604/how-to-access-a-custom-python-module-inside-vim

from nvim-completion-manager.

roxma avatar roxma commented on June 13, 2024

I guess that execute pip install neovim for your system wide python instead of the one installed via home-brew, would fix this error.

from nvim-completion-manager.

pjeschba avatar pjeschba commented on June 13, 2024

It works now! Thank you so much for your help.

from nvim-completion-manager.

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.