Skip to content

Not being able to find a syntax should not only be printed in debug mode #156

@FichteFoll

Description

@FichteFoll

While trying to figure out why my rule didn't work and eventually setting "debug": true, I noticed the following on the console:

ApplySyntax: Syntax file for Bash does not exist at Packages/Shellscript/Bash.sublime-syntax

In my opinion, this is not the kind of message that should require to enable debug mode to be visible. Note that I'm only using custom rules and none of the defaults, but even then I still believe such a message could be useful to see every once in a while for people who do not have the third-party syntax installed that the default configuration wants to set.

For multiple syntaxes ina rule, this should only report whether each syntax can be found either in debug mode or when none of them could be found.

My rule, for comparison:

        {
            "syntax": "Shellscript/Bash",
            "rules": [
                {"file_path": ".*/\\.env(\\.[^/]*)?$"},
            ]
        },

(must be ShellScript)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions