vscode-dev-containers
vscode-dev-containers copied to clipboard
[kubernetes-helm] zsh completion is not working
- VSCode Version: 1.68.1
- Local OS Version: Windows 11 21H2 (OS Build 22000.739)
- Local chip architecture: x64
- Reproduces in: Remote - Containers
- Name of Dev Container Definition with Issue: kubernetes-helm
Steps to Reproduce:
-
Create an empty folder locally
-
Open the folder with vscode and apply "Kubernetes - Local Configuration" without any features
-
Reopen in container
-
Wait for it to build
-
Open a zsh terminal
-
Write "kubectl g" and tab
-
Nothing happen
Investigations :
- Bash completion is working
- The relevant code is in kubectl-helm-debian.sh :
# kubectl bash completion
kubectl completion bash > /etc/bash_completion.d/kubectl
# kubectl zsh completion
if [ -e "${USERHOME}}/.oh-my-zsh" ]; then
mkdir -p "${USERHOME}/.oh-my-zsh/completions"
kubectl completion zsh > "${USERHOME}/.oh-my-zsh/completions/_kubectl"
chown -R "${USERNAME}" "${USERHOME}/.oh-my-zsh"
fi
- We don't enter the if statement (I have checked with echo) that's why it's not working.
- I can reproduce the same issue when creating a devcontainer using Ubuntu definition and using the feature :
"features": {
"kubectl-helm-minikube": {
"version": "latest",
"helm": "latest",
"minikube": "none"
},
}
Thanks for opening @ijaouani. Upon initial read, it sounds like this could be an issue with the Remote-Containers extension specifically?
cc @chrmarti @joshspicer for thoughts
For me this is just a bug here.