VS Code IDE中的jedi和python语言服务器有什么区别? [英] What is the difference between jedi and python language server in VS code IDE?

查看:1393
本文介绍了VS Code IDE中的jedi和python语言服务器有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS代码进行python开发.我不得不禁用python语言服务器并启用jedi来解决python语言服务器过多的RAM消耗问题.当您在Google上进行搜索时,许多人遇到了类似的问题.

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.

jedi和python语言服务器有什么区别?

What is the difference between jedi and python language server?

我正在使用Windows 10 64位python 3.7.3.

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

推荐答案

Jedi 是自动完成的在语言服务器用C#实现的同时,用Python编写的库.后者是为了提高性能并在VS Code的Python扩展与Visual Studio的Python工作负载之间共享通用代码库而设计的.最终,语言服务器将成为VS Code的Python扩展中的默认体验.

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.

关于内存问题,正在积极研究它们,因此请确保您尝试使用新版本的语言服务器(撰写本文时,最新版本为0.2.65).而且,如果您仍然遇到内存问题,请适当地提出问题.

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.

这篇关于VS Code IDE中的jedi和python语言服务器有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆