Open arwtyxouymz opened 4 years ago
Hey I think you might need to set python.envFile in your settings.
python.envFile:Absolute path to a file containing environment variable definitions., default: "${workspaceFolder}/.env"
Hi, just bumping this issue as am experiencing it myself, did anyone find a fix for it?
Steps to fix:
:CocInfo
-> Workspace root.env
file in workspace rootPYTHONPATH="/path/to/pythonx.x/site-packages"
to .env
PYTHONPATH="/home/user/default/python3.8/site-packages"
autocmd FileType python let b:coc_root_patterns = ['.git', '.env']
to your init.vimhttps://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders
It may be the problem of
MPLS
.Problem
I'm using
Pipenv
for python virtual environment. Even I set the interpreter path correctly, MPLS saysMy settings
My global
coc-settings.json
and my local
.vim/coc-settings.json
Step to reproduce
1. Create virtual environment by pipenv
2. edit python file
3. Set interpreter path
then, select current virtualenv's interpreter path.
Even after these settings, you will see like a picture below.