Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between jedi and python language server in VS code IDE?

I am using VS code for python development. I had to disable python language server and enable jedi to fix an excessive RAM consumption problem with python language server. Many people encountered similar problems when you search on Google.

What is the difference between jedi and python language server?

I am using Windows 10 64-bit, python 3.7.3.

like image 467
user3848207 Avatar asked Apr 29 '19 04:04

user3848207


People also ask

What is Python Language Server VS Code?

Pylance is now the default language server for Python in Visual Studio Code, providing IntelliSense functionality as of the May 2021 release of the Python Extension for VS Code.

What is Jedi VS Code?

Jedi is a static analysis tool for Python that is typically used in IDEs/editors plugins. Jedi has a focus on autocompletion and goto functionality. Other features include refactoring, code search and finding references. Jedi has a simple API to work with. There is a reference implementation as a VIM-Plugin.

What is Jedi Language Server?

A Language Server for the latest version(s) of Jedi. If using Neovim/Vim, we recommend using with coc-jedi. Supports Python versions 3.7 and newer. Note: this tool is actively used by its primary author.

What is Python Language Server?

Microsoft Python Language Server implements the Language Server Protocol. Its primary clients are the Python extension for VS Code and Python Tools for Visual Studio. Feel free to file issues or ask questions on our issue tracker, and we welcome code contributions.


1 Answers

Jedi is an auto-completion library written in Python while the language server is implemented in C#. The latter was done for performance and to share a common code base between the Python extension for VS Code and the Python workload of Visual Studio. Eventually the language server will become the default experience in the Python extension for VS Code.

As for the memory issues, they are being actively worked on, so do make sure you are trying a new version of the language server (0.2.65 is the latest as of this writing). And if you are still having memory issues please file issues as appropriate.

like image 97
Brett Cannon Avatar answered Oct 11 '22 11:10

Brett Cannon