-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Show usages (Leader+n) shows only references in the current file #999
Comments
Please upgrade Jedi to 0.16.0. I'm pretty sure that that's the underlying issue. |
Huh, for some odd reason my distro still hasn't packaged v0.16.0 (it's been flagged out of date almost two months ago!). I tried to set it up myself, but tests seem to be failing on it.
|
Oh, managed to update it by just using submodules:
Still having the same issue though. |
The tests might be failing for whatever reason, really no idea :) But it probably doesn't really matter, because it's very few. On CI the should be passing. You can try using Jedi directly and use For bigger guns there's davidhalter/jedi#1059. Which I hope to tackle some time. But that's a way bigger one and I might rewrite a lot of code. So if you can reproduce this issue with a smaller code base (that doesn't hit the amount of files above), it might be interesting to debug this one. Otherwise I'm inclined to clone. These are just limits to make Jedi somewhat fast (and not borderline slow in many edge cases). |
Since this has been improved by a lot in Jedi, I'm closing. If there's still an issue, please report it against Jedi, but as I wrote above there's a limit in what Jedi can do. It's however definitely not the case anymore that only the current file is searched. |
Issue
Pressing Leader+n shows a popup with all the references in the current file, but not in other files in the same directory (this is part of a larger project).
The "opposite" (gotodefinition), however, does traverse the whole project.
Output of “:verbose JediDebugInfo”
Jedi-vim debug information
jedi-vim version
Global Python
Using Python version 3 to access Jedi.
/usr/bin/python3
3.8.1 (default, Jan 22 2020, 06:38:00), [GCC 9.2.0]
/usr/lib/python3.8/site.py
Jedi
/home/hugo/.config/nvim/plugged/jedi-vim/pythonx/jedi/jedi/__init__.py
Jedi environment: <SameEnvironment: 3.8.1 in /usr>
/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/usr/lib/python3.8/site-packages
Known environments
Settings
:version
:messages
:scriptnames
The text was updated successfully, but these errors were encountered: