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

'ansible-lint --version' WARNING: PATH altered to expand ~ in it #1413

Open
OneCyrus opened this issue Jul 2, 2024 · 1 comment
Open

'ansible-lint --version' WARNING: PATH altered to expand ~ in it #1413

OneCyrus opened this issue Jul 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@OneCyrus
Copy link

OneCyrus commented Jul 2, 2024

Summary

when using ansible lint on a machine with dotnet installed i get the following error:

cmd 'ansible-lint --version' has the following error/warning: WARNING: PATH altered to expand ~ in it. Read https://stackoverflow.com/a/44704799/99834 and correct your system configuration.

unfortunately dotnet is using "~/.dotnet/tools" in the path variable and that's how it works.

version parsing for ansible lint should ignore warnings. looks like the version parsing could be improved to handle this case.

Extension version

v24.8.1

VS Code version

1.90.2

Ansible Version

ansible [core 2.17.1]
  config file = /workspaces/automation-data/ansible.cfg
  configured module search path = ['/home/vscode/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /workspaces/automation-data/.venv/lib/python3.11/site-packages/ansible
  ansible collection location = /home/vscode/.ansible/collections:/usr/share/ansible/collections
  executable location = /workspaces/automation-data/.venv/bin/ansible
  python version = 3.11.9 (main, May 14 2024, 08:04:54) [GCC 12.2.0] (/workspaces/automation-data/.venv/bin/python)
  jinja version = 3.1.4
  libyaml = True

OS / Environment

Ubuntu 22.04

Relevant log output

ansible-lint --version
WARNING: PATH altered to expand ~ in it. Read https://stackoverflow.com/a/44704799/99834 and correct your system configuration.
ansible-lint 24.6.1 using ansible-core:2.17.1 ansible-compat:24.6.1 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.8
@OneCyrus OneCyrus added bug Something isn't working new labels Jul 2, 2024
@audgirka audgirka removed the new label Jul 3, 2024
@priyamsahoo
Copy link
Contributor

@OneCyrus, the version output is coming from the ansible-lint CLI tool. I wanted to understand whether it is creating any problems in the VS Code extension. If not, please transfer this issue to the ansible-lint repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants