Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up Python for Neovim #98

Closed
amirelemam opened this issue Jan 6, 2017 · 4 comments
Closed

Setting up Python for Neovim #98

amirelemam opened this issue Jan 6, 2017 · 4 comments

Comments

@amirelemam
Copy link

Problem summary

Unable to activate neovim on pyenv

Expected

When running the code to activate neovim on pyenv, "virtualenv" and "activate" are not recognized as valid pyenv commands.

Environment Information

  • OS: Mac OS 10.11
  • Neovim version: 0.1.7

Provide a minimal init.vim with less than 50 lines (required)

" Use the following as a template.
set runtimepath+=~/path/to/deoplete.nvim/
set runtimepath+=~/path/to/deoplete-jedi/
let g:deoplete#enable_at_startup = 1
call deoplete#custom#set('jedi', 'debug_enabled', 1)
call deoplete#enable_logging('DEBUG', '/tmp/deoplete.log')

Generate logfiles if appropriate

  1. export NVIM_PYTHON_LOG_FILE=/tmp/nvim-log
  2. export NVIM_PYTHON_LOG_LEVEL=DEBUG
  3. nvim -u minimal.vimrc

Then look at and attach the files /tmp/nvim-log_{PID} and
/tmp/deoplete.log here.

Steps to reproduce the issue after starting Neovim (required)

  1. pyenv install 2.7.12
  2. pyenv install 3.6.0
  3. pyenv virtualenv 2.7.12 neovim2
  4. pyenv virtualenv 3.6.0 neovim3
  5. pyenv activate neovim2
  6. pip install neovim
  7. pyenv which python # Note the path
  8. pyenv activate neovim3
  9. pip install neovim
  10. pyenv which python # Note the path

Screen shot (if possible)

Upload the logfile(s)

@heliomeiralins
Copy link
Contributor

heliomeiralins commented Jan 6, 2017

Updating Jedi solved the issue for me.

@amirelemam
Copy link
Author

amirelemam commented Jan 8, 2017 via email

@blueyed
Copy link
Collaborator

blueyed commented Jan 8, 2017

What exactly is the issue here?

It seems like completion just does not happen when using Python 3.6, but without any error?

We should ensure that the error that prevents this does not get swallowed then probably, too!

@blueyed
Copy link
Collaborator

blueyed commented Jan 8, 2017

Closing as dupe of #100.

@blueyed blueyed closed this as completed Jan 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants