davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.27k stars 370 forks source link

Find usages does not get path from vim path #1077

Closed kabeersvohra closed 8 months ago

kabeersvohra commented 2 years ago

Issue

I am using a vim rooter plugin which sets :pwd to being the git (project root) whenever a file is opened. When I try to get usages using <leader> n on a function, it populates the quickfix list with a list of files relative to the file open. Therefore when I try and open the file, it does not open the correct path.

For example I have a file in {project_root}/folder1/file1.py and then I have a usage in {project_root}/folder1/file2.py and I try and go to file2.py from file1.py using jedi, it will open {project_root}/file2.py which will be blank.

Steps to reproduce

cd project_root nvim folder1/file2.py navigate to function definition <leader> n select file2.py from quickfix list blank nvim opens for project_root/file2.py

davidhalter commented 2 years ago

You have to provide the debug info...

ghost commented 2 years ago

What debug info would be useful and how can I provide it?

davidhalter commented 2 years ago

Open a new issue and you see it. you just deleted it.