Jedi go-to not working. Shows errors.
See original GitHub issueEnvironment data
- VS Code version: 1.47.3 (from Snap)
- Extension version (available under the Extensions sidebar): v2020.7.96456
- OS and version: Ubuntu 18.04.4 LTS
- Python version: The version of the used cond env is python 3.7.4
- Type of virtual environment used: conda
- Relevant/affected Python packages and their versions: jedi 0.17.1
- Value of the
python.languageServer
setting: jedi
Expected behaviour
Right-Click on a Class name and “Go To Definition” should jump to the definition of the class.
Actual behaviour
If the class is defined in the same file, it worgs. But if the class if defined somewhere else, the GUI tells me "No definitions found for ‘YourClass’.
Also I can observe error messages / deprecation warnings in the output window.
Logs
Error 2020-08-07 12:48:42: stderr jediProxy Error (stderr) /home/me/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/completion.py:589: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead.
all_scopes=True,
Error 2020-08-07 12:49:37: stderr jediProxy Error (stderr) /home/me/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/completion.py:600: DeprecationWarning: Providing the line is now done in the functions themselves like `Script(...).complete(line, column)`
sys_path=sys.path,
Error 2020-08-07 12:49:37: stderr jediProxy Error (stderr) /home/me/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/completion.py:600: DeprecationWarning: Providing the column is now done in the functions themselves like `Script(...).complete(line, column)`
sys_path=sys.path,
/home/me/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/completion.py:600: DeprecationWarning: Deprecated since version 0.17.0. Use the project API instead, which means Script(project=Project(dir, sys_path=sys_path)) instead.
sys_path=sys.path,
Error 2020-08-07 12:49:37: stderr jediProxy Error (stderr) /home/me/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/completion.py:628: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).infer instead.
script.goto_definitions(), request["id"]
Error 2020-08-07 12:49:47: stderr jediProxy Error (stderr) /home/me/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/completion.py:605: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).goto instead.
script.goto_assignments(follow_imports=True), request["id"]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:17
- Comments:7 (2 by maintainers)
Top Results From Across the Web
emacs - jedi:goto-definition overjumping the import section
I am using jedi:goto-definition to jump to function definitions. If the function has a definiton under import it first jumps into that and...
Read more >elpy-goto-definition doesn't work when jedi:goto-definition ...
Running jedi:goto-definition works as expected, bringing up the expected file and putting the cursor on the definition. I know this is a ...
Read more >Goto Training Cert Errors - GoTo Community - LogMeIn
I have Goto Meeting working fine but Goto Training will not connected and the logs show cert errors.. Anyone know how to fix...
Read more >Language Server Extension Guide - Visual Studio Code
With Language Servers, you can implement autocomplete, error-checking ... To solve those problems, Microsoft specified Language Server Protocol, ...
Read more >Jedi.el - Python auto-completion for Emacs - (to be determined)
el - Python auto-completion for Emacs¶. Links: Documentation (at GitHub Pages) [1]. Configuration; Command; Troubleshooting; FAQ; Complete overview · Changelog.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue using python Extension v2020.9.114305, Anaconda 4.9.2, Python 3.8.5 on Ubuntu 20.04 It seems like the ms-python.python extension is using a Deprecated API of Jedi
Exact same issue with
pyenv
and python3.9.0