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

Vale not linting on files opening from cmd line #6

Open
rohennes opened this issue May 15, 2023 · 2 comments
Open

Vale not linting on files opening from cmd line #6

rohennes opened this issue May 15, 2023 · 2 comments
Assignees

Comments

@rohennes
Copy link

rohennes commented May 15, 2023

Hey,
(Using a linux machine)
When I open a folder in VS Code, then open a file in the file explorer view, Vale will lint the file as expected.

When I close VS Code, then open the same file from the cmd line, with no folder opened in VS Code, Vale doesn't lint at all.

I thought that previously (in the old version) I could open a file from the command line and Vale would lint the file?

I don't have an absolute path to a Vale config file set as there are different .vale.ini files in different folders.
Thanks!

@rohennes
Copy link
Author

After further reading, it seems Vale runs in the context of a VS Code workspace. It would be nice if you opened a file from the cmd line and Vale linted it according to the relative .vale.ini config file. But that's a feature request. As a workaround I have added my home directory to a workspace. That seems to do the trick.

@ChrisChinchilla
Copy link
Owner

I have actually hit similar issues with VSCode before and I think it's a wider VSCode issue… For example I'll also see path and terminal environment issues in other plugins too. But I will take a look, however it could be something I can't fix.

@ChrisChinchilla ChrisChinchilla self-assigned this Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants