Check for existing issues
Environment
- Linux
- Go (local build)
vale version v3.14.1
Describe the bug / provide steps to reproduce it
- Using a user global config (
$HOME/.config/vale/.vale.ini) and a project local config ($PWD/.vale.ini)
- Define
StylesPath in only the local configuration
- Attempt to load an external style with a custom dictionary (
RedHat for example)
- The following error will be reported:
E201 Invalid value [.github/styles/RedHat/Spelling.yml:1:1]:
1* ---
2 extends: spelling
3 level: warning
unable to resolve dicpath
Execution stopped with code 1.
FindAsset will be given the last cfg.Path in the list, which will not exist as it's a combination of the global config path with the local StylePath.
The way paths and configuration structures are handled right now is a little problematic. Paths should be expanded relative to the INI file before INI shadowing takes effect.
Check for existing issues
Environment
vale version v3.14.1Describe the bug / provide steps to reproduce it
$HOME/.config/vale/.vale.ini) and a project local config ($PWD/.vale.ini)StylesPathin only the local configurationRedHatfor example)FindAssetwill be given the lastcfg.Pathin the list, which will not exist as it's a combination of the global config path with the localStylePath.The way paths and configuration structures are handled right now is a little problematic. Paths should be expanded relative to the INI file before INI shadowing takes effect.