【问题标题】:How to use a python language server in Gitpod (VSCode for Web)如何在 Gitpod(VSCode for Web)中使用 python 语言服务器
【发布时间】:2023-01-18 21:45:16
【问题描述】:

Pylance 不适用于非 Microsoft 版本的 Vscode。我正在尝试寻找某种替代品,但我发现的一切都不是 Pylance 所做的。

https://www.gitpod.io/docs/references/ides-and-editors/vscode-extensions#use-of-microsoft-owned-extensions-in-gitpod

我怎样才能在 Gitpod Web 中获得进行颜色编码和智能感知的东西? Linting 也不错,但有很多我可以使用的。

我找到了 Pyright,我想使用它,但它似乎没有。可能是它的损坏方式与 Pylance 在 Gitpod 中的损坏方式相同。我已经安装了 vscode 扩展,但是当我转到设置并键入 `python.languageServer: "" 时,Pyright 不可用。 pyright 是语言服务器吗?我听说是的。

Gitpod Web 上是否还有其他适用于 python 的语言服务器?在 Gitpod Web 上使用 Python 工作的其他人肯定都遇到过这个问题。

【问题讨论】:

  • Pylance 仅适用于 VsCode。我不太了解gitpod。你试过绝地吗?

标签: python visual-studio-code intellisense gitpod


【解决方案1】:

也许你可以使用 Gitpod Desktop? https://www.gitpod.io/docs/references/ides-and-editors/vscode

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-04-18
    • 2022-01-15
    • 2019-06-20
    • 2018-01-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多