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

Add the stdlib path for Python 3 #5

Open
cjrh opened this issue Jul 8, 2015 · 2 comments
Open

Add the stdlib path for Python 3 #5

cjrh opened this issue Jul 8, 2015 · 2 comments

Comments

@cjrh
Copy link
Owner

cjrh commented Jul 8, 2015

Currently we are adding the site-packages for an activated env, but it seems we really also need to add the stdlib path, otherwise py3-specific stuff in the stdlib isn't found.

@cjrh
Copy link
Owner Author

cjrh commented Dec 14, 2015

Quick note: I looked at this a while ago. The problem is that there is already a stdlib on the python path, for the currently-in-use Python. Adding another stdlib from some other python (i.e. the other conda env) causes errors.

What I think is necessary is for jedi-vim to not use the path of the default, currently-running Python at all, but use a completely separate path to a python installation for managing completions, and not sys.path.

@cjrh
Copy link
Owner Author

cjrh commented Aug 19, 2016

I've started building a small secret project cjrh/PloKoon which will call jedi-vim within one or more separate Python interpreters. Instead of web calls, as JediHTTP does it, this relies on a cool project called execnet (http://codespeak.net/execnet/) for communication between Python interpreters. Very basic tests so far seem to indicate that this will work well.

The main problem is that the vim UI stuff that jedi-vim currently provides, such as the completion menu, and the other refactoring features, will be missing. Either I have to fork jedi-vim itself, and modify the code so that all the internal functional calls to jedi get sent through PloKoon, or I have to reimplement a lot of that stuff. A third option is to ignore jedi-vim and focus on YouCompleteMe as the UI framework, and then provide PloKoon as an alternative completion engine to JediHTTP; in this case, the benefits of PloKoon over JediHTTP seem marginal. (and plus, YCM can be really difficult to install.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant