question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jedi go-to not working. Shows errors.

See original GitHub issue

Environment 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:closed
  • Created 3 years ago
  • Reactions:17
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
DanteMarshalcommented, Jan 2, 2021

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


Error 2021-01-02 13:31:08: stderr jediProxy Error (stderr) /home/dante/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/completion.py:626: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).infer instead.
  script.goto_definitions(), request["id"]

Error 2021-01-02 13:31:08: stderr jediProxy Error (stderr) /home/dante/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/completion.py:592: DeprecationWarning: Providing the line is now done in the functions themselves like `Script(...).complete(line, column)`
  script = jedi.Script(
/home/dante/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/completion.py:592: DeprecationWarning: Providing the column is now done in the functions themselves like `Script(...).complete(line, column)`
  script = jedi.Script(

Error 2021-01-02 13:31:08: stderr jediProxy Error (stderr) /home/dante/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/completion.py:592: DeprecationWarning: Deprecated since version 0.17.0. Use the project API instead, which means Script(project=Project(dir, sys_path=sys_path)) instead.
  script = jedi.Script(

Error 2021-01-02 13:31:08: stderr jediProxy Error (stderr) /home/dante/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/completion.py:603: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).goto instead.
  script.goto_assignments(follow_imports=True), request["id"]
7reactions
telemmaitecommented, Nov 3, 2020

Exact same issue with pyenv and python 3.9.0

Error 2020-11-03 21:12:21: stderr jediProxy Error (stderr) /home/user/.vscode-server/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:584: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead.
  jedi.api.names(

Error 2020-11-03 21:12:22: stderr jediProxy Error (stderr) /home/user/.vscode-server/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:584: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead.
  jedi.api.names(

Error 2020-11-03 21:12:24: stderr jediProxy Error (stderr) /home/user/.vscode-server/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:592: DeprecationWarning: Providing the line is now done in the functions themselves like `Script(...).complete(line, column)`
  script = jedi.Script(
/home/user/.vscode-server/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:592: DeprecationWarning: Providing the column is now done in the functions themselves like `Script(...).complete(line, column)`
  script = jedi.Script(

Error 2020-11-03 21:12:24: stderr jediProxy Error (stderr) /home/user/.vscode-server/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:592: DeprecationWarning: Deprecated since version 0.17.0. Use the project API instead, which means Script(project=Project(dir, sys_path=sys_path)) instead.
  script = jedi.Script(
/home/user/.vscode-server/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:603: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).goto instead.
  script.goto_assignments(follow_imports=True), request["id"]

Error 2020-11-03 21:12:24: stderr jediProxy Error (stderr) /home/user/.vscode-server/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:626: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).infer instead.
  script.goto_definitions(), request["id"]

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found