Skip to content

No formatter installed for "ansible" file type. #1110

@jamesharris-garmin

Description

@jamesharris-garmin

Summary

TLDR: When I attempt to format document with Shift _ Alt + F visual studio code prompts me to install a formatter even though I already have the redhat yaml extension installed.

Additional notes:

Redhat yaml extension is:
redhat.vscode-yaml version (v1.14.0)

VSCODE's install ansible formatter search gives:

image

None of these extensions work as is.

Extension version

v2.12.143

VS Code version

Version: 1.87.0

Ansible Version

$ ansible --version
ansible [core 2.15.9]
  config file = None
  configured module search path = ['/home/harrisja/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/harrisja/.local/pipx/venvs/venvs/ansible/lib/python3.10/site-packages/ansible
  ansible collection location = /home/harrisja/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/harrisja/.local/bin/ansible
  python version = 3.10.13 (main, Aug 25 2023, 13:20:03) [GCC 9.4.0] (/home/harrisja/.local/pipx/venvs/venvs/ansible/bin/python)
  jinja version = 3.1.3
  libyaml = True

OS / Environment

Windows 11, remote to Ubuntu 22.04 (Jammy),
ansible-lint 24.2.0

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions