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

Unexpected errors with Ansible Lint in pycharm and WSL #26

Open
teodoryantcheff opened this issue Feb 23, 2025 · 0 comments
Open

Unexpected errors with Ansible Lint in pycharm and WSL #26

teodoryantcheff opened this issue Feb 23, 2025 · 0 comments

Comments

@teodoryantcheff
Copy link

I have never managed to get it to actually "lint". Here are all the tech details that I thought maybe pertinent :

Ansible (in the WSL2 VM):

teo@jailbreaker-pc:/mnt/e/src/ansible$ ansible --version
ansible [core 2.18.2]
  config file = /mnt/e/src/ansible/ansible.cfg
  configured module search path = ['/home/teo/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/teo/.local/pipx/venvs/ansible/lib/python3.12/site-packages/ansible
  ansible collection location = /home/teo/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/teo/.local/bin/ansible
  python version = 3.12.3 (main, Feb  4 2025, 14:48:35) [GCC 13.3.0] (/home/teo/.local/pipx/venvs/ansible/bin/python)
  jinja version = 3.1.5
  libyaml = True
teo@jailbreaker-pc:/mnt/e/src/ansible$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
Codename:       noble
teo@jailbreaker-pc:/mnt/e/src/ansible$ uname -a
Linux jailbreaker-pc 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
teo@jailbreaker-pc:/mnt/e/src/ansible$ ansible-lint --version
ansible-lint 25.1.3 using ansible-core:2.18.2 ansible-compat:25.1.4 ruamel-yaml:0.18.10 ruamel-yaml-clib:0.2.12
teo@jailbreaker-pc:/mnt/e/src/ansible$

WSL:

C:\Users\Teo>wsl --version
WSL version: 2.4.11.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5716
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.19045.5487

C:\Users\Teo>wsl -l
Windows Subsystem for Linux Distributions:
Ubuntu-20.04 (Default)
docker-desktop

C:\Users\Teo>

Running under Windows 10 pro.

PyCharm:

PyCharm 2024.3.3
Build #PY-243.24978.54, built on February 12, 2025
Runtime version: 21.0.6+8-b631.39 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Plugin configuration:
Image

The error I get when TEST is clicked:
Image

Whenever a .yml file is being edited, these errors pop up in the lower right corner of pycharm:
Image

Plugin version 1.10.1.

What am I doing wrong?

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

1 participant