Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styles path not found after following initial setup documentation #788

Closed
1 task done
wezm opened this issue Mar 7, 2024 · 1 comment
Closed
1 task done

Styles path not found after following initial setup documentation #788

wezm opened this issue Mar 7, 2024 · 1 comment

Comments

@wezm
Copy link

wezm commented Mar 7, 2024

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:

  1. Generate .vale.ini with the config generator
  2. cd to my project
  3. vale sync
  4. 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.

@wezm wezm added the Type: Bug label Mar 7, 2024
@dgomezg
Copy link

dgomezg commented Mar 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants