Getting runtime status "Not yet activated" in WSL2 with Ubuntu 20
See original GitHub issueSanity check
- I certify that the
redhat.ansible
extension is in use and the language of the document in this bug report shows up asAnsible
Summary
I have syntax highlighting but no validation and autocomplete when opening yml and yaml files associated with the Ansible extension. The Ansible extension Runtime Status says “Not yet activated” and never changes.
I am using VS Code
Extension version
0.11.10
VS Code version
1.69.2
Ansible Version
ansible 2.9.6
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/me/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
OS / Environment
Host OS: Windows 10 21H2 Extension: Remote - WSL v0.66.3
wsl --status
Default Distribution: Ubuntu
Default Version: 2
Windows Subsystem for Linux was last updated on 3/26/2022
WSL automatic updates are on.
Kernel version: 5.10.102.1
wsl -l -v
NAME STATE VERSION
* Ubuntu Running 2
cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
Relevant log output
Output : Python
Starting Pylance language server.
Diagnostic Code: NoPythonInterpretersDiagnostic, Message: Python is not installed. Please download and install Python before using the extension.
> C:\Users\me\AppData\Local\Programs\Python\Python310\python.exe -c "import sys;print(sys.executable)"
[ERROR 2022-7-4 12:25:33.49]: [Error: Command failed: C:\Users\me\AppData\Local\Programs\Python\Python310\python.exe -c "import sys;print(sys.executable)"
/bin/sh: 1: C:UsersmeAppDataLocalProgramsPythonPython310python.exe: not found
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
Systemd support lands in WSL – unleash the full ... - Ubuntu
This command will list all the snap processes running on the instance and whether they're enabled to run on startup. We can also...
Read more >Work in Windows Subsystem for Linux with Visual Studio Code
The Remote Status bar item can quickly show you in which context VS Code is running (local or remote) and clicking on the...
Read more >WSL2 with Ubuntu 20.04 step-by-step upgrade: getting started ...
The first prerequisite is to have the Windows 10 May 2020 Update. If you haven't got the update yet, head to Windows Update...
Read more >Troubleshooting Windows Subsystem for Linux | Microsoft Learn
You are still in old version of Windows which doesn't support WSL 2. See step #2 for version requirements and links to update....
Read more >WSL isn't working in VS code. What could be the problem here?
I encountered the same problem, but it was solved by restarting the WSL2 distribution. I'm using Ubuntu-20.04 , so I rebooted with the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Updating the ansible extension to the prerelease version worked for me in WSL
I am running into the same issue (minus the python part).
VSCode version 1.70.00, everything else the same (WSL, Ubunutu version, ansible version). Stuck on status not yet activated despite several reinstalls/restarts.