neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
575 stars 51 forks source link

coc-python's auto complete can not work #140

Open walsripe opened 4 years ago

walsripe commented 4 years ago

Hi,

I have installed the coc-python but auto complete function can not work, I am not sure why it can not work, if someone could help me, I will highly appreiciate it.

I use nvim on WSL, and the problem is as below, image

My init.vim configuration is as below, image

checkhealth is, image

caoshenghui commented 4 years ago

I have same problem when I use vim on WSL. When I use jedi it works correctly, but cannot complete in MPLS....

caoshenghui commented 4 years ago

Hi,

I have installed the coc-python but auto complete function can not work, I am not sure why it can not work, if someone could help me, I will highly appreiciate it.

I use nvim on WSL, and the problem is as below, image

My init.vim configuration is as below, image

checkhealth is, image

you can use mpls...Today I install mpls offline, it works.
https://github.com/neoclide/coc-python/issues/80

yzlnew commented 4 years ago

Try :CocRestart

yzlnew commented 4 years ago

Have you set your project root? check :CocList folders.

esn89 commented 4 years ago

You guys might have a similar problem to me. Can you check to see if the language server is running at all?

ps aux | grep Lang should tell you

chemzqm commented 4 years ago

I have same problem when I use vim on WSL. When I use jedi it works correctly, but cannot complete in MPLS....

I don't have any experience on WSL, so it may not work.

habamax commented 4 years ago

looks like it can't find a file?

## Output channel: Python
Starting Microsoft Python language server.
[Info  - 11:02:50 AM] Analysis cache path: /home/habamax/.cache/Microsoft/Python Language Server
[Info  - 11:02:50 AM] Microsoft Python Language Server version 0.5.45.0
[Info  - 11:02:50 AM] Workspace root: /home/habamax/.vim
[Info  - 11:02:50 AM] GetCurrentSearchPaths /usr/bin/python 
[Info  - 11:02:50 AM] Interpreter search paths:
[Info  - 11:02:50 AM]     /usr/lib/python3.7
[Info  - 11:02:50 AM]     /usr/lib/python3.7/lib-dynload
[Info  - 11:02:50 AM]     /home/habamax/.local/lib/python3.7/site-packages
[Info  - 11:02:50 AM]     /usr/local/lib/python3.7/dist-packages
[Info  - 11:02:50 AM]     /usr/lib/python3/dist-packages
[Info  - 11:02:50 AM] User search paths:
[Info  - 11:02:52 AM] Initializing for /usr/bin/python
[Info  - 11:02:52 AM] Analysis caching mode: None.
[Error  - 11:03:35 AM] Unable to find document file:///home/habamax/.temp/test.py
[Error  - 11:03:43 AM] Unable to find document file:///home/habamax/.temp/test.py
[Error  - 11:03:44 AM] Unable to find document file:///home/habamax/.temp/test.py
[Error  - 11:03:46 AM] Unable to find document file:///home/habamax/.temp/test.py

image

rasbin111 commented 4 years ago

try: pip install jedi