nvim-completion-manager icon indicating copy to clipboard operation
nvim-completion-manager copied to clipboard

Following trouble shooting guide to figure out why NCM is not working on Windows 10, Neovim 0.2.2, with Anaconda Python (3.6.2)

Open bzm3r opened this issue 6 years ago • 1 comments

I am attempting to follow the troubleshooting guide.

First I tried to enable logging:

let $NVIM_PYTHON_LOG_FILE="~\NCM-log\nvim_log"
let $NVIM_NCM_LOG_LEVEL="DEBUG"
let $NVIM_NCM_MULTI_THREAD=0

Note how I have put back slashes instead of forward slashes. Is this the right thing to do? I base this off of how neovim corrects my slashes whenver I am doing something like :cd ~\blahblah\blah.

I do not see any log files being generated, and I also did not get the message nvim-completion-manager core channel terminated. So I tried to start up NCM manually.

First from neovim, I got the servername: :echo v:servername produces \\.\pipe\nvim-5340-0 (note that the integers after nvim- change, so sometimes I have \\.\pipe\nvim-8712-0). So I go into the pythonx, and execute the following command (while making sure that neovim is running):

py cm_start.py core \\.\pipe\nvim-5340-0

I get the following error then:

Traceback (most recent call last):
  File "cm_start.py", line 9, in <module>
    from neovim import attach, setup_logging
ModuleNotFoundError: No module named 'neovim'

But, I definitely did install have neovim using pip! For instance, I can do this fine:

PS C:\Users\LilMonkey> py
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import neovim
>>>

What should I try next?

bzm3r avatar Jan 18 '18 22:01 bzm3r

I can use NCM on Nvim-qt 2.2 + Python3.6.4(window installer from Python website) on Windows 10, it can complete my Go code well. Just need to install neovim in pip and set python location in init.vim:

let g:python_host_prog='D:/tool/dev/python3/python.exe'
let g:python3_host_prog='D:/tool/dev/python3/python.exe'

I use msys64 mintty terminal to lauch "nvim-qt". It seemed NCM in Nvim-qt can't use Python2/3 installed by msys64 pacman. But Python installed by window installer can make NVM in Nvim-qt work, but first you need set g:python_host_prog.

cjun714 avatar Feb 08 '18 03:02 cjun714