ansible / vscode-ansible

vscode/vscodium extension for providing Ansible auto-completion and integrating quality assurance tools like ansible-lint, ansible syntax check, yamllint, molecule and ansible-test.
https://ansible.readthedocs.io/projects/vscode-ansible/
MIT License
337 stars 77 forks source link

No syntax highlighting on EDA rulebooks #1373

Open tepene opened 2 weeks ago

tepene commented 2 weeks ago

Summary

Event-Driven Ansible rulebooks are not syntax highlighted and auto completion is missing

image

in comparison to playbooks:

image

the ansible-lint part is working correctly. Only syntax highlighting and auto completion is missing.

Extension version

v24.6.0

VS Code version

1.90.1

Ansible Version

$ ansible --version
ansible [core 2.17.0]
  config file = /workspaces/eda-demo/eda/ansible.cfg
  configured module search path = ['/workspaces/eda-demo/eda/library']
  ansible python module location = /usr/local/python/3.11.9/lib/python3.11/site-packages/ansible
  ansible collection location = /workspaces/eda-demo/eda/collections
  executable location = /usr/local/python/current/bin/ansible
  python version = 3.11.9 (main, Jun  6 2024, 09:15:00) [GCC 12.2.0] (/usr/local/python/3.11.9/bin/python3.11)
  jinja version = 3.1.4
  libyaml = True

OS / Environment

VSCode devcontainer based on "image": "mcr.microsoft.com/devcontainers/base:bookworm",

cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

ansible-lint --version

ansible-lint 24.6.0 using ansible-core:2.17.0 ansible-compat:24.6.0 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.8

Relevant log output

Path for lint: /usr/local/python/current/bin/ansible-lint
Validating using ansible-lint
cmd 'ansible-lint --version' has the following error/warning: WARNING: PATH altered to include /usr/local/python/3.11.9/bin, /usr/local/python/3.11.9/bin :: This is usually a sign of broken local setup, which can cause unexpected behaviors.

cmd 'ansible-lint --version' has the following error/warning: WARNING: PATH altered to include /usr/local/python/3.11.9/bin, /usr/local/python/3.11.9/bin :: This is usually a sign of broken local setup, which can cause unexpected behaviors.

[Info  - 2:29:57 PM] [ansible-lint] WARNING: PATH altered to include /usr/local/python/3.11.9/bin, /usr/local/python/3.11.9/bin :: This is usually a sign of broken local setup, which can cause unexpected behaviors.

Passed: 0 failure(s), 0 warning(s) on 1 files. Profile 'production' was required, and it passed.