SublimeLinter / SublimeLinter-xmllint

SublimeLinter 3 plugin for XML, using xmllint.
MIT License
29 stars 6 forks source link

Configuring xmllint location #12

Closed klonuo closed 6 years ago

klonuo commented 6 years ago

Hi,

I've set this setting for sublimelinter:

{
    "linters": {
        "xmllint": {
            "paths": {
                "windows": [
                    "c:/Programs/libxml"
                ]
            }
        }
    }
}

However it complains that it cannot find xmllint. I tried with full path too, to see the same.

If I change my system PATH to include this folder, then the plugin works as expected.

Can someone please tell me what's the problem in above config, as documentation is too sparse.

Thanks

kaste commented 6 years ago

There is no paths key. But each linter has an executable setting you could use.

klonuo commented 6 years ago

Thanks for your quick reply.

So it seems paths key (http://www.sublimelinter.com/en/latest/troubleshooting.html#adding-to-the-paths-setting) is global sublimelinter key instead subkey for each linter.

This works:

{
    "paths": {
        "windows": [
            "c:/Programs/libxml"
        ]
    }
}