Git Product home page Git Product logo

jedi-rpc.vim's People

Contributors

fjfnaranjo avatar nakamuray avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

jedi-rpc.vim's Issues

Doesn't work. Am I doing something wrong?

I have tried this plugin with Python 3.7.0 and 3.5.5. In both cases, activating this plugin makes vim-jedi stop working completely.

I have activated the plugin like this, using vim-plug:

Plug 'davidhalter/jedi-vim'
Plug 'nakamuray/jedi-rpc.vim'

Then I open vim from a terminal where I have virtualenv activated. I confirm this by running:

:!which python
:!python --version
:!pyenv version
:!pyenv which python

This produces respectively:

/home/tomas/.pyenv/shims/python
Python 3.5.5
test (set by PYENV_VERSION environment variable)
/home/tomas/.pyenv/versions/test/bin/python

I handle my virtualenvs using pyenv, but I have also tested activating the virtualenv manually in a fresh terminal like this:

source .pyenv/versions/test/bin/activate

And then launching vim, but the results are the same.

Now I open a Python file and type:

import os
os.

As I type the final dot, I expect a list of completion suggestions. Instead, the footer says:

-- Omni completion (^O^N^P) Pattern not found

When I place the cursor on top of a variable and press <Leader>g. I expect the cursor to jump to the place where the variable was first assigned. Instead, I get an error:

Traceback (most recent call last):
  File "/home/tomas/.vim/plug/jedi-vim/pythonx/jedi_vim.py", line 140, in wrapper
    return func(*args, **kwargs)
  File "/home/tomas/.vim/plug/jedi-vim/pythonx/jedi_vim.py", line 213, in get_script
    environment=get_environment(),
  File "/home/tomas/Dropbox/Personal/config_sync/vim/plug/jedi-rpc.vim/jedi_remote.py", line 127, in __call__
    return self._jedi_remote.remote_object_call(self._id, *args, **kwargs)
  File "/home/tomas/Dropbox/Personal/config_sync/vim/plug/jedi-rpc.vim/jedi_remote.py", line 56, in remote_object_call
    return self._call_remote('remote_object_call', id, *args, **kwargs)
  File "/home/tomas/Dropbox/Personal/config_sync/vim/plug/jedi-rpc.vim/jedi_remote.py", line 68, in _call_remote
    output = json.dumps({'func': func, 'args': args, 'kwargs': kwargs})
  File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.5/json/encoder.py", line 179, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <Environment: 2.7.13 in /usr> is not JSON serializable
Traceback (most recent call last):
  File "/home/tomas/.vim/plug/jedi-vim/pythonx/jedi_vim.py", line 140, in wrapper
    return func(*args, **kwargs)
  File "/home/tomas/.vim/plug/jedi-vim/pythonx/jedi_vim.py", line 301, in goto
    definitions = script.goto_assignments()
AttributeError: 'NoneType' object has no attribute 'goto_assignments'

Trying <Leader>d appears to give the exact same error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.