【问题标题】:IronPython in Visual Studio codeVisual Studio 代码中的 IronPython
【发布时间】:2018-03-31 19:17:56
【问题描述】:

我想使用 Visual Studio 代码而不是 Revit-Dynamo python 节点。因此,我添加了 IronPython 存根并在此 wiki (https://github.com/gtalarico/ironpython-stubs) 上执行了这些步骤。但我仍然遇到一些错误。既然很烦,有没有办法避免这些问题?Problems in VSCode with IronPython

【问题讨论】:

    标签: python visual-studio-code ironpython vscode-settings revit


    【解决方案1】:

    您可以在 Pylint 中关闭此类警告,方法是使用自定义 .pylintrc 文件,通过 settings.json 在命令行上指定适当的标志,或者使用 "python.linting.enabled": false 完全关闭 linting。

    至于那些存根,您可以将它们添加到 "python.autoComplete.extraPaths",但这不会影响 Pylint,只会影响 IntelliSense。

    【讨论】:

    • 谢谢。我刚刚添加了另一个语句:“python.linting.enabled”:false,
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-27
    • 2019-11-02
    • 1970-01-01
    • 1970-01-01
    • 2016-12-26
    • 1970-01-01
    相关资源
    最近更新 更多