errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.3k stars 144 forks source link

Vale can't find .ini in environment variable #820

Open honzik20 opened 2 months ago

honzik20 commented 2 months ago

Check for existing issues

Environment

OS: Windows 11 Install: Chocolatey Version: 3.4.2

Describe the bug / provide steps to reproduce it

Vale isn't respecting 2 of my environment variables.

Output from the console: image

But it's looking for the ini file in the wrong place:

image

The styles directory is respected. Any ideas?

jdkato commented 2 months ago

The output of ls-dirs just shows the default location; it's not an indication of which path is being used and isn't required to be found if you're using a custom value.

What is the output of vale ls-config?

honzik20 commented 1 month ago
$ vale ls-config
{
  "BlockIgnores": {
    "*.md": [
      "(?sm)^({{[%\u003c] \\w+ [^{]*?\\s[%\u003e]}})\\n$",
      "(?s) *({{\u003c highlight [^\u003e]* ?\u003e}}.*?{{\u003c ?/ ?highlight \u003e}})"
    ]
  },
  "Checks": [
    "Microsoft.HeadingAcronyms",
    "HTA.Present-perfect",
    "Microsoft.Quotes",
    "Microsoft.HeadingAcronyms",
    "HTA.Present-perfect",
    "Microsoft.Quotes"
  ],
  "Formats": {},
  "Asciidoctor": {},
  "FormatToLang": {},
  "GBaseStyles": null,
  "GChecks": {},
  "IgnoredClasses": null,
  "IgnoredScopes": null,
  "MinAlertLevel": 0,
  "Vocab": [
    "HTA"
  ],
  "RuleToLevel": {},
  "SBaseStyles": {
    "*.md": [
      "HTA",
      "Microsoft",
      "Readability"
    ]
  },
  "SChecks": {
    "*.md": {
      "HTA.Present-perfect": false,
      "Microsoft.HeadingAcronyms": false,
      "Microsoft.Quotes": false
    }
  },
  "SkippedScopes": null,
  "Stylesheets": {},
  "TokenIgnores": {
    "*.md": [
      "({{[%\u003c] .* [%\u003e]}}.*?{{[%\u003c] ?/.* [%\u003e]}})",
      "(\\[.+\\]\\({{\u003c .+ \u003e}}\\))",
      "[^\\S\\r\\n]({{[%\u003c] \\w+ .+ [%\u003e]}})\\s",
      "[^\\S\\r\\n]({{[%\u003c](?:/\\*) .* (?:\\*/)[%\u003e]}})\\s"
    ]
  },
  "WordTemplate": "",
  "RootINI": "C:\\Users\\user1/vale.ini",
  "Paths": [
    "C:\\ORG\\STDEV\\vale\\styles"
  ],
  "ConfigFiles": [
    "C:\\ORG\\STDEV\\vale\\vale.ini"
  ],
  "NLPEndpoint": ""
}