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

extension incorrectly shows "Invalid python environment" if ansible.python.interpreterPath contains ${workspaceFolder} #1396

Closed garymm closed 3 days ago

garymm commented 2 weeks ago

Summary

In my settings I have:

"ansible.python.interpreterPath": "${workspaceFolder}/.pixi/envs/default/bin/python",

This seems to work for everything, except that at the bottom bar there is a bright green "Invalid python environment". I think the issue is that PythonInterpreterManager does not use CommandRunner to execute the python interpreter when it's getting info about it. CommandRunner is what implements the substitution of ${workspaceFolder}.

Extension version

24.6.0

VS Code version

1.90.2

Ansible Version

n/a

OS / Environment

n/a

Relevant log output

No response

netopsengineer commented 2 weeks ago

@garymm this has been an issue talked about in this thread that seems to have spawned allowing the workspace folder but did not resolve the issue #900

Just making you aware if you hadn't seen it.