简体   繁体   中英

Go to Definition in Python Microsoft Extension is not working in modules

I have installed

  • Python 2.7
  • Visual Studio Code 1.471.
  • Python Extension 2020.6.91350

While Go to definitions works within same module, but if we import some other module, Go to definition don't work

Any idea what can be solution for this?

TL;DR: Your language server might not be opening up properly because vscode version is not up to date. This goes to all languages

If your symptoms include

  1. Type >Python: Show output in vscode console
  2. Restart vscode and open any python file
  3. In the output if you see any line saying something close to Error: cant't start language server because vscode version low

You need your vscode updated to latest version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM