mschuchard/linter-ansible-linting

Error when opening .yml, .yaml files: spawn ansible-lint ENOENT

itblaked opened this issue · 5 comments

Hi,

I'm new to using a linter and Ansible so apologies if i've missed something obvious but I can't seem to get this to run at all in Atom. I'm getting the below error anytime I open a .yml file in Atom, regardless of contents of file (happens with blank .yml). If I disable linter-ansible-linting i don't get the error on opening .yml files.

"An unexpected error with ansible, ansible-lint, linter-ansible-linting, atom, linter, and/or your playbook, has occurred.
spawn ansible-lint ENOENT"

Screen grab attached as well.

linter-ansible-linting

Running Fedora 26 workstation, Atom v1.19.0, linter-ansible-linting v1.3.0, language-ansible v0.2.1, linter v2.2.0

ENOENT means the executable is either not installed or you installed in such a way that the user running Atom does not have permissions to use it. How did you install ansible-lint?

Within the atom app in packages...

So was that with pip, or your package manager, or from source etc?

@itblaked This package (linter-ansible-linting) is a wrapper around ansible-lint which you need to have installed using pip, some other package manager, or directly from the source before you can use this package.

Assuming you have Python and pip installed and configured already, generally the simplest way to get it installed is pip install ansible-lint.

Apologies @mschuchard @Arcanemagus, you were both right, i hadn't installed ansible-linter via pip as it says clearly in the package details that i rushed through, thanks for your help and patience