Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何禁用最新升华文本3的语法警告?_Python_Sublimetext3 - Fatal编程技术网

Python 如何禁用最新升华文本3的语法警告?

Python 如何禁用最新升华文本3的语法警告?,python,sublimetext3,Python,Sublimetext3,我已经更新了最新的Sublime Text 3 build(3124),但是当我保存python文件的更改时,警告将显示如下: 我安装了该软件包,但对于旧的sublime版本,警告从未显示 如何禁用它?通过将其设置为“从不”来禁用“保存时显示面板”设置 菜单>首选项>软件包设置>升华浏览器>设置 { // Show the output panel on save if there are problems. // - window: check if the window h

我已经更新了最新的Sublime Text 3 build(3124),但是当我保存python文件的更改时,警告将显示如下:

我安装了该软件包,但对于旧的sublime版本,警告从未显示


如何禁用它?

通过将其设置为“从不”来禁用“保存时显示面板”设置

菜单>首选项>软件包设置>升华浏览器>设置

{
    // Show the output panel on save if there are problems.
    // - window: check if the window has problems.
    // - view: only check the current file.
    // - never: disable this feature.
    "show_panel_on_save": "never"
} 
{
    // This setting determines if a Quick Panel with all errors is   
    // displayed when a file is saved. The default value is false.
    "show_errors_on_save": false
}
或者使用命令选项板:Ctrl+Shift+p并选择:首选项:超级链接设置

{
    // Show the output panel on save if there are problems.
    // - window: check if the window has problems.
    // - view: only check the current file.
    // - never: disable this feature.
    "show_panel_on_save": "never"
} 
{
    // This setting determines if a Quick Panel with all errors is   
    // displayed when a file is saved. The default value is false.
    "show_errors_on_save": false
}
升华仪的旧版本 禁用保存时显示错误设置

菜单>首选项>软件包设置>升华浏览器>设置

{
    // Show the output panel on save if there are problems.
    // - window: check if the window has problems.
    // - view: only check the current file.
    // - never: disable this feature.
    "show_panel_on_save": "never"
} 
{
    // This setting determines if a Quick Panel with all errors is   
    // displayed when a file is saved. The default value is false.
    "show_errors_on_save": false
}
或者使用命令选项板将其禁用:

  • 打开命令选项板:Ctrl+Shift+P
  • 选择:
    sublimeLineter:保存时不显示错误
  • 完成了
    检查是否安装了
    Python flake 8 Lint
    软件包。如果是那样的话,就去

    菜单>首选项>软件包设置>Python Flake 8 Lint>设置-用户

    向文件中添加以下行,然后保存文件:

        {
            "popup": false
        }
    
    参考自

    要添加行,请执行以下操作:

    "show_errors_inline": false
    

    我怀疑新的
    show\u errors\u inline
    选项会这样做;尝试将其设置为
    false
    。或者使用
    submideliter-flake 8
    切换到
    submideliter
    (我没有看到我使用的这个和那个linter,尽管他们确实计划实现支持)。我还看到Python Flake 8 Lint包文档上的
    “popup”
    选项(弹出检测到的条件对话框?),默认为
    true
    。也许可以改为
    false
    ?@MartijnPieters我将show_errors_inline选项添加到语法特定的设置中,然后重新安装Python Flake 8 Lint包,就可以了,非常感谢!我无法单独压制这一警告。当我在控制台上运行Flake 8时,它们不会出现。igore=[“D101”]也不工作(在Flake8Lint.sublime设置上)。谢谢你的帮助。这对我不起作用;属性
    show\u errors\u on\u save
    不存在,我已将
    show\u panel\u on\u save
    改为
    never
    ,但该面板仍显示在save上。。。还有其他想法吗?@Leonard在较新版本的SublimeLiner中,设置为保存时显示面板。我已经用更新版本的步骤更新了答案。