Questions tagged [jedi-vim]

jedi-vim is a is a VIM binding to the autocompletion library Jedi.

74 questions
2
votes
0 answers

Make Jedi to load some specific library from unusual place (SageMath for example)

I want to make jedi (autocompletion, static analysis and refactoring library for python) to understand SageMath code (which is basically Python code with some minor additions and it is preparsing to Python). I want to integrate it with vim via…
petRUShka
  • 9,812
  • 12
  • 61
  • 95
2
votes
2 answers

Is it possible to insert import statements with jedi-vim?

I've just started looking at the Vim jedi plugin, and it seems pretty impressive. One feature of some of the Java IDEs I've used is the ability to automatically add required imports. Can Jedi do that? For example, if I enter a line such as arg1 =…
Paul Moore
  • 6,569
  • 6
  • 40
  • 47
2
votes
2 answers

Jedi Vim Python subclasses are not detected on TAB-completion

The issue is on Arch (1) & Debian Jessie (2) where: 1. > uname -r 4.0.5-1-ARCH > echo $PYTHONPATH /usr/lib/python2.7/ Debian Jessie is without the PYTHONPATH set. My vim is compiled with python. :python import sys; print(sys.version) 2.7.10…
binarytrails
  • 516
  • 4
  • 14
2
votes
0 answers

Cant use jedi vim on imported modules

Lets say I have the next structure MyProject |--run.py |--myclass1.py |--folder | |--myclass2.py Im now editing run.py: from myclass1 import MyClass1 from folder.myclass2 import MyClass2 jedi vim works great on MyClass1, but when I try anything…
Enuff
  • 457
  • 5
  • 21
2
votes
0 answers

How to make JEDI recognize a Python C extension

I am currently developing a Python module in C, and I cannot figure out how to make JEDI "see" my module. I have set all docstrings in the C code and set every field in my setup.py, but when I edit the example.py file I use for testing and try to…
beben
  • 21
  • 4
2
votes
0 answers

Splitting Vim window into three panels

I am new to Vim and I want to consider Vim as a potential code IDE for developing Python and C/C++ codes. After struggling a lot I finally managed to install enough Plugins such as YCM,color-schemes,... to get a minimum development environment. What…
Sina Sou
  • 159
  • 1
  • 8
2
votes
1 answer

Jedi-vim doesn't work

I have a issue with VIM. I'm trying to install jedi-vim according to https://github.com/davidhalter/jedi-vim but when I open vim, it report such error: initialize.py" 25L, 831C'import site' failed; use -v for traceback Error detected while…
alex
  • 23
  • 1
  • 3
1
vote
1 answer

Calling PyObject_Call from thread causes stack overflow

I am trying to use Jedi https://github.com/davidhalter/jedi to create a custom python editor and I am using c++, it works perfectly, but it is a bit slow and stalls for a small while, so I am calling those functions from inside a thread in c++, but…
1
vote
1 answer

Jedi python is not installing while installing packages from requirements.txt

I have created a virtual environment with python 3.6 on my ubuntu18 system. But while installing requirements.txt file using the command like 'pip install -r requirements.txt' for a project, I have got the error like below: ERROR: Could not find a…
shubham bansal
  • 163
  • 1
  • 2
  • 9
1
vote
0 answers

Refactoring across files in jedi-vim

I know that refactoring within a file is possible via leader-r. Is it possible to refactor code with jedi-vim across files, i.e. in the whole project?
clog14
  • 1,549
  • 1
  • 16
  • 32
1
vote
1 answer

Unable to go to definition using jedi-vim plugin on packages installed using pip install --user

I am able to goto definitions of functions imported from a package using jedi-vim when the package is installed in following directory: /usr/lib64/python2.7/site-packages/ However when it is installed in the following directory, using pip install…
chetal
  • 51
  • 3
1
vote
1 answer

python keyword argument completion (with hints?)

Is there any way to allow for keyword parameter suggestions when using **kwargs style function inputs? The closest thing I could think of would be type suggestions in a format such as: class Classy(object): var1 = str() var2 = list() …
ehiller
  • 1,346
  • 17
  • 32
1
vote
1 answer

jedi-vim autocompletion. complete by grep-style searching

I'm comparing PyCharm autocomplete search and jedi-vim in Vim. In PyCharm I'm able to see the list of methods. where the search pattern might in the beginning/middle/end. In VIM I can only see methods, which starting at the beginning of the search…
sevenfourk
  • 463
  • 4
  • 12
1
vote
1 answer

Using goto with user-defined modules in jedi-vim

jedi-vim works very well with modules and functions installed on my system. For example, if I put the cursor on glob.glob() and hit d, jedi-vim brings me to the definition of glob() in /usr/lib/python/. However, for a user-defined module…
krumpelstiltskin
  • 486
  • 7
  • 17
1
vote
1 answer

How can I goto a function definition imported from another file using jedi-vim?

I regularly use d to go to a function definition. When this definition is from another file, it brings me to the import line of the file. How can I use jedi-vim to go to the file that defines the function imported on that line?
krumpelstiltskin
  • 486
  • 7
  • 17