Styles path not found after following initial setup documentation
wezm opened this issue · comments
Wesley Moore commented
Check for existing issues
- Completed
Environment
OS: Arch Linux
Install method: AUR
Vale version: vale version 3.2.2
Describe the bug / provide steps to reproduce it
I followed the Quick Start to setup Vale:
- Generate
.vale.ini
with the config generator - cd to my project
vale sync
vale README.md
The last step produces this error:
E100 [NewE201] Runtime error
The path '/home/wmoore/Projects/rsspls/styles' does not exist.
Execution stopped with code 1.
Here is a transcript of my session including my config and ouput of vale ls-dirs
:
$ cd rsspls
$ vale sync
SUCCESS Downloaded package 'RedHat'
Syncing 1 package(s) to '/home/wmoore/.local/share/vale/styles' [1/1] 100% | 2s
$ vale README.md
E100 [NewE201] Runtime error
The path '/home/wmoore/Projects/rsspls/styles' does not exist.
Execution stopped with code 1.
$ cat .vale.ini
StylesPath = styles
MinAlertLevel = suggestion
Packages = RedHat
[*]
BasedOnStyles = Vale, RedHat
$ vale ls-dirs
Asset | Default Location | Found
StylesPath | /home/wmoore/.local/share/vale/styles | ✓
.vale.ini | /home/wmoore/.config/vale/.vale.ini | ✗
vale-native | /home/wmoore/.config/vale/native/vale-native | ✗
$ env | grep VALE
# no matches
It appears to be syncing to the default StylesPath
but looking for a project local one when performing checks.
David Gómez G. commented
In case it may help you temporarily: I solved the problem changing the StylesPath
property in the .dev.ini to .
:
#StylesPath = styles
StylesPath = .
MinAlertLevel = suggestion
Packages = RedHat