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.

Go to Definition erratic behavior

See original GitHub issue

I’m programming python and Django and When I ctrl + click or F12 (go to definition) on some imported class from another file, like the screenshot example bellow, this took beetwen 5 to 10 seconds to open the file and sometimes nothing happens and I have to crl+click again and await again. I’ve tried to change from Jedi to pylance or microsoft but nothing helps.

On the example bellow the mediaSerializer is imported like that (from base_project.serializers import MediaSerializer) on the views.py file and is defined on serializers.py

go_to_def_1

go_to_def_2

Am I doing something wrong or is it a bug? Maybe some configuration I don’t know about. Thanks guys.

Environment data

  • VS Code version: 1.48.2
  • Python extension version: microsoft/vscode-python
  • OS and version: Linux Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.4
  • Value of the python.languageServer setting: jedi

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
karthiknadigcommented, Sep 2, 2020
0reactions
karthiknadigcommented, Sep 2, 2020

Closing this since we have to wait for #11995. We will look into this issue as a part of moving Jedi behind LSP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Erratic behaviour definition and meaning - Collins Dictionary
Something that is erratic does not follow a regular pattern, but happens at unexpected times or moves along in an irregular way. [...]...
Read more >
microsoft/pylance-release - Go to Definition erratic behavior
Thanks for your feedback! We have recently released a new and more performant language server called Pylance which likely solves these ...
Read more >
Erratic Definition & Meaning - Dictionary.com
deviating from the usual or proper course in conduct or opinion; eccentric : erratic behavior. ; inconsistent, irregular, or unpredictable: Many factors affect ......
Read more >
Erratic - Definition, Meaning & Synonyms - Vocabulary.com
adjective. liable to sudden unpredictable change. “erratic behavior”. synonyms: fickle, mercurial, quicksilver · adjective. likely to perform unpredictably. “ ...
Read more >
erratic behaviour collocation | meanings and examples of use
moving or behaving in a way that is not regular, certain, ... See more at erratic. behaviour. noun. uk.
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