Open SkrrtBacharach opened 1 year ago
I did some print statement debugging and found the data that is passed which seems to cause this error:
{'cwd': v:null, '_deferred_job_id': 9, 'executable': 'ansible-lint', 'command': '%e --version'}
Unfortunately, I don't have the modified code with the print statement anymore. I'll try recreating it in the next few days.
Possibly related to https://github.com/dense-analysis/ale/issues/4303 and https://github.com/dense-analysis/ale/issues/3956#issuecomment-1363093148
If you have lint on save enabled and you exit with :wq it will result in ALE triggering fixers that most likely will be active while the editor is exiting, therefore causing the error.
Information
VIM version
NVIM v0.8.3 Build type: RelWithDebInfo
Operating System: Fedora 37
What went wrong
When you close an ansible playbook when Ale has ansible-lint loaded as a linter, the following error message apprears:
This does not happen when ansible-lint is not installed.
Reproducing the bug
I have written scripts to reproduce this issue in a container: https://github.com/SkrrtBacharach/ale_issue_4498
./build.sh && ./run.sh
:AleInfo
or any other diagnostic commands necessary.:wq
:ALEInfo
Expand