Sublime Linter 3 - PHP -只突出显示一个错误(即使存在多个)


Sublime Linter 3 - PHP - Highlighting just one mistake (even if multiple exist)

这一定很简单,但是我真的不知道为什么会这样。

sublime -php for ST3每次只突出一个错误,即使我的代码中有其他错误。如果我命令显示所有错误,我只看到一个错误。如果我删除这个错误所在的地方,它会显示另一个错误,但仍然像所有代码中只有这个错误一样。如果我命令next或prev error,它将停留在高亮显示的那个。

所以我看到所有错误的唯一方法就是一个一个地纠正或删除每一个错误,使用这个插件的人知道它是多么细致:p

在SL3中找到我的用户设置。

{
    "user": {
        "debug": true,
        "delay": 0.75,
        "error_color": "D02000",
        "gutter_theme": "",
        "gutter_theme_excludes": [],
        "lint_mode": "background",
        "linters": {
            "csslint": {
                "@disable": false,
                "args": [],
                "errors": "",
                "excludes": [],
                "ignore": "",
                "warnings": ""
            },
            "htmltidy": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "php": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "phpcs": {
                "@disable": false,
                "args": [],
                "excludes": [],
                "standard": "PSR2"
            },
            "phplint": {
                "@disable": false,
                "args": [],
                "excludes": []
            }
        },
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "passive_warnings": false,
        "paths": {
            "linux": [],
            "osx": [],
            "windows": [
                "C:/wamp/bin/php/php5.5.12"
            ]
        },
        "python_paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": true,
        "show_marks_in_minimap": true,
        "syntax_map": {
            "html (django)": "html",
            "html (rails)": "html",
            "html 5": "html",
            "php": "html",
            "python django": "python"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

SublimeLinter-php只是php可执行文件上的一个接口,这意味着如果出现错误,它将在第一个错误处停止,因为这就是php处理错误的方式。

希望它能显示更多,但由于可执行文件的限制,这是不可能的。

相关文章: